Skip to content

pencil.js / component / ComponentOptions

Interface: ComponentOptions ​

Defined in: component.ts:71

Component options

Extends ​

Extended by ​

Properties ​

PropertyTypeDescriptionInherited fromDefined in
cap?CanvasLineCapHow lines end-component.ts:85
clipComponent<ComponentOptions> | nullOther component used to clip the renderingContainerOptions.clipcontainer.ts:26
cursorstring | nullCursor to use when hover-component.ts:81
dashedboolean | number[]Should the line be dashed, you can also specify the dash pattern (ex: [4, 4] or Component.dashes.dots)-component.ts:79
fillStyleColor used to fill, set to null for transparent-component.ts:73
joinCanvasLineJoinHow lines join between them-component.ts:83
opacitynumber | nullOpacity level from 0 to 1 (multiplied with its parents opacity, null means 1)ContainerOptions.opacitycontainer.ts:16
origin| string | PositionDefinitionRelative offset (Rectangle based shapes also accept named origins like "center")-component.ts:87
rotationnumberRotation ratio from 0 to 1 (clockwise)ContainerOptions.rotationcontainer.ts:18
rotationCenterPositionDefinitionCenter of rotation relative to this positionContainerOptions.rotationCentercontainer.ts:20
scale| number | PositionDefinitionScaling ratio or a pair of value for horizontal and vertical scalingContainerOptions.scalecontainer.ts:22
shadowPartial<ShadowOptions>Set of options to set a shadow-component.ts:89
shownbooleanIs shownContainerOptions.showncontainer.ts:14
strokeStyleColor used to stroke, set to null for transparent-component.ts:75
strokeWidthnumberStroke line thickness in pixels-component.ts:77
zIndexnumberDepth orderingContainerOptions.zIndexcontainer.ts:24

Released under the MIT License.