Skip to main content

Namespace: Serialization

Serialization

Classes

InkCodec

InkOperation

InkToolCodec

ProtoCodec

RIFFDecoder

RIFFEncoder

TypedArrayCodec

Namespaces

PrecisionDetection

Type Definitions

CompressionType

Enum of RIFF chunk supported compression types

Properties:
NameTypeDescription
NONEobjectCompression not applied
ZIPobjectZIP compression for particular chunk
LZMAobjectLZMA compression for particular chunk

ContentType

Enum of RIFF chunk contnet types

Properties:
NameTypeDescription
LISTobjectsequence of data
BINARYobjectbinary/octet-stream
PROTOobjectapplication/protobuf
JSONobjectapplication/json
TEXTobjecttext/plain

InkData

Decoded InkData structure

Properties:
NameTypeAttributesDefaultDescription
strokesArray.<Stroke>
unitScaleFactorfloat<optional>1PX to DIP converion factor
transformCommon.Matrix<optional>

InkToolInit

Decoded InkTool configuration

Properties:
NameTypeDescription
brushRendering.Brush
blendModeRendering.BlendMode
staticsPathBuilding.PathPointProperties
dynamicsPathBuilding.PathPointSettings

RIFFChunkDescriptor

RIFF chunk configuration

Properties:
NameTypeAttributesDefaultDescription
dataUint8Array|JSON|string|Array.<(Uint8Array|JSON|string|Array)>User defined data
fourCCRIFFFormat.fourCC|string|Uint8Array<optional>RIFFFormat.fourCC.DATAChunk identifier, should be 4 chars long, where allowed chars are latin leters, numbers and space
versionstring<optional>0.0.0 | Uint8ArrayChunk semantic version (MAJOR.MINOR.PATCH)
contentTypeRIFFFormat.ContentType<optional>RIFFFormat.ContentType.BINARY
compressionTypeRIFFFormat.CompressionType<optional>RIFFFormat.CompressionType.NONE

RIFFDescriptor

RIFF descriptor

Properties:
NameTypeAttributesDescription
formatstringRIFF format
versionstring<optional>File format semantic version (MAJOR.MINOR.PATCH) when available
chunksArray.<object>Serialized user defined data

Home