paintScene Type
Public type for paintScene.
Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.
Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.
Syntax
paintScene(drawingContext: CanvasRenderingContext2D, scene: PageScene, images?: Map<string, CanvasImageSource>): void
Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
drawingContext | CanvasRenderingContext2D | No | Value matching drawingContext's declared type and the owning object's validation rules. |
scene | PageScene | No | Value matching scene's declared type and the owning object's validation rules. |
images | Map<string, CanvasImageSource> | undefined | Yes | Value matching images's declared type and the owning object's validation rules. |
Return Value
void.
Examples
Pass the paintScene value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.
function inspectpaintScene(paintScene: { value: unknown }) {
const value = paintScene;
console.log('paintScene.value', value);
}