TX Sheet Control

paintScene Type

Interface

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

ParameterTypeOptionalDescription
drawingContextCanvasRenderingContext2DNoValue matching drawingContext's declared type and the owning object's validation rules.
scenePageSceneNoValue matching scene's declared type and the owning object's validation rules.
imagesMap<string, CanvasImageSource> | undefinedYesValue 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);
}

See Also