pencil.js / offscreen-canvas / OffScreenCanvasOptions
Interface: OffScreenCanvasOptions
Defined in: offscreen-canvas.ts:11
Off-screen canvas options
Extends
Extended by
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
clip | | Component<ComponentOptions> | null | Other component used to clip the rendering | ContainerOptions.clip | container.ts:26 |
fill | Style | Background color | - | offscreen-canvas.ts:13 |
opacity | number | null | Opacity level from 0 to 1 (multiplied with its parents opacity, null means 1) | ContainerOptions.opacity | container.ts:16 |
rotation | number | Rotation ratio from 0 to 1 (clockwise) | ContainerOptions.rotation | container.ts:18 |
rotationCenter | PositionDefinition | Center of rotation relative to this position | ContainerOptions.rotationCenter | container.ts:20 |
scale | | number | PositionDefinition | Scaling ratio or a pair of value for horizontal and vertical scaling | ContainerOptions.scale | container.ts:22 |
shown | boolean | Is shown | ContainerOptions.shown | container.ts:14 |
zIndex | number | Depth ordering | ContainerOptions.zIndex | container.ts:24 |
