shapeGeometry 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
| Parameter | Type | Optional | Description |
|---|---|---|---|
preset | string | No | Value matching preset's declared type and the owning object's validation rules. |
w | number | No | Value matching w's declared type and the owning object's validation rules. |
h | number | No | Value matching h's declared type and the owning object's validation rules. |
adjustments | Record<string, number> | undefined | Yes | Value 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);