@lynx-js/web-core-wasm 0.0.3 → 0.0.4
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/CHANGELOG.md +10 -0
- package/binary/client/client.d.ts +6 -8
- package/binary/client/client.js +21 -28
- package/binary/client/client_bg.wasm +0 -0
- package/binary/client/client_bg.wasm.d.ts +3 -4
- package/binary/client/client_debug.d.ts +32 -34
- package/binary/client/client_debug.js +21 -28
- package/binary/client/client_debug_bg.wasm +0 -0
- package/binary/client/client_debug_bg.wasm.d.ts +29 -30
- package/binary/encode/encode_bg.wasm +0 -0
- package/binary/encode/encode_debug_bg.wasm +0 -0
- package/binary/encode/encode_debug_bg.wasm.d.ts +1 -1
- package/binary/server/package.json +4 -0
- package/binary/server/server.d.ts +134 -0
- package/binary/server/server.js +839 -0
- package/binary/server/server_bg.wasm +0 -0
- package/binary/server/server_bg.wasm.d.ts +51 -0
- package/binary/server/server_debug.d.ts +134 -0
- package/binary/server/server_debug.js +839 -0
- package/binary/server/server_debug_bg.wasm +0 -0
- package/binary/server/server_debug_bg.wasm.d.ts +51 -0
- package/dist/client/decodeWorker/decode.worker.js +24 -45
- package/dist/client/mainthread/Background.js +1 -2
- package/dist/client/mainthread/LynxViewInstance.d.ts +2 -4
- package/dist/client/mainthread/LynxViewInstance.js +12 -34
- package/dist/client/mainthread/TemplateManager.d.ts +1 -0
- package/dist/client/mainthread/TemplateManager.js +14 -3
- package/dist/client/mainthread/elementAPIs/createElementAPI.js +2 -1
- package/dist/client/mainthread/utils/requestIdleCallback.d.ts +1 -0
- package/dist/client/mainthread/utils/requestIdleCallback.js +5 -0
- package/dist/client/wasm.d.ts +0 -1
- package/dist/client/wasm.js +0 -3
- package/dist/client_prod/static/js/async/web-core-main-chunk.js +1 -1
- package/dist/client_prod/static/js/async/web-core-template-loader-thread.js +4 -6
- package/dist/client_prod/static/js/async/web-elements.js +10 -10
- package/dist/client_prod/static/js/client.js +2 -2
- package/dist/client_prod/static/wasm/af9fb056.module.wasm +0 -0
- package/dist/common/decodeUtils.d.ts +1 -0
- package/dist/common/decodeUtils.js +41 -0
- package/dist/constants.d.ts +3 -2
- package/dist/constants.js +3 -2
- package/dist/encode/webEncoder.js +5 -3
- package/dist/server/createServerLynx.d.ts +3 -0
- package/dist/server/createServerLynx.js +40 -0
- package/dist/server/decode.d.ts +7 -0
- package/dist/server/decode.js +83 -0
- package/dist/server/deploy.d.ts +2 -0
- package/dist/server/deploy.js +61 -0
- package/dist/server/elementAPIs/createElementAPI.d.ts +13 -0
- package/dist/server/elementAPIs/createElementAPI.js +235 -0
- package/dist/server/elementAPIs/pureElementAPIs.d.ts +38 -0
- package/dist/server/elementAPIs/pureElementAPIs.js +112 -0
- package/dist/server/index.d.ts +4 -0
- package/dist/server/index.js +10 -0
- package/dist/server/wasm.d.ts +1 -0
- package/dist/server/wasm.js +7 -0
- package/dist/types/DecodedTemplate.d.ts +2 -0
- package/package.json +12 -7
- package/dist/client_prod/static/css/async/web-elements.css +0 -1
- package/dist/client_prod/static/wasm/a156b496.module.wasm +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @lynx-js/web-core-wasm
|
|
2
2
|
|
|
3
|
+
## 0.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Refactor web element templates and server-side rendering logic ([#2205](https://github.com/lynx-family/lynx-stack/pull/2205))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`94e5779`](https://github.com/lynx-family/lynx-stack/commit/94e57796c39e9cab1f3790a1986aeacea6a7484e), [`9033e2d`](https://github.com/lynx-family/lynx-stack/commit/9033e2d6c7c0c2405ecbbf73446239dd65b4a177)]:
|
|
10
|
+
- @lynx-js/web-elements@0.11.3
|
|
11
|
+
- @lynx-js/css-serializer@0.1.4
|
|
12
|
+
|
|
3
13
|
## 0.0.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -35,7 +35,7 @@ export class MainThreadWasmContext {
|
|
|
35
35
|
get_events(unique_id: number): EventInfo[];
|
|
36
36
|
get_unique_id_by_component_id(component_id: string): number | undefined;
|
|
37
37
|
constructor(root_node: Node, mts_binding: any, config_enable_css_selector: boolean);
|
|
38
|
-
push_style_sheet(
|
|
38
|
+
push_style_sheet(style_info: StyleSheetResource, entry_name?: string | null): void;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* * key: String
|
|
@@ -146,11 +146,10 @@ export class Selector {
|
|
|
146
146
|
push_one_selector_section(selector_type: string, value: string): void;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
export class
|
|
149
|
+
export class StyleSheetResource {
|
|
150
150
|
free(): void;
|
|
151
151
|
[Symbol.dispose](): void;
|
|
152
|
-
|
|
153
|
-
constructor();
|
|
152
|
+
constructor(buffer: Uint8Array, _document: any);
|
|
154
153
|
}
|
|
155
154
|
|
|
156
155
|
/**
|
|
@@ -191,7 +190,7 @@ export interface InitOutput {
|
|
|
191
190
|
readonly __wbg_set_eventinfo_event_handler: (a: number, b: any) => void;
|
|
192
191
|
readonly __wbg_set_eventinfo_event_name: (a: number, b: number, c: number) => void;
|
|
193
192
|
readonly __wbg_set_eventinfo_event_type: (a: number, b: number, c: number) => void;
|
|
194
|
-
readonly
|
|
193
|
+
readonly __wbg_stylesheetresource_free: (a: number, b: number) => void;
|
|
195
194
|
readonly add_inline_style_raw_string_key: (a: any, b: number, c: number, d: number, e: number) => void;
|
|
196
195
|
readonly decode_style_info: (a: any, b: number, c: number, d: number) => [number, number, number];
|
|
197
196
|
readonly encode_legacy_json_generated_raw_style_info: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
@@ -215,7 +214,7 @@ export interface InitOutput {
|
|
|
215
214
|
readonly mainthreadwasmcontext_get_events: (a: number, b: number) => [number, number];
|
|
216
215
|
readonly mainthreadwasmcontext_get_unique_id_by_component_id: (a: number, b: number, c: number) => number;
|
|
217
216
|
readonly mainthreadwasmcontext_new: (a: any, b: any, c: number) => number;
|
|
218
|
-
readonly mainthreadwasmcontext_push_style_sheet: (a: number, b: number, c: number, d: number
|
|
217
|
+
readonly mainthreadwasmcontext_push_style_sheet: (a: number, b: number, c: number, d: number) => [number, number];
|
|
219
218
|
readonly mainthreadwasmcontext_set_config: (a: number, b: number, c: any) => [number, number];
|
|
220
219
|
readonly mainthreadwasmcontext_set_css_id: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
221
220
|
readonly mainthreadwasmcontext_set_dataset: (a: number, b: number, c: any, d: any) => [number, number];
|
|
@@ -235,8 +234,7 @@ export interface InitOutput {
|
|
|
235
234
|
readonly selector_push_one_selector_section: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
236
235
|
readonly set_inline_styles_in_str: (a: any, b: number, c: number) => number;
|
|
237
236
|
readonly set_inline_styles_number_key: (a: any, b: number, c: number, d: number) => void;
|
|
238
|
-
readonly
|
|
239
|
-
readonly templatemanager_new: () => number;
|
|
237
|
+
readonly stylesheetresource_new: (a: any, b: any) => [number, number, number];
|
|
240
238
|
readonly selector_new: () => number;
|
|
241
239
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
242
240
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
package/binary/client/client.js
CHANGED
|
@@ -300,15 +300,14 @@ export class MainThreadWasmContext {
|
|
|
300
300
|
return this;
|
|
301
301
|
}
|
|
302
302
|
/**
|
|
303
|
-
* @param {
|
|
304
|
-
* @param {string} entry_name
|
|
305
|
-
* @param {boolean} is_entry_template
|
|
303
|
+
* @param {StyleSheetResource} style_info
|
|
304
|
+
* @param {string | null} [entry_name]
|
|
306
305
|
*/
|
|
307
|
-
push_style_sheet(
|
|
308
|
-
_assertClass(
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
const ret = wasm.mainthreadwasmcontext_push_style_sheet(this.__wbg_ptr,
|
|
306
|
+
push_style_sheet(style_info, entry_name) {
|
|
307
|
+
_assertClass(style_info, StyleSheetResource);
|
|
308
|
+
var ptr0 = isLikeNone(entry_name) ? 0 : passStringToWasm0(entry_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
309
|
+
var len0 = WASM_VECTOR_LEN;
|
|
310
|
+
const ret = wasm.mainthreadwasmcontext_push_style_sheet(this.__wbg_ptr, style_info.__wbg_ptr, ptr0, len0);
|
|
312
311
|
if (ret[1]) {
|
|
313
312
|
throw takeFromExternrefTable0(ret[0]);
|
|
314
313
|
}
|
|
@@ -596,38 +595,32 @@ export class Selector {
|
|
|
596
595
|
}
|
|
597
596
|
if (Symbol.dispose) Selector.prototype[Symbol.dispose] = Selector.prototype.free;
|
|
598
597
|
|
|
599
|
-
export class
|
|
598
|
+
export class StyleSheetResource {
|
|
600
599
|
__destroy_into_raw() {
|
|
601
600
|
const ptr = this.__wbg_ptr;
|
|
602
601
|
this.__wbg_ptr = 0;
|
|
603
|
-
|
|
602
|
+
StyleSheetResourceFinalization.unregister(this);
|
|
604
603
|
return ptr;
|
|
605
604
|
}
|
|
606
605
|
free() {
|
|
607
606
|
const ptr = this.__destroy_into_raw();
|
|
608
|
-
wasm.
|
|
607
|
+
wasm.__wbg_stylesheetresource_free(ptr, 0);
|
|
609
608
|
}
|
|
610
609
|
/**
|
|
611
|
-
* @param {
|
|
612
|
-
* @param {
|
|
613
|
-
* @param {Document} document
|
|
610
|
+
* @param {Uint8Array} buffer
|
|
611
|
+
* @param {any} _document
|
|
614
612
|
*/
|
|
615
|
-
|
|
616
|
-
const
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
if (ret[1]) {
|
|
620
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
613
|
+
constructor(buffer, _document) {
|
|
614
|
+
const ret = wasm.stylesheetresource_new(buffer, _document);
|
|
615
|
+
if (ret[2]) {
|
|
616
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
621
617
|
}
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
const ret = wasm.templatemanager_new();
|
|
625
|
-
this.__wbg_ptr = ret >>> 0;
|
|
626
|
-
TemplateManagerFinalization.register(this, this.__wbg_ptr, this);
|
|
618
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
619
|
+
StyleSheetResourceFinalization.register(this, this.__wbg_ptr, this);
|
|
627
620
|
return this;
|
|
628
621
|
}
|
|
629
622
|
}
|
|
630
|
-
if (Symbol.dispose)
|
|
623
|
+
if (Symbol.dispose) StyleSheetResource.prototype[Symbol.dispose] = StyleSheetResource.prototype.free;
|
|
631
624
|
|
|
632
625
|
/**
|
|
633
626
|
*
|
|
@@ -974,9 +967,9 @@ const RulePreludeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
974
967
|
const SelectorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
975
968
|
? { register: () => {}, unregister: () => {} }
|
|
976
969
|
: new FinalizationRegistry(ptr => wasm.__wbg_selector_free(ptr >>> 0, 1));
|
|
977
|
-
const
|
|
970
|
+
const StyleSheetResourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
978
971
|
? { register: () => {}, unregister: () => {} }
|
|
979
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
972
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_stylesheetresource_free(ptr >>> 0, 1));
|
|
980
973
|
|
|
981
974
|
function addToExternrefTable0(obj) {
|
|
982
975
|
const idx = wasm.__externref_table_alloc();
|
|
Binary file
|
|
@@ -13,7 +13,7 @@ export const __wbg_selector_free: (a: number, b: number) => void;
|
|
|
13
13
|
export const __wbg_set_eventinfo_event_handler: (a: number, b: any) => void;
|
|
14
14
|
export const __wbg_set_eventinfo_event_name: (a: number, b: number, c: number) => void;
|
|
15
15
|
export const __wbg_set_eventinfo_event_type: (a: number, b: number, c: number) => void;
|
|
16
|
-
export const
|
|
16
|
+
export const __wbg_stylesheetresource_free: (a: number, b: number) => void;
|
|
17
17
|
export const add_inline_style_raw_string_key: (a: any, b: number, c: number, d: number, e: number) => void;
|
|
18
18
|
export const decode_style_info: (a: any, b: number, c: number, d: number) => [number, number, number];
|
|
19
19
|
export const encode_legacy_json_generated_raw_style_info: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
@@ -37,7 +37,7 @@ export const mainthreadwasmcontext_get_event: (a: number, b: number, c: number,
|
|
|
37
37
|
export const mainthreadwasmcontext_get_events: (a: number, b: number) => [number, number];
|
|
38
38
|
export const mainthreadwasmcontext_get_unique_id_by_component_id: (a: number, b: number, c: number) => number;
|
|
39
39
|
export const mainthreadwasmcontext_new: (a: any, b: any, c: number) => number;
|
|
40
|
-
export const mainthreadwasmcontext_push_style_sheet: (a: number, b: number, c: number, d: number
|
|
40
|
+
export const mainthreadwasmcontext_push_style_sheet: (a: number, b: number, c: number, d: number) => [number, number];
|
|
41
41
|
export const mainthreadwasmcontext_set_config: (a: number, b: number, c: any) => [number, number];
|
|
42
42
|
export const mainthreadwasmcontext_set_css_id: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
43
43
|
export const mainthreadwasmcontext_set_dataset: (a: number, b: number, c: any, d: any) => [number, number];
|
|
@@ -57,8 +57,7 @@ export const ruleprelude_push_selector: (a: number, b: number) => void;
|
|
|
57
57
|
export const selector_push_one_selector_section: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
58
58
|
export const set_inline_styles_in_str: (a: any, b: number, c: number) => number;
|
|
59
59
|
export const set_inline_styles_number_key: (a: any, b: number, c: number, d: number) => void;
|
|
60
|
-
export const
|
|
61
|
-
export const templatemanager_new: () => number;
|
|
60
|
+
export const stylesheetresource_new: (a: any, b: any) => [number, number, number];
|
|
62
61
|
export const selector_new: () => number;
|
|
63
62
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
64
63
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -35,7 +35,7 @@ export class MainThreadWasmContext {
|
|
|
35
35
|
get_events(unique_id: number): EventInfo[];
|
|
36
36
|
get_unique_id_by_component_id(component_id: string): number | undefined;
|
|
37
37
|
constructor(root_node: Node, mts_binding: any, config_enable_css_selector: boolean);
|
|
38
|
-
push_style_sheet(
|
|
38
|
+
push_style_sheet(style_info: StyleSheetResource, entry_name?: string | null): void;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* * key: String
|
|
@@ -146,11 +146,10 @@ export class Selector {
|
|
|
146
146
|
push_one_selector_section(selector_type: string, value: string): void;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
export class
|
|
149
|
+
export class StyleSheetResource {
|
|
150
150
|
free(): void;
|
|
151
151
|
[Symbol.dispose](): void;
|
|
152
|
-
|
|
153
|
-
constructor();
|
|
152
|
+
constructor(buffer: Uint8Array, _document: any);
|
|
154
153
|
}
|
|
155
154
|
|
|
156
155
|
/**
|
|
@@ -179,42 +178,14 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
179
178
|
|
|
180
179
|
export interface InitOutput {
|
|
181
180
|
readonly memory: WebAssembly.Memory;
|
|
182
|
-
readonly mainthreadwasmcontext_get_component_id: (a: number, b: number) => [number, number, number, number];
|
|
183
|
-
readonly mainthreadwasmcontext_get_config: (a: number, b: number) => [number, number, number];
|
|
184
|
-
readonly mainthreadwasmcontext_get_element_config: (a: number, b: number) => [number, number, number];
|
|
185
|
-
readonly mainthreadwasmcontext_set_config: (a: number, b: number, c: any) => [number, number];
|
|
186
|
-
readonly mainthreadwasmcontext_update_component_id: (a: number, b: number, c: number, d: number) => [number, number];
|
|
187
|
-
readonly __wbg_eventinfo_free: (a: number, b: number) => void;
|
|
188
|
-
readonly __wbg_get_eventinfo_event_handler: (a: number) => any;
|
|
189
|
-
readonly __wbg_get_eventinfo_event_name: (a: number) => [number, number];
|
|
190
|
-
readonly __wbg_get_eventinfo_event_type: (a: number) => [number, number];
|
|
191
|
-
readonly __wbg_set_eventinfo_event_handler: (a: number, b: any) => void;
|
|
192
|
-
readonly __wbg_set_eventinfo_event_name: (a: number, b: number, c: number) => void;
|
|
193
|
-
readonly __wbg_set_eventinfo_event_type: (a: number, b: number, c: number) => void;
|
|
194
|
-
readonly mainthreadwasmcontext_add_cross_thread_event: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
195
|
-
readonly mainthreadwasmcontext_add_run_worklet_event: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
196
|
-
readonly mainthreadwasmcontext_common_event_handler: (a: number, b: any, c: number, d: number, e: number, f: number) => void;
|
|
197
|
-
readonly mainthreadwasmcontext_dispatch_event_by_path: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => number;
|
|
198
|
-
readonly mainthreadwasmcontext_get_event: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
199
|
-
readonly mainthreadwasmcontext_get_events: (a: number, b: number) => [number, number];
|
|
200
|
-
readonly __wbg_mainthreadwasmcontext_free: (a: number, b: number) => void;
|
|
201
|
-
readonly mainthreadwasmcontext_create_element_common: (a: number, b: number, c: any, d: number, e: number, f: number) => number;
|
|
202
|
-
readonly mainthreadwasmcontext_get_css_id_by_unique_id: (a: number, b: number) => number;
|
|
203
|
-
readonly mainthreadwasmcontext_get_dom_by_unique_id: (a: number, b: number) => any;
|
|
204
|
-
readonly mainthreadwasmcontext_get_unique_id_by_component_id: (a: number, b: number, c: number) => number;
|
|
205
|
-
readonly mainthreadwasmcontext_new: (a: any, b: any, c: number) => number;
|
|
206
|
-
readonly mainthreadwasmcontext_push_style_sheet: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
207
|
-
readonly mainthreadwasmcontext_set_page_element_unique_id: (a: number, b: number) => void;
|
|
208
|
-
readonly mainthreadwasmcontext_take_timing_flags: (a: number) => [number, number];
|
|
209
181
|
readonly add_inline_style_raw_string_key: (a: any, b: number, c: number, d: number, e: number) => void;
|
|
210
182
|
readonly get_inline_styles_in_key_value_vec: (a: any, b: number, c: number) => void;
|
|
211
183
|
readonly mainthreadwasmcontext_set_css_id: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
212
184
|
readonly mainthreadwasmcontext_update_css_og_style: (a: number, b: number, c: number, d: number) => [number, number];
|
|
213
185
|
readonly set_inline_styles_in_str: (a: any, b: number, c: number) => number;
|
|
214
186
|
readonly set_inline_styles_number_key: (a: any, b: number, c: number, d: number) => void;
|
|
215
|
-
readonly
|
|
216
|
-
readonly
|
|
217
|
-
readonly templatemanager_new: () => number;
|
|
187
|
+
readonly __wbg_stylesheetresource_free: (a: number, b: number) => void;
|
|
188
|
+
readonly stylesheetresource_new: (a: any, b: any) => [number, number, number];
|
|
218
189
|
readonly __wbg_rawstyleinfo_free: (a: number, b: number) => void;
|
|
219
190
|
readonly __wbg_rule_free: (a: number, b: number) => void;
|
|
220
191
|
readonly __wbg_ruleprelude_free: (a: number, b: number) => void;
|
|
@@ -234,10 +205,37 @@ export interface InitOutput {
|
|
|
234
205
|
readonly mainthreadwasmcontext_get_data_by_key: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
235
206
|
readonly mainthreadwasmcontext_get_dataset: (a: number, b: number) => [number, number, number];
|
|
236
207
|
readonly mainthreadwasmcontext_set_dataset: (a: number, b: number, c: any, d: any) => [number, number];
|
|
208
|
+
readonly mainthreadwasmcontext_get_component_id: (a: number, b: number) => [number, number, number, number];
|
|
209
|
+
readonly mainthreadwasmcontext_get_config: (a: number, b: number) => [number, number, number];
|
|
210
|
+
readonly mainthreadwasmcontext_get_element_config: (a: number, b: number) => [number, number, number];
|
|
211
|
+
readonly mainthreadwasmcontext_set_config: (a: number, b: number, c: any) => [number, number];
|
|
212
|
+
readonly mainthreadwasmcontext_update_component_id: (a: number, b: number, c: number, d: number) => [number, number];
|
|
213
|
+
readonly __wbg_mainthreadwasmcontext_free: (a: number, b: number) => void;
|
|
214
|
+
readonly mainthreadwasmcontext_create_element_common: (a: number, b: number, c: any, d: number, e: number, f: number) => number;
|
|
215
|
+
readonly mainthreadwasmcontext_get_css_id_by_unique_id: (a: number, b: number) => number;
|
|
216
|
+
readonly mainthreadwasmcontext_get_dom_by_unique_id: (a: number, b: number) => any;
|
|
217
|
+
readonly mainthreadwasmcontext_get_unique_id_by_component_id: (a: number, b: number, c: number) => number;
|
|
218
|
+
readonly mainthreadwasmcontext_new: (a: any, b: any, c: number) => number;
|
|
219
|
+
readonly mainthreadwasmcontext_push_style_sheet: (a: number, b: number, c: number, d: number) => [number, number];
|
|
220
|
+
readonly mainthreadwasmcontext_set_page_element_unique_id: (a: number, b: number) => void;
|
|
221
|
+
readonly mainthreadwasmcontext_take_timing_flags: (a: number) => [number, number];
|
|
237
222
|
readonly decode_style_info: (a: any, b: number, c: number, d: number) => [number, number, number];
|
|
238
223
|
readonly encode_legacy_json_generated_raw_style_info: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
239
224
|
readonly get_font_face_content: (a: any) => [number, number, number, number];
|
|
240
225
|
readonly get_style_content: (a: any) => [number, number, number, number];
|
|
226
|
+
readonly __wbg_eventinfo_free: (a: number, b: number) => void;
|
|
227
|
+
readonly __wbg_get_eventinfo_event_handler: (a: number) => any;
|
|
228
|
+
readonly __wbg_get_eventinfo_event_name: (a: number) => [number, number];
|
|
229
|
+
readonly __wbg_get_eventinfo_event_type: (a: number) => [number, number];
|
|
230
|
+
readonly __wbg_set_eventinfo_event_handler: (a: number, b: any) => void;
|
|
231
|
+
readonly __wbg_set_eventinfo_event_name: (a: number, b: number, c: number) => void;
|
|
232
|
+
readonly __wbg_set_eventinfo_event_type: (a: number, b: number, c: number) => void;
|
|
233
|
+
readonly mainthreadwasmcontext_add_cross_thread_event: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
234
|
+
readonly mainthreadwasmcontext_add_run_worklet_event: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
235
|
+
readonly mainthreadwasmcontext_common_event_handler: (a: number, b: any, c: number, d: number, e: number, f: number) => void;
|
|
236
|
+
readonly mainthreadwasmcontext_dispatch_event_by_path: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => number;
|
|
237
|
+
readonly mainthreadwasmcontext_get_event: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
238
|
+
readonly mainthreadwasmcontext_get_events: (a: number, b: number) => [number, number];
|
|
241
239
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
242
240
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
243
241
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -300,15 +300,14 @@ export class MainThreadWasmContext {
|
|
|
300
300
|
return this;
|
|
301
301
|
}
|
|
302
302
|
/**
|
|
303
|
-
* @param {
|
|
304
|
-
* @param {string} entry_name
|
|
305
|
-
* @param {boolean} is_entry_template
|
|
303
|
+
* @param {StyleSheetResource} style_info
|
|
304
|
+
* @param {string | null} [entry_name]
|
|
306
305
|
*/
|
|
307
|
-
push_style_sheet(
|
|
308
|
-
_assertClass(
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
const ret = wasm.mainthreadwasmcontext_push_style_sheet(this.__wbg_ptr,
|
|
306
|
+
push_style_sheet(style_info, entry_name) {
|
|
307
|
+
_assertClass(style_info, StyleSheetResource);
|
|
308
|
+
var ptr0 = isLikeNone(entry_name) ? 0 : passStringToWasm0(entry_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
309
|
+
var len0 = WASM_VECTOR_LEN;
|
|
310
|
+
const ret = wasm.mainthreadwasmcontext_push_style_sheet(this.__wbg_ptr, style_info.__wbg_ptr, ptr0, len0);
|
|
312
311
|
if (ret[1]) {
|
|
313
312
|
throw takeFromExternrefTable0(ret[0]);
|
|
314
313
|
}
|
|
@@ -596,38 +595,32 @@ export class Selector {
|
|
|
596
595
|
}
|
|
597
596
|
if (Symbol.dispose) Selector.prototype[Symbol.dispose] = Selector.prototype.free;
|
|
598
597
|
|
|
599
|
-
export class
|
|
598
|
+
export class StyleSheetResource {
|
|
600
599
|
__destroy_into_raw() {
|
|
601
600
|
const ptr = this.__wbg_ptr;
|
|
602
601
|
this.__wbg_ptr = 0;
|
|
603
|
-
|
|
602
|
+
StyleSheetResourceFinalization.unregister(this);
|
|
604
603
|
return ptr;
|
|
605
604
|
}
|
|
606
605
|
free() {
|
|
607
606
|
const ptr = this.__destroy_into_raw();
|
|
608
|
-
wasm.
|
|
607
|
+
wasm.__wbg_stylesheetresource_free(ptr, 0);
|
|
609
608
|
}
|
|
610
609
|
/**
|
|
611
|
-
* @param {
|
|
612
|
-
* @param {
|
|
613
|
-
* @param {Document} document
|
|
610
|
+
* @param {Uint8Array} buffer
|
|
611
|
+
* @param {any} _document
|
|
614
612
|
*/
|
|
615
|
-
|
|
616
|
-
const
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
if (ret[1]) {
|
|
620
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
613
|
+
constructor(buffer, _document) {
|
|
614
|
+
const ret = wasm.stylesheetresource_new(buffer, _document);
|
|
615
|
+
if (ret[2]) {
|
|
616
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
621
617
|
}
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
const ret = wasm.templatemanager_new();
|
|
625
|
-
this.__wbg_ptr = ret >>> 0;
|
|
626
|
-
TemplateManagerFinalization.register(this, this.__wbg_ptr, this);
|
|
618
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
619
|
+
StyleSheetResourceFinalization.register(this, this.__wbg_ptr, this);
|
|
627
620
|
return this;
|
|
628
621
|
}
|
|
629
622
|
}
|
|
630
|
-
if (Symbol.dispose)
|
|
623
|
+
if (Symbol.dispose) StyleSheetResource.prototype[Symbol.dispose] = StyleSheetResource.prototype.free;
|
|
631
624
|
|
|
632
625
|
/**
|
|
633
626
|
*
|
|
@@ -974,9 +967,9 @@ const RulePreludeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
974
967
|
const SelectorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
975
968
|
? { register: () => {}, unregister: () => {} }
|
|
976
969
|
: new FinalizationRegistry(ptr => wasm.__wbg_selector_free(ptr >>> 0, 1));
|
|
977
|
-
const
|
|
970
|
+
const StyleSheetResourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
978
971
|
? { register: () => {}, unregister: () => {} }
|
|
979
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
972
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_stylesheetresource_free(ptr >>> 0, 1));
|
|
980
973
|
|
|
981
974
|
function addToExternrefTable0(obj) {
|
|
982
975
|
const idx = wasm.__externref_table_alloc();
|
|
Binary file
|
|
@@ -1,42 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const mainthreadwasmcontext_get_component_id: (a: number, b: number) => [number, number, number, number];
|
|
5
|
-
export const mainthreadwasmcontext_get_config: (a: number, b: number) => [number, number, number];
|
|
6
|
-
export const mainthreadwasmcontext_get_element_config: (a: number, b: number) => [number, number, number];
|
|
7
|
-
export const mainthreadwasmcontext_set_config: (a: number, b: number, c: any) => [number, number];
|
|
8
|
-
export const mainthreadwasmcontext_update_component_id: (a: number, b: number, c: number, d: number) => [number, number];
|
|
9
|
-
export const __wbg_eventinfo_free: (a: number, b: number) => void;
|
|
10
|
-
export const __wbg_get_eventinfo_event_handler: (a: number) => any;
|
|
11
|
-
export const __wbg_get_eventinfo_event_name: (a: number) => [number, number];
|
|
12
|
-
export const __wbg_get_eventinfo_event_type: (a: number) => [number, number];
|
|
13
|
-
export const __wbg_set_eventinfo_event_handler: (a: number, b: any) => void;
|
|
14
|
-
export const __wbg_set_eventinfo_event_name: (a: number, b: number, c: number) => void;
|
|
15
|
-
export const __wbg_set_eventinfo_event_type: (a: number, b: number, c: number) => void;
|
|
16
|
-
export const mainthreadwasmcontext_add_cross_thread_event: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
17
|
-
export const mainthreadwasmcontext_add_run_worklet_event: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
18
|
-
export const mainthreadwasmcontext_common_event_handler: (a: number, b: any, c: number, d: number, e: number, f: number) => void;
|
|
19
|
-
export const mainthreadwasmcontext_dispatch_event_by_path: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => number;
|
|
20
|
-
export const mainthreadwasmcontext_get_event: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
21
|
-
export const mainthreadwasmcontext_get_events: (a: number, b: number) => [number, number];
|
|
22
|
-
export const __wbg_mainthreadwasmcontext_free: (a: number, b: number) => void;
|
|
23
|
-
export const mainthreadwasmcontext_create_element_common: (a: number, b: number, c: any, d: number, e: number, f: number) => number;
|
|
24
|
-
export const mainthreadwasmcontext_get_css_id_by_unique_id: (a: number, b: number) => number;
|
|
25
|
-
export const mainthreadwasmcontext_get_dom_by_unique_id: (a: number, b: number) => any;
|
|
26
|
-
export const mainthreadwasmcontext_get_unique_id_by_component_id: (a: number, b: number, c: number) => number;
|
|
27
|
-
export const mainthreadwasmcontext_new: (a: any, b: any, c: number) => number;
|
|
28
|
-
export const mainthreadwasmcontext_push_style_sheet: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
29
|
-
export const mainthreadwasmcontext_set_page_element_unique_id: (a: number, b: number) => void;
|
|
30
|
-
export const mainthreadwasmcontext_take_timing_flags: (a: number) => [number, number];
|
|
31
4
|
export const add_inline_style_raw_string_key: (a: any, b: number, c: number, d: number, e: number) => void;
|
|
32
5
|
export const get_inline_styles_in_key_value_vec: (a: any, b: number, c: number) => void;
|
|
33
6
|
export const mainthreadwasmcontext_set_css_id: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
34
7
|
export const mainthreadwasmcontext_update_css_og_style: (a: number, b: number, c: number, d: number) => [number, number];
|
|
35
8
|
export const set_inline_styles_in_str: (a: any, b: number, c: number) => number;
|
|
36
9
|
export const set_inline_styles_number_key: (a: any, b: number, c: number, d: number) => void;
|
|
37
|
-
export const
|
|
38
|
-
export const
|
|
39
|
-
export const templatemanager_new: () => number;
|
|
10
|
+
export const __wbg_stylesheetresource_free: (a: number, b: number) => void;
|
|
11
|
+
export const stylesheetresource_new: (a: any, b: any) => [number, number, number];
|
|
40
12
|
export const __wbg_rawstyleinfo_free: (a: number, b: number) => void;
|
|
41
13
|
export const __wbg_rule_free: (a: number, b: number) => void;
|
|
42
14
|
export const __wbg_ruleprelude_free: (a: number, b: number) => void;
|
|
@@ -56,10 +28,37 @@ export const mainthreadwasmcontext_add_dataset: (a: number, b: number, c: any, d
|
|
|
56
28
|
export const mainthreadwasmcontext_get_data_by_key: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
57
29
|
export const mainthreadwasmcontext_get_dataset: (a: number, b: number) => [number, number, number];
|
|
58
30
|
export const mainthreadwasmcontext_set_dataset: (a: number, b: number, c: any, d: any) => [number, number];
|
|
31
|
+
export const mainthreadwasmcontext_get_component_id: (a: number, b: number) => [number, number, number, number];
|
|
32
|
+
export const mainthreadwasmcontext_get_config: (a: number, b: number) => [number, number, number];
|
|
33
|
+
export const mainthreadwasmcontext_get_element_config: (a: number, b: number) => [number, number, number];
|
|
34
|
+
export const mainthreadwasmcontext_set_config: (a: number, b: number, c: any) => [number, number];
|
|
35
|
+
export const mainthreadwasmcontext_update_component_id: (a: number, b: number, c: number, d: number) => [number, number];
|
|
36
|
+
export const __wbg_mainthreadwasmcontext_free: (a: number, b: number) => void;
|
|
37
|
+
export const mainthreadwasmcontext_create_element_common: (a: number, b: number, c: any, d: number, e: number, f: number) => number;
|
|
38
|
+
export const mainthreadwasmcontext_get_css_id_by_unique_id: (a: number, b: number) => number;
|
|
39
|
+
export const mainthreadwasmcontext_get_dom_by_unique_id: (a: number, b: number) => any;
|
|
40
|
+
export const mainthreadwasmcontext_get_unique_id_by_component_id: (a: number, b: number, c: number) => number;
|
|
41
|
+
export const mainthreadwasmcontext_new: (a: any, b: any, c: number) => number;
|
|
42
|
+
export const mainthreadwasmcontext_push_style_sheet: (a: number, b: number, c: number, d: number) => [number, number];
|
|
43
|
+
export const mainthreadwasmcontext_set_page_element_unique_id: (a: number, b: number) => void;
|
|
44
|
+
export const mainthreadwasmcontext_take_timing_flags: (a: number) => [number, number];
|
|
59
45
|
export const decode_style_info: (a: any, b: number, c: number, d: number) => [number, number, number];
|
|
60
46
|
export const encode_legacy_json_generated_raw_style_info: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
61
47
|
export const get_font_face_content: (a: any) => [number, number, number, number];
|
|
62
48
|
export const get_style_content: (a: any) => [number, number, number, number];
|
|
49
|
+
export const __wbg_eventinfo_free: (a: number, b: number) => void;
|
|
50
|
+
export const __wbg_get_eventinfo_event_handler: (a: number) => any;
|
|
51
|
+
export const __wbg_get_eventinfo_event_name: (a: number) => [number, number];
|
|
52
|
+
export const __wbg_get_eventinfo_event_type: (a: number) => [number, number];
|
|
53
|
+
export const __wbg_set_eventinfo_event_handler: (a: number, b: any) => void;
|
|
54
|
+
export const __wbg_set_eventinfo_event_name: (a: number, b: number, c: number) => void;
|
|
55
|
+
export const __wbg_set_eventinfo_event_type: (a: number, b: number, c: number) => void;
|
|
56
|
+
export const mainthreadwasmcontext_add_cross_thread_event: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
57
|
+
export const mainthreadwasmcontext_add_run_worklet_event: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
58
|
+
export const mainthreadwasmcontext_common_event_handler: (a: number, b: any, c: number, d: number, e: number, f: number) => void;
|
|
59
|
+
export const mainthreadwasmcontext_dispatch_event_by_path: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => number;
|
|
60
|
+
export const mainthreadwasmcontext_get_event: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
61
|
+
export const mainthreadwasmcontext_get_events: (a: number, b: number) => [number, number];
|
|
63
62
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
64
63
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
65
64
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const __wbg_styleinfodecoder_free: (a: number, b: number) => void;
|
|
4
5
|
export const __wbg_rawstyleinfo_free: (a: number, b: number) => void;
|
|
5
6
|
export const __wbg_rule_free: (a: number, b: number) => void;
|
|
6
7
|
export const __wbg_ruleprelude_free: (a: number, b: number) => void;
|
|
@@ -21,7 +22,6 @@ export const decode_style_info: (a: any, b: number, c: number, d: number) => [nu
|
|
|
21
22
|
export const encode_legacy_json_generated_raw_style_info: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
22
23
|
export const get_font_face_content: (a: any) => [number, number, number, number];
|
|
23
24
|
export const get_style_content: (a: any) => [number, number, number, number];
|
|
24
|
-
export const __wbg_styleinfodecoder_free: (a: number, b: number) => void;
|
|
25
25
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
26
26
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
27
27
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
export class MainThreadServerContext {
|
|
5
|
+
free(): void;
|
|
6
|
+
[Symbol.dispose](): void;
|
|
7
|
+
add_class(element_id: number, class_name: string): void;
|
|
8
|
+
add_inline_style_raw_string_key(element_id: number, key: string, value?: string | null): void;
|
|
9
|
+
append_child(parent_id: number, child_id: number): void;
|
|
10
|
+
create_element(tag_name: string, parent_component_unique_id?: number | null, css_id_opt?: number | null, component_id?: string | null): number;
|
|
11
|
+
generate_html(element_id: number): string;
|
|
12
|
+
get_attribute(element_id: number, key: string): string | undefined;
|
|
13
|
+
get_attributes(element_id: number): object;
|
|
14
|
+
get_inline_styles_in_key_value_vec(element_id: number, k_v_vec: string[]): void;
|
|
15
|
+
get_page_css(): string;
|
|
16
|
+
get_tag(element_id: number): string | undefined;
|
|
17
|
+
constructor(view_attributes: string, enable_css_selector: boolean);
|
|
18
|
+
push_style_sheet(resource: StyleSheetResource, entry_name?: string | null): void;
|
|
19
|
+
remove_attribute(element_id: number, key: string): void;
|
|
20
|
+
set_attribute(element_id: number, key: string, value: string): void;
|
|
21
|
+
set_css_id(elements_unique_id: Uint32Array, css_id: number, entry_name?: string | null): void;
|
|
22
|
+
set_inline_styles_in_str(element_id: number, styles: string): boolean;
|
|
23
|
+
set_inline_styles_number_key(element_id: number, key: number, value?: string | null): void;
|
|
24
|
+
update_css_og_style(unique_id: number, entry_name?: string | null): void;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export class RawStyleInfo {
|
|
28
|
+
free(): void;
|
|
29
|
+
[Symbol.dispose](): void;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* * Appends an import to the stylesheet identified by `css_id`.
|
|
33
|
+
* * If the stylesheet does not exist, it is created.
|
|
34
|
+
* * @param css_id - The ID of the CSS file.
|
|
35
|
+
* * @param import_css_id - The ID of the imported CSS file.
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
append_import(css_id: number, import_css_id: number): void;
|
|
39
|
+
constructor();
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* * Pushes a rule to the stylesheet identified by `css_id`.
|
|
43
|
+
* * If the stylesheet does not exist, it is created.
|
|
44
|
+
* * @param css_id - The ID of the CSS file.
|
|
45
|
+
* * @param rule - The rule to append.
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
push_rule(css_id: number, rule: Rule): void;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export class Rule {
|
|
52
|
+
free(): void;
|
|
53
|
+
[Symbol.dispose](): void;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* * Creates a new Rule with the specified type.
|
|
57
|
+
* * @param rule_type - The type of the rule (e.g., "StyleRule", "FontFaceRule", "KeyframesRule").
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
constructor(rule_type: string);
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* * Pushes a declaration to the rule's declaration block.
|
|
64
|
+
* * LynxJS doesn't support !important
|
|
65
|
+
* * @param property_name - The property name.
|
|
66
|
+
* * @param value - The property value.
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
push_declaration(property_name: string, value: string): void;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* * Pushes a nested rule to the rule.
|
|
73
|
+
* * @param rule - The nested rule to add.
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
push_rule_children(rule: Rule): void;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* * Sets the prelude for the rule.
|
|
80
|
+
* * @param prelude - The prelude to set (SelectorList or KeyFramesPrelude).
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
set_prelude(prelude: RulePrelude): void;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* * Either SelectorList or KeyFramesPrelude
|
|
89
|
+
* * Depending on the RuleType
|
|
90
|
+
* * If it is SelectorList, then selectors is a list of Selector
|
|
91
|
+
* * If it is KeyFramesPrelude, then selectors has only one selector which is Prelude text, its simple_selectors is empty
|
|
92
|
+
* * If the parent is FontFace, then selectors is empty
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
export class RulePrelude {
|
|
96
|
+
free(): void;
|
|
97
|
+
[Symbol.dispose](): void;
|
|
98
|
+
constructor();
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* * Pushes a selector to the list.
|
|
102
|
+
* * @param selector - The selector to add.
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
push_selector(selector: Selector): void;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export class Selector {
|
|
109
|
+
free(): void;
|
|
110
|
+
[Symbol.dispose](): void;
|
|
111
|
+
constructor();
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* * Pushes a selector section to the selector.
|
|
115
|
+
* * @param selector_type - The type of the selector section (e.g., "ClassSelector", "IdSelector").
|
|
116
|
+
* * @param value - The value of the selector section.
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
push_one_selector_section(selector_type: string, value: string): void;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export class StyleSheetResource {
|
|
123
|
+
free(): void;
|
|
124
|
+
[Symbol.dispose](): void;
|
|
125
|
+
constructor(buffer: Uint8Array, _document: any);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function decode_style_info(buffer: Uint8Array, entry_name: string | null | undefined, config_enable_css_selector: boolean): Uint8Array;
|
|
129
|
+
|
|
130
|
+
export function encode_legacy_json_generated_raw_style_info(raw_style_info: RawStyleInfo, config_enable_css_selector: boolean, entry_name?: string | null): Uint8Array;
|
|
131
|
+
|
|
132
|
+
export function get_font_face_content(buffer: Uint8Array): string;
|
|
133
|
+
|
|
134
|
+
export function get_style_content(buffer: Uint8Array): string;
|