@labpics/colors 0.9.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/LICENSES/CC-BY-4.0.txt +396 -0
- package/LICENSES/CC-BY-SA-4.0.txt +428 -0
- package/NOTICE.md +65 -0
- package/README.md +351 -282
- package/build-metadata.json +23 -0
- package/evidence/point-support-reference-surplus-q55-bps-proof-v1.json +1 -0
- package/evidence/wcag22-srgb8-q55-proof-v1.json +1 -0
- package/evidence/wcag22-srgb8-q55-v1.bin +0 -0
- package/evidence/wcag22-srgb8-v1.json +1 -0
- package/index.d.ts +211 -37
- package/index.js +499 -21
- package/package.json +40 -36
- package/pkg/labcolors.d.ts +230 -249
- package/pkg/labcolors.js +955 -157
- package/pkg/labcolors_bg.wasm +0 -0
- package/pkg/labcolors_bg.wasm.d.ts +61 -11
- package/pkg/snippets/labcolors-wasm-9fb8b927594c3d6f/inline0.js +98 -0
- package/program-wire/abi-v1.d.ts +84 -0
- package/program-wire/abi-v1.js +332 -0
- package/program-wire/abi-v2.d.ts +17 -0
- package/program-wire/abi-v2.js +61 -0
- package/program-wire/encoding.js +218 -0
- package/wcag22.d.ts +6 -0
- package/adapt-theme.d.ts +0 -74
- package/adapt-theme.js +0 -542
- package/apply-theme.d.ts +0 -16
- package/apply-theme.js +0 -44
- package/effective-bg.d.ts +0 -50
- package/effective-bg.js +0 -492
- package/watch-theme.d.ts +0 -57
- package/watch-theme.js +0 -144
package/pkg/labcolors.d.ts
CHANGED
|
@@ -1,291 +1,272 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
readonly
|
|
10
|
-
|
|
11
|
-
readonly
|
|
12
|
-
|
|
13
|
-
readonly
|
|
14
|
-
/** Ready-to-serve CSS value: "oklch(L% C H)". `vars` carries the same string. */
|
|
15
|
-
readonly css: string;
|
|
16
|
-
/** Signed perceptual contrast (Lc) against the background. */
|
|
17
|
-
readonly lc: number;
|
|
18
|
-
/** WCAG 2.1 ratio (1–21) against the background. */
|
|
19
|
-
readonly wcagRatio: number;
|
|
20
|
-
/** The legal floor squeezed this role onto the smallest step below its senior. */
|
|
21
|
-
readonly compressed: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* `true` when a coloured family label (M1) lost perceptible colour on its
|
|
24
|
-
* contract-solved lightness: the colour's M′ fell below the tint perceptibility
|
|
25
|
-
* floor, so at the family curve's extremes (near-white / near-black) the hue is
|
|
26
|
-
* physically indistinguishable. An honest, flagged outcome — not a silent
|
|
27
|
-
* degradation to grey. `false` for neutral labels and coloured labels that kept
|
|
28
|
-
* a distinguishable colour.
|
|
29
|
-
*/
|
|
30
|
-
readonly hueVanished: boolean;
|
|
31
|
-
/** Честный замер |ΔJ'| на отданном hex для dJ'-ролей; null у контраст-ролей (метрика — lc). */
|
|
32
|
-
readonly achievedDj: number | null;
|
|
33
|
-
/** The WCAG floor overrode the perceptual target. */
|
|
34
|
-
readonly floorOverride: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* The minimum WCAG ratio this role is legally clamped to (4.5 for AA text,
|
|
37
|
-
* 3.0 for AA UI), or `null` for decorative / zero roles. A property of
|
|
38
|
-
* the role's contract, not of this solve: a runtime easing between themes
|
|
39
|
-
* uses it to hold the floor every frame of the transition.
|
|
40
|
-
*/
|
|
41
|
-
readonly legalFloor: number | null;
|
|
4
|
+
/** Proof-capable V2 site. Empty arrays explicitly mean no admitted evidence. */
|
|
5
|
+
export interface NumericalCapabilitySiteV2 {
|
|
6
|
+
readonly siteId: string;
|
|
7
|
+
readonly stableOutcomes: ReadonlyArray<string>;
|
|
8
|
+
readonly compatibilityReleases: ReadonlyArray<string>;
|
|
9
|
+
readonly evidenceClasses: ReadonlyArray<string>;
|
|
10
|
+
readonly artifactIds: ReadonlyArray<string>;
|
|
11
|
+
readonly boundIds: ReadonlyArray<string>;
|
|
12
|
+
readonly proofIds: ReadonlyArray<string>;
|
|
13
|
+
readonly runtimeAttestations: ReadonlyArray<string>;
|
|
42
14
|
}
|
|
43
15
|
|
|
44
|
-
/**
|
|
45
|
-
export interface
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
16
|
+
/** Proof-capable numerical capability manifest. */
|
|
17
|
+
export interface NumericalCapabilityManifestV2 {
|
|
18
|
+
readonly schemaVersion: 2;
|
|
19
|
+
readonly coverage: string;
|
|
20
|
+
readonly sites: ReadonlyArray<NumericalCapabilitySiteV2>;
|
|
21
|
+
readonly checksum: string;
|
|
48
22
|
}
|
|
49
23
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
24
|
+
export type Wcag22CriterionV1 =
|
|
25
|
+
| "sc-1.4.3-text-default"
|
|
26
|
+
| "sc-1.4.3-text-large-scale"
|
|
27
|
+
| "sc-1.4.11-ui-component-or-state"
|
|
28
|
+
| "sc-1.4.11-graphical-object";
|
|
29
|
+
export type Wcag22DecisionV1 = "pass" | "fail";
|
|
30
|
+
export interface Wcag22Q55BoundsV1 {
|
|
31
|
+
/** Decimal u64 string: Q55 values exceed JavaScript's safe integer range. */
|
|
32
|
+
readonly lower: string;
|
|
33
|
+
readonly upper: string;
|
|
58
34
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
readonly
|
|
63
|
-
readonly
|
|
64
|
-
|
|
65
|
-
readonly
|
|
66
|
-
|
|
67
|
-
readonly
|
|
68
|
-
|
|
69
|
-
readonly
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
readonly alphaCoerced: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* `true` when a solid family border (`border-<family>-strong`, M2) was darkened
|
|
85
|
-
* along the family curve to meet the AA UI floor (3:1), because the raw family
|
|
86
|
-
* tint did not clear it on this background — an honest, flagged minimal legal
|
|
87
|
-
* shift (family hue/chroma preserved, only lightness moved). `false` for a
|
|
88
|
-
* direct ladder emission and for legal family solids.
|
|
89
|
-
*/
|
|
90
|
-
readonly floorCoerced: boolean;
|
|
91
|
-
/** Ready-to-serve CSS value: "oklch(L% C H / A)". `vars` carries the same string. */
|
|
92
|
-
readonly css: string;
|
|
35
|
+
export interface Wcag22AssessmentV1 {
|
|
36
|
+
readonly kind: "evaluated";
|
|
37
|
+
readonly profileId: "wcag22-srgb8-contrast-v1";
|
|
38
|
+
readonly criterion: Wcag22CriterionV1;
|
|
39
|
+
readonly foreground: string;
|
|
40
|
+
readonly background: string;
|
|
41
|
+
readonly foregroundLuminanceQ55: Wcag22Q55BoundsV1;
|
|
42
|
+
readonly backgroundLuminanceQ55: Wcag22Q55BoundsV1;
|
|
43
|
+
readonly q55Scale: string;
|
|
44
|
+
readonly decision: Wcag22DecisionV1;
|
|
45
|
+
readonly evidence: {
|
|
46
|
+
readonly kind: "canonical-finite-bounded";
|
|
47
|
+
readonly artifactId: "wcag22-srgb8-luminance-q55-v1";
|
|
48
|
+
readonly artifactSha256: string;
|
|
49
|
+
readonly boundId: "wcag22-srgb8-outward-q55-v1";
|
|
50
|
+
readonly proofId: "wcag22-srgb8-full-domain-q55-v1";
|
|
51
|
+
readonly proofSha256: string;
|
|
52
|
+
readonly proofPayloadSha256: string;
|
|
53
|
+
readonly generatorSha256: string;
|
|
54
|
+
readonly verifierSha256: string;
|
|
55
|
+
readonly profileChecksum: string;
|
|
56
|
+
readonly profileSha256: string;
|
|
57
|
+
};
|
|
93
58
|
}
|
|
94
59
|
|
|
95
|
-
/** Свечение (kind glow, labui ADR-0002 §5): screen-слои + решённая интенсивность.
|
|
96
|
-
* Потребитель красит слои с mix-blend-mode: screen; `vars` несёт
|
|
97
|
-
* --lab-<role> (halo, oklch), --lab-<role>-core и --lab-<role>-alpha. */
|
|
98
|
-
export interface GlowRole {
|
|
99
|
-
readonly kind: "glow";
|
|
100
|
-
readonly cssVar: string;
|
|
101
|
-
/** Слой пересвета (малый радиус), #RRGGBB. */
|
|
102
|
-
readonly coreHex: string;
|
|
103
|
-
/** Слой ореола — источник, #RRGGBB. */
|
|
104
|
-
readonly haloHex: string;
|
|
105
|
-
/** Интенсивность screen-слоя, (0, 1]. */
|
|
106
|
-
readonly alpha: number;
|
|
107
|
-
/** Фактический |ΔJ'| композита от фона. */
|
|
108
|
-
readonly achievedDj: number;
|
|
109
|
-
/** Цель недостижима — ближайший достижимый шаг (ADR-0002, закон 2). */
|
|
110
|
-
readonly degraded: boolean;
|
|
111
|
-
/** Ready-to-serve CSS value халo: "oklch(L% C H)". */
|
|
112
|
-
readonly css: string;
|
|
113
|
-
}
|
|
114
60
|
|
|
115
|
-
export type RoleResult = SolvedColor | TranslucentRole | GlowRole | NoneRole | UnreachableRole;
|
|
116
61
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
62
|
+
export class AttachedMaterializationAuthority {
|
|
63
|
+
private constructor();
|
|
64
|
+
free(): void;
|
|
65
|
+
[Symbol.dispose](): void;
|
|
66
|
+
bindingEpoch(): bigint;
|
|
67
|
+
contentIdentity(): Uint8Array;
|
|
68
|
+
contextIdentity(): Uint8Array;
|
|
69
|
+
occurrence(): number;
|
|
70
|
+
outputOpacity(): number;
|
|
71
|
+
outputRgb(): Uint8Array;
|
|
72
|
+
outputSlot(): number;
|
|
73
|
+
physicalIdentity(): string;
|
|
74
|
+
presentationRoot(): number;
|
|
75
|
+
rendererProvenance(): string;
|
|
76
|
+
revision(): bigint;
|
|
77
|
+
sinkSequence(): bigint;
|
|
78
|
+
terminalCompositeRgb(): Uint8Array;
|
|
123
79
|
}
|
|
124
80
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
| { kind: "zero" };
|
|
143
|
-
|
|
144
|
-
/** Полный конфиг дизайн-системы клиента — вход loadConfig (JSON.stringify(config)). */
|
|
145
|
-
export interface ThemeConfig {
|
|
146
|
-
readonly brand: ThemeAnchors;
|
|
147
|
-
readonly neutral: {
|
|
148
|
-
readonly anchors: { light: string; mid: string; dark: string };
|
|
149
|
-
readonly tint: {
|
|
150
|
-
ratio: number;
|
|
151
|
-
target_mp: number;
|
|
152
|
-
hue_stiffness: number;
|
|
153
|
-
hue_override_deg?: number;
|
|
154
|
-
};
|
|
155
|
-
readonly edge?: ThemeAnchors;
|
|
156
|
-
readonly inverted?: ThemeAnchors;
|
|
157
|
-
};
|
|
158
|
-
readonly palette: ReadonlyArray<{ key: string; anchors: ThemeAnchors }>;
|
|
159
|
-
readonly sentiments: {
|
|
160
|
-
readonly categories: ReadonlyArray<{
|
|
161
|
-
name: string;
|
|
162
|
-
family: string;
|
|
163
|
-
hue_floor_deg?: number;
|
|
164
|
-
preferred_side?: -1 | 1;
|
|
165
|
-
}>;
|
|
166
|
-
readonly hardness: number;
|
|
167
|
-
readonly chroma_fraction: number;
|
|
168
|
-
};
|
|
169
|
-
readonly themes: ReadonlyArray<{ name: string; preset: "srgb" | "dim" | "srgb-ic" | "dim-ic" }>;
|
|
170
|
-
/** Словарь ролей дизайн-системы. Конфиг обязан нести собственные роли; пустой
|
|
171
|
-
* контракт (без `roles` и `aliases`) отклоняется на загрузке. */
|
|
172
|
-
readonly roles?: ReadonlyArray<{ name: string; recipe: RoleRecipe }>;
|
|
173
|
-
readonly aliases?: ReadonlyArray<{ alias: string; target: string }>;
|
|
81
|
+
export class ProgramAttachedRender {
|
|
82
|
+
private constructor();
|
|
83
|
+
free(): void;
|
|
84
|
+
[Symbol.dispose](): void;
|
|
85
|
+
bindingEpoch(): bigint;
|
|
86
|
+
contentIdentity(): Uint8Array;
|
|
87
|
+
contextIdentity(): Uint8Array;
|
|
88
|
+
occurrence(): number;
|
|
89
|
+
outputOpacity(): number;
|
|
90
|
+
outputRgb(): Uint8Array;
|
|
91
|
+
outputSlot(): number;
|
|
92
|
+
physicalIdentity(): string;
|
|
93
|
+
presentationRoot(): number;
|
|
94
|
+
revision(): bigint;
|
|
95
|
+
sinkOutput(): number;
|
|
96
|
+
sinkSequence(): bigint;
|
|
97
|
+
terminalCompositeRgb(): Uint8Array | undefined;
|
|
174
98
|
}
|
|
175
99
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
* Scope: this is resolveTheme's contract (applyTheme/watchTheme inject it
|
|
188
|
-
* verbatim); adaptTheme's per-frame easing writes concrete interpolated
|
|
189
|
-
* colours and is not bound by the emission form.
|
|
190
|
-
*/
|
|
191
|
-
readonly vars: Record<string, string>;
|
|
192
|
-
/** Every role, keyed by its stable role key (without the --lab- prefix). */
|
|
193
|
-
readonly roles: Record<string, RoleResult>;
|
|
100
|
+
export class ProgramAttachedSnapshot {
|
|
101
|
+
private constructor();
|
|
102
|
+
free(): void;
|
|
103
|
+
[Symbol.dispose](): void;
|
|
104
|
+
hasRender(): boolean;
|
|
105
|
+
outputCount(): number;
|
|
106
|
+
outputOpacity(index: number): number;
|
|
107
|
+
outputRgb(index: number): Uint8Array;
|
|
108
|
+
outputSlot(index: number): number;
|
|
109
|
+
render(): ProgramAttachedRender | undefined;
|
|
110
|
+
readonly state: string;
|
|
194
111
|
}
|
|
195
112
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* A contrast engine over a consumer-supplied design system. Construct with
|
|
200
|
-
* [`LabColors::new`], load a config with [`loadConfig`](LabColors::load_config),
|
|
201
|
-
* then call [`resolve_theme`](LabColors::resolve_theme) many times; identical
|
|
202
|
-
* calls are served from the contract cache.
|
|
203
|
-
*/
|
|
204
|
-
export class LabColors {
|
|
113
|
+
export class ProgramAttachment {
|
|
114
|
+
private constructor();
|
|
205
115
|
free(): void;
|
|
206
116
|
[Symbol.dispose](): void;
|
|
207
117
|
/**
|
|
208
|
-
*
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
*
|
|
213
|
-
* independent, so this shares it across all samples instead of recomputing it
|
|
214
|
-
* per `recheckContrast` call.
|
|
215
|
-
*
|
|
216
|
-
* Returns a flat, background-major `Float64Array`: sample `s`, foreground `i`
|
|
217
|
-
* is at `(s * fgHexes.length + i) * 2` (`lc`) and `+1` (`wcagRatio`). The
|
|
218
|
-
* values are byte-identical to calling `recheckContrast(bgHexes[s], fgHexes,
|
|
219
|
-
* theme)` for each `s`. Wiring the runtime to it is an OWNER decision (it
|
|
220
|
-
* changes the controller↔engine call shape); it is measured, not adopted.
|
|
118
|
+
* Потребляет attachment только после подтверждения внешнего revoke caller-ом.
|
|
119
|
+
*/
|
|
120
|
+
dispose(confirmed: boolean): void;
|
|
121
|
+
/**
|
|
122
|
+
* Допускает authority только из текущего committed head attachment.
|
|
221
123
|
*/
|
|
222
|
-
|
|
124
|
+
materializationAuthority(): AttachedMaterializationAuthority;
|
|
223
125
|
/**
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
* Полный preflight движка: невалидный конфиг отклоняется структурной
|
|
227
|
-
* ошибкой `invalid_config: …` и НЕ меняет состояние. После успешной
|
|
228
|
-
* загрузки `resolveTheme` эмитит роли конфига (включая полупрозрачные
|
|
229
|
-
* роли лестницы — эмиссия `oklch(L% C H / α)`). Возвращает отпечаток
|
|
230
|
-
* конфига — 16 hex-символов;
|
|
231
|
-
* разные конфиги дают разные отпечатки (и разные кэш-пространства).
|
|
126
|
+
* Проверяет переданные caller-ом revision, identity и epoch против current head.
|
|
232
127
|
*/
|
|
233
|
-
|
|
128
|
+
materializationAuthorityFor(revision: bigint, content_identity: Uint8Array, binding_epoch: bigint): AttachedMaterializationAuthority;
|
|
234
129
|
/**
|
|
235
|
-
*
|
|
130
|
+
* Атомарно применяет observed revision через host sink.
|
|
236
131
|
*/
|
|
237
|
-
|
|
132
|
+
updateObserved(revision: bigint, scenario_ids: Uint32Array, surfaces: Uint8Array, surface_count: number): ProgramAttachedSnapshot;
|
|
238
133
|
/**
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
* The engine is agnostic (ADR-0001): it carries no built-in role table, so
|
|
242
|
-
* [`resolveTheme`](LabColors::resolve_theme) rejects with `config_required`
|
|
243
|
-
* until [`loadConfig`](LabColors::load_config) supplies a design system.
|
|
134
|
+
* Атомарно отзывает owned sink для недоступной revision.
|
|
244
135
|
*/
|
|
245
|
-
|
|
136
|
+
updateUnknown(revision: bigint, reason_id: number): ProgramAttachedSnapshot;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Публичный runtime одного скомпилированного Program.
|
|
141
|
+
*/
|
|
142
|
+
export class ProgramRuntime {
|
|
143
|
+
private constructor();
|
|
144
|
+
free(): void;
|
|
145
|
+
[Symbol.dispose](): void;
|
|
246
146
|
/**
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
* already-resolved colours still pass against a changed background (re-solve
|
|
250
|
-
* only when they stably do not). No full solve: one perceptual-model forward
|
|
251
|
-
* for the background plus one per foreground.
|
|
252
|
-
*
|
|
253
|
-
* Returns a `Float64Array` of `[lc, wcagRatio]` pairs, interleaved and in the
|
|
254
|
-
* order of `fgHexes`: index `2*i` is foreground `i`'s signed `Lc`, `2*i+1`
|
|
255
|
-
* its WCAG ratio. Rejects (structured `{code, message}`) on an invalid hex or
|
|
256
|
-
* an unknown theme.
|
|
147
|
+
* Атомарный observed update. `surfaces` — row-major
|
|
148
|
+
* `scenario_ids.len() × surface_count × 3` bytes.
|
|
257
149
|
*/
|
|
258
|
-
|
|
150
|
+
updateObserved(revision: bigint, scenario_ids: Uint32Array, surfaces: Uint8Array, surface_count: number): ProgramSnapshot;
|
|
151
|
+
updateUnknown(revision: bigint, reason_id: number): ProgramSnapshot;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Owned snapshot одного Program update.
|
|
156
|
+
*/
|
|
157
|
+
export class ProgramSnapshot {
|
|
158
|
+
private constructor();
|
|
159
|
+
free(): void;
|
|
160
|
+
[Symbol.dispose](): void;
|
|
161
|
+
outputCount(): number;
|
|
162
|
+
outputOpacity(index: number): number;
|
|
163
|
+
outputRgb(index: number): Uint8Array;
|
|
164
|
+
outputSlot(index: number): number;
|
|
259
165
|
/**
|
|
260
|
-
*
|
|
261
|
-
* "light-ic" | "dark-ic"`).
|
|
262
|
-
*
|
|
263
|
-
* Returns a `ResolvedTheme` object. Per-role unreachability is part of a
|
|
264
|
-
* successful result (each role carries its own `kind`); only whole-call
|
|
265
|
-
* failures reject (no config loaded yet as `config_required`, invalid hex,
|
|
266
|
-
* unknown theme, and the by-construction-unreachable oklch serialisation
|
|
267
|
-
* failure as `internal_error`) — as a structured `"<code>: <message>"`
|
|
268
|
-
* error, never an unwound panic.
|
|
166
|
+
* Stable lifecycle key: waiting|ready|stale|failed.
|
|
269
167
|
*/
|
|
270
|
-
|
|
168
|
+
readonly state: string;
|
|
271
169
|
}
|
|
272
170
|
|
|
171
|
+
/**
|
|
172
|
+
* Создаёт один публичный attachment и передаёт все внешние эффекты в `host`.
|
|
173
|
+
*/
|
|
174
|
+
export function attachProgramWire(bytes: Uint8Array, stream_id: number, output_slot: number, sink_output: number, presentation_root: number, occurrence: number, host: Function): ProgramAttachment;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Компилирует canonical Program wire bytes и создаёт одну runtime Session.
|
|
178
|
+
*/
|
|
179
|
+
export function compileProgramWire(bytes: Uint8Array, stream_id: number): ProgramRuntime;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Decodes untrusted certificate bytes into immutable metadata for inspection
|
|
183
|
+
* only. The opaque body, producer capability, and admission state stay in
|
|
184
|
+
* Core and are not projected to JavaScript.
|
|
185
|
+
*/
|
|
186
|
+
export function decodeCertificateEnvelope(bytes: Uint8Array): any;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Точная оценка WCAG 2.2 одной финальной пары sRGB8.
|
|
190
|
+
*/
|
|
191
|
+
export function evaluateWcag22(foreground_hex: string, background_hex: string, criterion: string): Wcag22AssessmentV1;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Выдаёт собственную копию байтов сертификата встроенного дескриптора исходников Core.
|
|
195
|
+
* Идентичность и маркер создаёт Core; capability и состояние приёма остаются внутри.
|
|
196
|
+
*/
|
|
197
|
+
export function issueSourceCertificateEnvelope(): Uint8Array;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Единственный публичный манифест численных возможностей.
|
|
201
|
+
*/
|
|
202
|
+
export function numericalCapabilityManifest(): NumericalCapabilityManifestV2;
|
|
203
|
+
|
|
273
204
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
274
205
|
|
|
275
206
|
export interface InitOutput {
|
|
276
207
|
readonly memory: WebAssembly.Memory;
|
|
277
|
-
readonly
|
|
278
|
-
readonly
|
|
279
|
-
readonly
|
|
280
|
-
readonly
|
|
281
|
-
readonly
|
|
282
|
-
readonly
|
|
283
|
-
readonly
|
|
284
|
-
readonly
|
|
285
|
-
readonly
|
|
286
|
-
readonly
|
|
208
|
+
readonly __wbg_attachedmaterializationauthority_free: (a: number, b: number) => void;
|
|
209
|
+
readonly __wbg_programattachedrender_free: (a: number, b: number) => void;
|
|
210
|
+
readonly __wbg_programattachedsnapshot_free: (a: number, b: number) => void;
|
|
211
|
+
readonly __wbg_programattachment_free: (a: number, b: number) => void;
|
|
212
|
+
readonly __wbg_programruntime_free: (a: number, b: number) => void;
|
|
213
|
+
readonly __wbg_programsnapshot_free: (a: number, b: number) => void;
|
|
214
|
+
readonly attachProgramWire: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
215
|
+
readonly attachedmaterializationauthority_bindingEpoch: (a: number) => bigint;
|
|
216
|
+
readonly attachedmaterializationauthority_contentIdentity: (a: number, b: number) => void;
|
|
217
|
+
readonly attachedmaterializationauthority_contextIdentity: (a: number, b: number) => void;
|
|
218
|
+
readonly attachedmaterializationauthority_occurrence: (a: number) => number;
|
|
219
|
+
readonly attachedmaterializationauthority_outputOpacity: (a: number) => number;
|
|
220
|
+
readonly attachedmaterializationauthority_outputRgb: (a: number, b: number) => void;
|
|
221
|
+
readonly attachedmaterializationauthority_outputSlot: (a: number) => number;
|
|
222
|
+
readonly attachedmaterializationauthority_physicalIdentity: (a: number, b: number) => void;
|
|
223
|
+
readonly attachedmaterializationauthority_presentationRoot: (a: number) => number;
|
|
224
|
+
readonly attachedmaterializationauthority_rendererProvenance: (a: number, b: number) => void;
|
|
225
|
+
readonly attachedmaterializationauthority_revision: (a: number) => bigint;
|
|
226
|
+
readonly attachedmaterializationauthority_sinkSequence: (a: number) => bigint;
|
|
227
|
+
readonly attachedmaterializationauthority_terminalCompositeRgb: (a: number, b: number) => void;
|
|
228
|
+
readonly compileProgramWire: (a: number, b: number, c: number, d: number) => void;
|
|
229
|
+
readonly decodeCertificateEnvelope: (a: number, b: number, c: number) => void;
|
|
230
|
+
readonly evaluateWcag22: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
231
|
+
readonly issueSourceCertificateEnvelope: (a: number) => void;
|
|
232
|
+
readonly numericalCapabilityManifest: (a: number) => void;
|
|
233
|
+
readonly programattachedrender_bindingEpoch: (a: number) => bigint;
|
|
234
|
+
readonly programattachedrender_contentIdentity: (a: number, b: number) => void;
|
|
235
|
+
readonly programattachedrender_contextIdentity: (a: number, b: number) => void;
|
|
236
|
+
readonly programattachedrender_occurrence: (a: number) => number;
|
|
237
|
+
readonly programattachedrender_outputOpacity: (a: number) => number;
|
|
238
|
+
readonly programattachedrender_outputRgb: (a: number, b: number) => void;
|
|
239
|
+
readonly programattachedrender_outputSlot: (a: number) => number;
|
|
240
|
+
readonly programattachedrender_physicalIdentity: (a: number, b: number) => void;
|
|
241
|
+
readonly programattachedrender_presentationRoot: (a: number) => number;
|
|
242
|
+
readonly programattachedrender_revision: (a: number) => bigint;
|
|
243
|
+
readonly programattachedrender_sinkOutput: (a: number) => number;
|
|
244
|
+
readonly programattachedrender_sinkSequence: (a: number) => bigint;
|
|
245
|
+
readonly programattachedrender_terminalCompositeRgb: (a: number, b: number) => void;
|
|
246
|
+
readonly programattachedsnapshot_hasRender: (a: number) => number;
|
|
247
|
+
readonly programattachedsnapshot_outputCount: (a: number) => number;
|
|
248
|
+
readonly programattachedsnapshot_outputOpacity: (a: number, b: number, c: number) => void;
|
|
249
|
+
readonly programattachedsnapshot_outputRgb: (a: number, b: number, c: number) => void;
|
|
250
|
+
readonly programattachedsnapshot_outputSlot: (a: number, b: number, c: number) => void;
|
|
251
|
+
readonly programattachedsnapshot_render: (a: number) => number;
|
|
252
|
+
readonly programattachedsnapshot_state: (a: number, b: number) => void;
|
|
253
|
+
readonly programattachment_dispose: (a: number, b: number, c: number) => void;
|
|
254
|
+
readonly programattachment_materializationAuthority: (a: number, b: number) => void;
|
|
255
|
+
readonly programattachment_materializationAuthorityFor: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
256
|
+
readonly programattachment_updateObserved: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
257
|
+
readonly programattachment_updateUnknown: (a: number, b: number, c: number, d: number) => void;
|
|
258
|
+
readonly programruntime_updateObserved: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
259
|
+
readonly programruntime_updateUnknown: (a: number, b: number, c: number, d: number) => void;
|
|
260
|
+
readonly programsnapshot_outputCount: (a: number) => number;
|
|
261
|
+
readonly programsnapshot_outputOpacity: (a: number, b: number, c: number) => void;
|
|
262
|
+
readonly programsnapshot_outputRgb: (a: number, b: number, c: number) => void;
|
|
263
|
+
readonly programsnapshot_outputSlot: (a: number, b: number, c: number) => void;
|
|
264
|
+
readonly programsnapshot_state: (a: number, b: number) => void;
|
|
265
|
+
readonly __wbindgen_export: (a: number) => void;
|
|
287
266
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
288
|
-
readonly
|
|
267
|
+
readonly __wbindgen_export2: (a: number, b: number) => number;
|
|
268
|
+
readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
|
|
269
|
+
readonly __wbindgen_export4: (a: number, b: number, c: number, d: number) => number;
|
|
289
270
|
}
|
|
290
271
|
|
|
291
272
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|