Skip to main content
Point data is typically cached on the native side. On the RN side, you fetch data on demand via an accessor.
MethodReturnsDescription
size()Promise<number>Get the dataset length
get(index)Promise<T | null>Get the item at index
getRange(startIndex, count)Promise<T[]>Get a range of items
add(index, value)Promise<boolean>Insert an item at a specified position (clears cache on success)
set(index, value)Promise<boolean>Overwrite the item at index (clears cache on success)
setRange(index, endIndex, valueArray)Promise<boolean>Overwrite a range of items (clears cache on success)
clearCache()voidClear the RN-side cache
getCacheStats(){ cachedCount: number; totalSize: number }Get cache stats
preload(startIndex, count)Promise<void>Preload a range into cache
isCached(index)booleanWhether an item is already cached

ElementPointDataType

Point data types exposed by ElementDataAccessor (enum).
EnumValueDescription
ElementPointDataType.ANGLE_POINT0angle points
ElementPointDataType.CONTOUR_POINT1contour points
ElementPointDataType.STROKE_SAMPLE_POINT2strokesample points
ElementPointDataType.STROKE_PRESSURE_POINT3stroke pressure points
ElementPointDataType.ERASE_LINE_DATA4erase line data
ElementPointDataType.WRITE_FLAG5write flag
ElementPointDataType.MARK_PEN_DIRECTION6marker pen direction
ElementPointDataType.RECOGNITION_DATA_POINT7recognition data points