Skip to main content

components_Graphics

perfect-graph / Modules / components/Graphics

Module: components/Graphics#

Table of contents#

Type aliases#

Variables#

Functions#

Type aliases#

GraphicsProps#

Ƭ GraphicsProps: Object

Defined in#

components/Graphics/index.tsx:17

Variables#

Graphics#

• Graphics: FC<IGraphics> = ReactPIXIGraphics

PIXI.Graphics React Component

Defined in#

components/Graphics/index.tsx:332

Functions#

drawGraphics#

â–¸ Const drawGraphics(instance, props): void

Parameters#

NameType
instanceGraphics
propsObject
props.alpha?number
props.fill?number
props.height?number
props.lineFill?number
props.lineWidth?number
props.radius?number
props.width?number

Returns#

void

Defined in#

components/Graphics/index.tsx:274


drawLine#

â–¸ Const drawLine(config): void

It draws the line with the given config for graphics.

Parameters#

NameType
configObject
config.alpha?number
config.arrowHead?Object
config.arrowHead.radius?number
config.configEdgeConfig
config.directed?boolean
config.distance?number
config.distanceVectorPosition
config.fill?number
config.fromBoundingBox
config.graphicsGraphics
config.margin?Position
config.normVectorPosition
config.sourceElementNodeSingular
config.targetElementNodeSingular
config.toBoundingBox
config.type?"bezier" | "segments" | "straight"
config.undirectedNormVectorVictor
config.undirectedUnitVectorPosition
config.unitVectorVictor
config.width?number

Returns#

void

Defined in#

components/Graphics/index.tsx:102