Skip to content

pencil.js / offscreen-canvas / OffScreenCanvasOptions

Interface: OffScreenCanvasOptions ​

Defined in: offscreen-canvas.ts:11

Off-screen canvas options

Extends ​

Extended by ​

Properties ​

PropertyTypeDescriptionInherited fromDefined in
clip| Component<ComponentOptions> | nullOther component used to clip the renderingContainerOptions.clipcontainer.ts:26
fillStyleBackground color-offscreen-canvas.ts:13
opacitynumber | nullOpacity level from 0 to 1 (multiplied with its parents opacity, null means 1)ContainerOptions.opacitycontainer.ts:16
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
shownbooleanIs shownContainerOptions.showncontainer.ts:14
zIndexnumberDepth orderingContainerOptions.zIndexcontainer.ts:24

Released under the MIT License.