Skip to content
pixi-silk
GitHub repository
Interface

BundleData

import type { BundleData } from 'pixi-silk/i18n';

Everything a .silk bundle holds, as typed arrays. The reader returns views over the fetched buffer, and the compiler builds one of these and writes it. Record layouts are in format.ts.

Properties#

PropertyTypeDescriptionDefined in
digitEntriesInt32ArrayInt32 records, DIGIT_ENTRY_STRIDE each.packages/pixi-silk/src/i18n/bundle.ts:79
digitsUint32ArrayUint32 records, DIGIT_STRIDE each.packages/pixi-silk/src/i18n/bundle.ts:77
dir0 | 1Base direction of the locale: 0 left to right, 1 right to left.packages/pixi-silk/src/i18n/bundle.ts:51
facesInt32ArrayInt32 records, FACE_STRIDE each.packages/pixi-silk/src/i18n/bundle.ts:59
flagsnumberBundleFlag bits.packages/pixi-silk/src/i18n/bundle.ts:45
glyphsInt16ArrayInt16 records, GLYPH_STRIDE each. Record 0 is the empty glyph.packages/pixi-silk/src/i18n/bundle.ts:63
idstringThe app’s code for the locale, such as iq: the bundle’s name. Equal to locale when not set.packages/pixi-silk/src/i18n/bundle.ts:49
layoutInstances?Float32Array<ArrayBufferLike>Their instances, with a stack index in the style field.packages/pixi-silk/src/i18n/bundle.ts:83
layoutLines?Float32Array<ArrayBufferLike>Their lines: baseline, left, right.packages/pixi-silk/src/i18n/bundle.ts:87
layouts?Float32Array<ArrayBufferLike>Baked layouts, LAYOUT_STRIDE floats each. Empty when the compile declared none.packages/pixi-silk/src/i18n/bundle.ts:81
layoutStacks?Uint32Array<ArrayBufferLike>String refs of the tag stacks (tags joined with NUL), by stack index.packages/pixi-silk/src/i18n/bundle.ts:85
localestringBCP 47 locale, such as ar or ku-Arab-IQ: what plural rules and number formatting use.packages/pixi-silk/src/i18n/bundle.ts:47
majornumberFormat major version.packages/pixi-silk/src/i18n/bundle.ts:41
messagesUint32ArrayUint32 records, MESSAGE_STRIDE each, sorted by key hash.packages/pixi-silk/src/i18n/bundle.ts:67
minornumberFormat minor version.packages/pixi-silk/src/i18n/bundle.ts:43
numberingSystemstringNumbering system number slots format with, such as arab or latn.packages/pixi-silk/src/i18n/bundle.ts:53
pagesFloat32ArrayFloat32 records, PAGE_STRIDE each.packages/pixi-silk/src/i18n/bundle.ts:61
runsBundleRunsShaped glyph columns.packages/pixi-silk/src/i18n/bundle.ts:65
segmentsUint32ArrayUint32 records, SEGMENT_STRIDE each.packages/pixi-silk/src/i18n/bundle.ts:71
slotsUint32ArrayUint32 records, SLOT_STRIDE each.packages/pixi-silk/src/i18n/bundle.ts:75
spansUint16ArrayUint16 records, SPAN_STRIDE each.packages/pixi-silk/src/i18n/bundle.ts:73
stringsreadonly string[]The string table: keys (dev builds), file names, slot, tag and family names.packages/pixi-silk/src/i18n/bundle.ts:55
tagsUint32ArrayString refs of tag names, by tag id.packages/pixi-silk/src/i18n/bundle.ts:57
variantsUint32ArrayUint32 records, VARIANT_STRIDE each.packages/pixi-silk/src/i18n/bundle.ts:69