TX Sheet Control

shapeGeometry Function

Function

Public function for shapeGeometry.

Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.

ES module import: import { shapeGeometry } from '@txtextcontrol/tx-sheet-control';.

Syntax

shapeGeometry(preset: string, w: number, h: number, adjustments?: Record<string, number>): ShapeGeometry

Parameters

ParameterTypeOptionalDescription
presetstringNoValue matching preset's declared type and the owning object's validation rules.
wnumberNoValue matching w's declared type and the owning object's validation rules.
hnumberNoValue matching h's declared type and the owning object's validation rules.
adjustmentsRecord<string, number> | undefinedYesValue matching adjustments's declared type and the owning object's validation rules.

Return Value

ShapeGeometry.

Examples

Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.

import { shapeGeometry } from '@txtextcontrol/tx-sheet-control';

const result = shapeGeometry('Invoice', 2, 2);
console.log(result);

See Also