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#
| Property | Type | Description | Defined in |
|---|---|---|---|
digitEntries | Int32Array | Int32 records, DIGIT_ENTRY_STRIDE each. | packages/pixi-silk/src/i18n/bundle.ts:79 |
digits | Uint32Array | Uint32 records, DIGIT_STRIDE each. | packages/pixi-silk/src/i18n/bundle.ts:77 |
dir | 0 | 1 | Base direction of the locale: 0 left to right, 1 right to left. | packages/pixi-silk/src/i18n/bundle.ts:51 |
faces | Int32Array | Int32 records, FACE_STRIDE each. | packages/pixi-silk/src/i18n/bundle.ts:59 |
flags | number | BundleFlag bits. | packages/pixi-silk/src/i18n/bundle.ts:45 |
glyphs | Int16Array | Int16 records, GLYPH_STRIDE each. Record 0 is the empty glyph. | packages/pixi-silk/src/i18n/bundle.ts:63 |
id | string | The 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 |
locale | string | BCP 47 locale, such as ar or ku-Arab-IQ: what plural rules and number formatting use. | packages/pixi-silk/src/i18n/bundle.ts:47 |
major | number | Format major version. | packages/pixi-silk/src/i18n/bundle.ts:41 |
messages | Uint32Array | Uint32 records, MESSAGE_STRIDE each, sorted by key hash. | packages/pixi-silk/src/i18n/bundle.ts:67 |
minor | number | Format minor version. | packages/pixi-silk/src/i18n/bundle.ts:43 |
numberingSystem | string | Numbering system number slots format with, such as arab or latn. | packages/pixi-silk/src/i18n/bundle.ts:53 |
pages | Float32Array | Float32 records, PAGE_STRIDE each. | packages/pixi-silk/src/i18n/bundle.ts:61 |
runs | BundleRuns | Shaped glyph columns. | packages/pixi-silk/src/i18n/bundle.ts:65 |
segments | Uint32Array | Uint32 records, SEGMENT_STRIDE each. | packages/pixi-silk/src/i18n/bundle.ts:71 |
slots | Uint32Array | Uint32 records, SLOT_STRIDE each. | packages/pixi-silk/src/i18n/bundle.ts:75 |
spans | Uint16Array | Uint16 records, SPAN_STRIDE each. | packages/pixi-silk/src/i18n/bundle.ts:73 |
strings | readonly string[] | The string table: keys (dev builds), file names, slot, tag and family names. | packages/pixi-silk/src/i18n/bundle.ts:55 |
tags | Uint32Array | String refs of tag names, by tag id. | packages/pixi-silk/src/i18n/bundle.ts:57 |
variants | Uint32Array | Uint32 records, VARIANT_STRIDE each. | packages/pixi-silk/src/i18n/bundle.ts:69 |