Element can be very large (e.g. stroke sample points, pressure points, angle points, contour points).
To avoid RN-side memory issues caused by loading large datasets at once, the SDK uses an accessor design. Therefore you should create elements via createElement.
For details, see Element.
| Parameter | Type | Description |
|---|---|---|
type | number | Element type. See ElementType. |
APIResponse<Element>: SeeAPIResponseandElement- On success,
resultis anElementwith accessor fields filled (e.g.angles,contoursSrc, andstroke.*accessors for stroke elements).