mol_plot_all 1.2.525 → 1.2.527

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/node.d.ts CHANGED
@@ -66,233 +66,6 @@ declare namespace $ {
66
66
  }
67
67
  }
68
68
 
69
- declare namespace $ {
70
- class $mol_after_tick extends $mol_object2 {
71
- task: () => void;
72
- promise: any;
73
- cancelled: boolean;
74
- constructor(task: () => void);
75
- destructor(): void;
76
- }
77
- }
78
-
79
- declare namespace $ {
80
- var $mol_dom_context: typeof globalThis;
81
- }
82
-
83
- interface $node {
84
- [key: string]: any;
85
- }
86
- declare var $node: $node;
87
-
88
- declare namespace $ {
89
- type $mol_log3_event<Fields> = {
90
- [key in string]: unknown;
91
- } & {
92
- time?: string;
93
- place: unknown;
94
- message: string;
95
- } & Fields;
96
- type $mol_log3_logger<Fields, Res = void> = (this: $, event: $mol_log3_event<Fields>) => Res;
97
- let $mol_log3_come: $mol_log3_logger<{}>;
98
- let $mol_log3_done: $mol_log3_logger<{}>;
99
- let $mol_log3_fail: $mol_log3_logger<{}>;
100
- let $mol_log3_warn: $mol_log3_logger<{
101
- hint: string;
102
- }>;
103
- let $mol_log3_rise: $mol_log3_logger<{}>;
104
- let $mol_log3_area: $mol_log3_logger<{}, () => void>;
105
- function $mol_log3_area_lazy(this: $, event: $mol_log3_event<{}>): () => void;
106
- let $mol_log3_stack: (() => void)[];
107
- }
108
-
109
- declare namespace $ {
110
- const $mol_tree_convert: unique symbol;
111
- type $mol_tree_path = Array<string | number | null>;
112
- type $mol_tree_hack = (input: $mol_tree, context: $mol_tree_context) => readonly $mol_tree[];
113
- type $mol_tree_context = Record<string, $mol_tree_hack>;
114
- type $mol_tree_library = Record<string, $mol_tree_context>;
115
- class $mol_tree extends $mol_object2 {
116
- readonly type: string;
117
- readonly data: string;
118
- readonly sub: readonly $mol_tree[];
119
- readonly baseUri: string;
120
- readonly row: number;
121
- readonly col: number;
122
- readonly length: number;
123
- constructor(config?: Partial<$mol_tree>);
124
- static values(str: string, baseUri?: string): $mol_tree[];
125
- clone(config?: Partial<$mol_tree>): $mol_tree;
126
- make(config: Partial<$mol_tree>): $mol_tree;
127
- make_data(value: string, sub?: readonly $mol_tree[]): $mol_tree;
128
- make_struct(type: string, sub?: readonly $mol_tree[]): $mol_tree;
129
- static fromString(str: string, baseUri?: string): $mol_tree;
130
- static fromJSON(json: any, baseUri?: string): $mol_tree;
131
- get uri(): string;
132
- toString(prefix?: string): string;
133
- toJSON(): any;
134
- get value(): string;
135
- insert(value: $mol_tree, ...path: $mol_tree_path): $mol_tree;
136
- select(...path: $mol_tree_path): $mol_tree;
137
- filter(path: string[], value?: string): $mol_tree;
138
- transform(visit: (stack: $mol_tree[], sub: () => $mol_tree[]) => $mol_tree | null, stack?: $mol_tree[]): $mol_tree | null;
139
- hack(context: $mol_tree_context): $mol_tree;
140
- error(message: string): Error;
141
- }
142
- }
143
-
144
- declare namespace $ {
145
- class $mol_term_color {
146
- static reset: (str: string) => string;
147
- static bold: (str: string) => string;
148
- static italic: (str: string) => string;
149
- static underline: (str: string) => string;
150
- static inverse: (str: string) => string;
151
- static hidden: (str: string) => string;
152
- static strike: (str: string) => string;
153
- static gray: (str: string) => string;
154
- static red: (str: string) => string;
155
- static green: (str: string) => string;
156
- static yellow: (str: string) => string;
157
- static blue: (str: string) => string;
158
- static magenta: (str: string) => string;
159
- static cyan: (str: string) => string;
160
- static Gray: (str: string) => string;
161
- static Red: (str: string) => string;
162
- static Green: (str: string) => string;
163
- static Yellow: (str: string) => string;
164
- static Blue: (str: string) => string;
165
- static Magenta: (str: string) => string;
166
- static Cyan: (str: string) => string;
167
- static ansi(open: number, close: number): (str: string) => string;
168
- }
169
- }
170
-
171
- declare namespace $ {
172
- function $mol_log3_node_make(level: keyof Console, output: 'stdout' | 'stderr', type: string, color: (str: string) => string): (this: $, event: $mol_log3_event<{}>) => () => void;
173
- }
174
-
175
- declare namespace $ {
176
- function $mol_env(): Record<string, string | undefined>;
177
- }
178
-
179
- declare namespace $ {
180
- }
181
-
182
- /// <reference types="node" />
183
- /// <reference types="node" />
184
- declare namespace $ {
185
- function $mol_exec(this: $, dir: string, command: string, ...args: string[]): import("child_process").SpawnSyncReturns<Buffer>;
186
- }
187
-
188
- declare namespace $ {
189
- }
190
-
191
- declare namespace $ {
192
- function $mol_style_attach(id: string, text: string): HTMLStyleElement | null;
193
- }
194
-
195
- declare namespace $ {
196
- class $mol_decor<Value> {
197
- readonly value: Value;
198
- constructor(value: Value);
199
- prefix(): string;
200
- valueOf(): Value;
201
- postfix(): string;
202
- toString(): string;
203
- }
204
- }
205
-
206
- declare namespace $ {
207
- type $mol_style_unit_length = '%' | 'px' | 'cm' | 'mm' | 'Q' | 'in' | 'pc' | 'pt' | 'cap' | 'ch' | 'em' | 'rem' | 'ex' | 'ic' | 'lh' | 'rlh' | 'vh' | 'vw' | 'vi' | 'vb' | 'vmin' | 'vmax';
208
- type $mol_style_unit_angle = 'deg' | 'rad' | 'grad' | 'turn';
209
- type $mol_style_unit_time = 's' | 'ms';
210
- type $mol_style_unit_any = $mol_style_unit_length | $mol_style_unit_angle | $mol_style_unit_time;
211
- class $mol_style_unit<Literal extends $mol_style_unit_any> extends $mol_decor<number> {
212
- readonly literal: Literal;
213
- constructor(value: number, literal: Literal);
214
- postfix(): Literal;
215
- static per(value: number): $mol_style_unit<"%">;
216
- static px(value: number): $mol_style_unit<"px">;
217
- static mm(value: number): $mol_style_unit<"mm">;
218
- static cm(value: number): $mol_style_unit<"cm">;
219
- static Q(value: number): $mol_style_unit<"Q">;
220
- static in(value: number): $mol_style_unit<"in">;
221
- static pc(value: number): $mol_style_unit<"pc">;
222
- static pt(value: number): $mol_style_unit<"pt">;
223
- static cap(value: number): $mol_style_unit<"cap">;
224
- static ch(value: number): $mol_style_unit<"ch">;
225
- static em(value: number): $mol_style_unit<"em">;
226
- static rem(value: number): $mol_style_unit<"rem">;
227
- static ex(value: number): $mol_style_unit<"ex">;
228
- static ic(value: number): $mol_style_unit<"ic">;
229
- static lh(value: number): $mol_style_unit<"lh">;
230
- static rlh(value: number): $mol_style_unit<"rlh">;
231
- static vh(value: number): $mol_style_unit<"vh">;
232
- static vw(value: number): $mol_style_unit<"vw">;
233
- static vi(value: number): $mol_style_unit<"vi">;
234
- static vb(value: number): $mol_style_unit<"vb">;
235
- static vmin(value: number): $mol_style_unit<"vmin">;
236
- static vmax(value: number): $mol_style_unit<"vmax">;
237
- static deg(value: number): $mol_style_unit<"deg">;
238
- static rad(value: number): $mol_style_unit<"rad">;
239
- static grad(value: number): $mol_style_unit<"grad">;
240
- static turn(value: number): $mol_style_unit<"turn">;
241
- static s(value: number): $mol_style_unit<"s">;
242
- static ms(value: number): $mol_style_unit<"ms">;
243
- }
244
- }
245
-
246
- declare namespace $ {
247
- type $mol_style_func_name = 'calc' | 'hsla' | 'rgba' | 'var' | 'clamp' | 'url' | 'scale';
248
- class $mol_style_func<Name extends $mol_style_func_name, Value = unknown> extends $mol_decor<Value> {
249
- readonly name: Name;
250
- constructor(name: Name, value: Value);
251
- prefix(): string;
252
- postfix(): string;
253
- static calc<Value>(value: Value): $mol_style_func<"calc", Value>;
254
- static vary<Name extends string>(name: Name): $mol_style_func<"var", Name>;
255
- static url<Href extends string>(href: Href): $mol_style_func<"url", string>;
256
- static hsla(hue: number, saturation: number, lightness: number, alpha: number): $mol_style_func<"hsla", (number | $mol_style_unit<"%">)[]>;
257
- static clamp(min: $mol_style_unit<any>, mid: $mol_style_unit<any>, max: $mol_style_unit<any>): $mol_style_func<"clamp", $mol_style_unit<any>[]>;
258
- static rgba(red: number, green: number, blue: number, alpha: number): $mol_style_func<"rgba", number[]>;
259
- static scale(zoom: number): $mol_style_func<"scale", number[]>;
260
- }
261
- }
262
-
263
- declare namespace $ {
264
- }
265
-
266
- declare namespace $ {
267
- const $mol_theme: {
268
- back: $mol_style_func<"var", "--mol_theme_back">;
269
- hover: $mol_style_func<"var", "--mol_theme_hover">;
270
- card: $mol_style_func<"var", "--mol_theme_card">;
271
- current: $mol_style_func<"var", "--mol_theme_current">;
272
- special: $mol_style_func<"var", "--mol_theme_special">;
273
- text: $mol_style_func<"var", "--mol_theme_text">;
274
- control: $mol_style_func<"var", "--mol_theme_control">;
275
- shade: $mol_style_func<"var", "--mol_theme_shade">;
276
- line: $mol_style_func<"var", "--mol_theme_line">;
277
- focus: $mol_style_func<"var", "--mol_theme_focus">;
278
- field: $mol_style_func<"var", "--mol_theme_field">;
279
- image: $mol_style_func<"var", "--mol_theme_image">;
280
- };
281
- }
282
-
283
- declare namespace $ {
284
- }
285
-
286
- declare namespace $ {
287
- let $mol_gap: {
288
- readonly block: $mol_style_func<"var", "--mol_gap_block">;
289
- readonly text: $mol_style_func<"var", "--mol_gap_text">;
290
- readonly round: $mol_style_func<"var", "--mol_gap_round">;
291
- readonly space: $mol_style_func<"var", "--mol_gap_space">;
292
- readonly blur: $mol_style_func<"var", "--mol_gap_blur">;
293
- };
294
- }
295
-
296
69
  declare namespace $ {
297
70
  namespace $$ { }
298
71
  const $mol_object_field: unique symbol;
@@ -501,47 +274,169 @@ declare namespace $ {
501
274
  }
502
275
 
503
276
  declare namespace $ {
504
- function $mol_fail_log(error: unknown): boolean;
277
+ function $mol_fail_log(error: unknown): boolean;
278
+ }
279
+
280
+ declare namespace $ {
281
+ class $mol_wire_atom<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
282
+ static solo<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result): $mol_wire_atom<Host, Args, Result>;
283
+ static plex<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result, key: Args[0]): $mol_wire_atom<Host, Args, Result>;
284
+ static watching: Set<$mol_wire_atom<any, any, any>>;
285
+ static watcher: $mol_after_frame | null;
286
+ static watch(): void;
287
+ watch(): void;
288
+ resync(args: Args): Error | Result | Promise<Error | Result>;
289
+ once(): Awaited<Result>;
290
+ channel(): ((next?: $mol_type_foot<Args>) => Awaited<Result>) & {
291
+ atom: $mol_wire_atom<Host, Args, Result>;
292
+ };
293
+ destructor(): void;
294
+ put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
295
+ }
296
+ }
297
+
298
+ declare namespace $ {
299
+ export function $mol_wire_solo<Args extends any[]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): TypedPropertyDescriptor<(...args: First_optional<Args>) => any>;
300
+ type First_optional<Args extends any[]> = Args extends [] ? [] : [Args[0] | undefined, ...$mol_type_tail<Args>];
301
+ export {};
302
+ }
303
+
304
+ declare namespace $ {
305
+ function $mol_wire_plex<Args extends [any, ...any[]]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
306
+ value: (this: typeof host, ...args: Args) => any;
307
+ enumerable?: boolean | undefined;
308
+ configurable?: boolean | undefined;
309
+ writable?: boolean | undefined;
310
+ get?: (() => (...args: Args) => any) | undefined;
311
+ set?: ((value: (...args: Args) => any) => void) | undefined;
312
+ };
313
+ }
314
+
315
+ declare namespace $ {
316
+ let $mol_mem: typeof $mol_wire_solo;
317
+ let $mol_mem_key: typeof $mol_wire_plex;
318
+ }
319
+
320
+ declare namespace $ {
321
+ var $mol_dom_context: typeof globalThis;
322
+ }
323
+
324
+ interface $node {
325
+ [key: string]: any;
326
+ }
327
+ declare var $node: $node;
328
+
329
+ declare namespace $ {
330
+ type $mol_log3_event<Fields> = {
331
+ [key in string]: unknown;
332
+ } & {
333
+ time?: string;
334
+ place: unknown;
335
+ message: string;
336
+ } & Fields;
337
+ type $mol_log3_logger<Fields, Res = void> = (this: $, event: $mol_log3_event<Fields>) => Res;
338
+ let $mol_log3_come: $mol_log3_logger<{}>;
339
+ let $mol_log3_done: $mol_log3_logger<{}>;
340
+ let $mol_log3_fail: $mol_log3_logger<{}>;
341
+ let $mol_log3_warn: $mol_log3_logger<{
342
+ hint: string;
343
+ }>;
344
+ let $mol_log3_rise: $mol_log3_logger<{}>;
345
+ let $mol_log3_area: $mol_log3_logger<{}, () => void>;
346
+ function $mol_log3_area_lazy(this: $, event: $mol_log3_event<{}>): () => void;
347
+ let $mol_log3_stack: (() => void)[];
348
+ }
349
+
350
+ declare namespace $ {
351
+ const $mol_tree_convert: unique symbol;
352
+ type $mol_tree_path = Array<string | number | null>;
353
+ type $mol_tree_hack = (input: $mol_tree, context: $mol_tree_context) => readonly $mol_tree[];
354
+ type $mol_tree_context = Record<string, $mol_tree_hack>;
355
+ type $mol_tree_library = Record<string, $mol_tree_context>;
356
+ class $mol_tree extends $mol_object2 {
357
+ readonly type: string;
358
+ readonly data: string;
359
+ readonly sub: readonly $mol_tree[];
360
+ readonly baseUri: string;
361
+ readonly row: number;
362
+ readonly col: number;
363
+ readonly length: number;
364
+ constructor(config?: Partial<$mol_tree>);
365
+ static values(str: string, baseUri?: string): $mol_tree[];
366
+ clone(config?: Partial<$mol_tree>): $mol_tree;
367
+ make(config: Partial<$mol_tree>): $mol_tree;
368
+ make_data(value: string, sub?: readonly $mol_tree[]): $mol_tree;
369
+ make_struct(type: string, sub?: readonly $mol_tree[]): $mol_tree;
370
+ static fromString(str: string, baseUri?: string): $mol_tree;
371
+ static fromJSON(json: any, baseUri?: string): $mol_tree;
372
+ get uri(): string;
373
+ toString(prefix?: string): string;
374
+ toJSON(): any;
375
+ get value(): string;
376
+ insert(value: $mol_tree, ...path: $mol_tree_path): $mol_tree;
377
+ select(...path: $mol_tree_path): $mol_tree;
378
+ filter(path: string[], value?: string): $mol_tree;
379
+ transform(visit: (stack: $mol_tree[], sub: () => $mol_tree[]) => $mol_tree | null, stack?: $mol_tree[]): $mol_tree | null;
380
+ hack(context: $mol_tree_context): $mol_tree;
381
+ error(message: string): Error;
382
+ }
383
+ }
384
+
385
+ declare namespace $ {
386
+ class $mol_term_color {
387
+ static reset: (str: string) => string;
388
+ static bold: (str: string) => string;
389
+ static italic: (str: string) => string;
390
+ static underline: (str: string) => string;
391
+ static inverse: (str: string) => string;
392
+ static hidden: (str: string) => string;
393
+ static strike: (str: string) => string;
394
+ static gray: (str: string) => string;
395
+ static red: (str: string) => string;
396
+ static green: (str: string) => string;
397
+ static yellow: (str: string) => string;
398
+ static blue: (str: string) => string;
399
+ static magenta: (str: string) => string;
400
+ static cyan: (str: string) => string;
401
+ static Gray: (str: string) => string;
402
+ static Red: (str: string) => string;
403
+ static Green: (str: string) => string;
404
+ static Yellow: (str: string) => string;
405
+ static Blue: (str: string) => string;
406
+ static Magenta: (str: string) => string;
407
+ static Cyan: (str: string) => string;
408
+ static ansi(open: number, close: number): (str: string) => string;
409
+ }
410
+ }
411
+
412
+ declare namespace $ {
413
+ function $mol_log3_node_make(level: keyof Console, output: 'stdout' | 'stderr', type: string, color: (str: string) => string): (this: $, event: $mol_log3_event<{}>) => () => void;
414
+ }
415
+
416
+ declare namespace $ {
417
+ function $mol_env(): Record<string, string | undefined>;
505
418
  }
506
419
 
507
420
  declare namespace $ {
508
- class $mol_wire_atom<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
509
- static solo<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result): $mol_wire_atom<Host, Args, Result>;
510
- static plex<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result, key: Args[0]): $mol_wire_atom<Host, Args, Result>;
511
- static watching: Set<$mol_wire_atom<any, any, any>>;
512
- static watcher: $mol_after_frame | null;
513
- static watch(): void;
514
- watch(): void;
515
- resync(args: Args): Error | Result | Promise<Error | Result>;
516
- once(): Awaited<Result>;
517
- channel(): ((next?: $mol_type_foot<Args>) => Awaited<Result>) & {
518
- atom: $mol_wire_atom<Host, Args, Result>;
519
- };
520
- destructor(): void;
521
- put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
522
- }
523
421
  }
524
422
 
423
+ /// <reference types="node" />
424
+ /// <reference types="node" />
525
425
  declare namespace $ {
526
- export function $mol_wire_solo<Args extends any[]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): TypedPropertyDescriptor<(...args: First_optional<Args>) => any>;
527
- type First_optional<Args extends any[]> = Args extends [] ? [] : [Args[0] | undefined, ...$mol_type_tail<Args>];
528
- export {};
426
+ function $mol_exec(this: $, dir: string, command: string, ...args: string[]): import("child_process").SpawnSyncReturns<Buffer>;
529
427
  }
530
428
 
531
429
  declare namespace $ {
532
- function $mol_wire_plex<Args extends [any, ...any[]]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
533
- value: (this: typeof host, ...args: Args) => any;
534
- enumerable?: boolean | undefined;
535
- configurable?: boolean | undefined;
536
- writable?: boolean | undefined;
537
- get?: (() => (...args: Args) => any) | undefined;
538
- set?: ((value: (...args: Args) => any) => void) | undefined;
539
- };
540
430
  }
541
431
 
542
432
  declare namespace $ {
543
- let $mol_mem: typeof $mol_wire_solo;
544
- let $mol_mem_key: typeof $mol_wire_plex;
433
+ class $mol_after_tick extends $mol_object2 {
434
+ task: () => void;
435
+ promise: any;
436
+ cancelled: boolean;
437
+ constructor(task: () => void);
438
+ destructor(): void;
439
+ }
545
440
  }
546
441
 
547
442
  declare namespace $ {
@@ -632,6 +527,108 @@ declare namespace $ {
632
527
  type $mol_type_pick<Input, Upper> = Pick<Input, $mol_type_keys_extract<Input, Upper>>;
633
528
  }
634
529
 
530
+ declare namespace $ {
531
+ function $mol_style_attach(id: string, text: string): HTMLStyleElement | null;
532
+ }
533
+
534
+ declare namespace $ {
535
+ class $mol_decor<Value> {
536
+ readonly value: Value;
537
+ constructor(value: Value);
538
+ prefix(): string;
539
+ valueOf(): Value;
540
+ postfix(): string;
541
+ toString(): string;
542
+ }
543
+ }
544
+
545
+ declare namespace $ {
546
+ type $mol_style_unit_length = '%' | 'px' | 'cm' | 'mm' | 'Q' | 'in' | 'pc' | 'pt' | 'cap' | 'ch' | 'em' | 'rem' | 'ex' | 'ic' | 'lh' | 'rlh' | 'vh' | 'vw' | 'vi' | 'vb' | 'vmin' | 'vmax';
547
+ type $mol_style_unit_angle = 'deg' | 'rad' | 'grad' | 'turn';
548
+ type $mol_style_unit_time = 's' | 'ms';
549
+ type $mol_style_unit_any = $mol_style_unit_length | $mol_style_unit_angle | $mol_style_unit_time;
550
+ class $mol_style_unit<Literal extends $mol_style_unit_any> extends $mol_decor<number> {
551
+ readonly literal: Literal;
552
+ constructor(value: number, literal: Literal);
553
+ postfix(): Literal;
554
+ static per(value: number): $mol_style_unit<"%">;
555
+ static px(value: number): $mol_style_unit<"px">;
556
+ static mm(value: number): $mol_style_unit<"mm">;
557
+ static cm(value: number): $mol_style_unit<"cm">;
558
+ static Q(value: number): $mol_style_unit<"Q">;
559
+ static in(value: number): $mol_style_unit<"in">;
560
+ static pc(value: number): $mol_style_unit<"pc">;
561
+ static pt(value: number): $mol_style_unit<"pt">;
562
+ static cap(value: number): $mol_style_unit<"cap">;
563
+ static ch(value: number): $mol_style_unit<"ch">;
564
+ static em(value: number): $mol_style_unit<"em">;
565
+ static rem(value: number): $mol_style_unit<"rem">;
566
+ static ex(value: number): $mol_style_unit<"ex">;
567
+ static ic(value: number): $mol_style_unit<"ic">;
568
+ static lh(value: number): $mol_style_unit<"lh">;
569
+ static rlh(value: number): $mol_style_unit<"rlh">;
570
+ static vh(value: number): $mol_style_unit<"vh">;
571
+ static vw(value: number): $mol_style_unit<"vw">;
572
+ static vi(value: number): $mol_style_unit<"vi">;
573
+ static vb(value: number): $mol_style_unit<"vb">;
574
+ static vmin(value: number): $mol_style_unit<"vmin">;
575
+ static vmax(value: number): $mol_style_unit<"vmax">;
576
+ static deg(value: number): $mol_style_unit<"deg">;
577
+ static rad(value: number): $mol_style_unit<"rad">;
578
+ static grad(value: number): $mol_style_unit<"grad">;
579
+ static turn(value: number): $mol_style_unit<"turn">;
580
+ static s(value: number): $mol_style_unit<"s">;
581
+ static ms(value: number): $mol_style_unit<"ms">;
582
+ }
583
+ }
584
+
585
+ declare namespace $ {
586
+ type $mol_style_func_name = 'calc' | 'hsla' | 'rgba' | 'var' | 'clamp' | 'url' | 'scale';
587
+ class $mol_style_func<Name extends $mol_style_func_name, Value = unknown> extends $mol_decor<Value> {
588
+ readonly name: Name;
589
+ constructor(name: Name, value: Value);
590
+ prefix(): string;
591
+ postfix(): string;
592
+ static calc<Value>(value: Value): $mol_style_func<"calc", Value>;
593
+ static vary<Name extends string>(name: Name): $mol_style_func<"var", Name>;
594
+ static url<Href extends string>(href: Href): $mol_style_func<"url", string>;
595
+ static hsla(hue: number, saturation: number, lightness: number, alpha: number): $mol_style_func<"hsla", (number | $mol_style_unit<"%">)[]>;
596
+ static clamp(min: $mol_style_unit<any>, mid: $mol_style_unit<any>, max: $mol_style_unit<any>): $mol_style_func<"clamp", $mol_style_unit<any>[]>;
597
+ static rgba(red: number, green: number, blue: number, alpha: number): $mol_style_func<"rgba", number[]>;
598
+ static scale(zoom: number): $mol_style_func<"scale", number[]>;
599
+ }
600
+ }
601
+
602
+ declare namespace $ {
603
+ const $mol_theme: {
604
+ back: $mol_style_func<"var", "--mol_theme_back">;
605
+ hover: $mol_style_func<"var", "--mol_theme_hover">;
606
+ card: $mol_style_func<"var", "--mol_theme_card">;
607
+ current: $mol_style_func<"var", "--mol_theme_current">;
608
+ special: $mol_style_func<"var", "--mol_theme_special">;
609
+ text: $mol_style_func<"var", "--mol_theme_text">;
610
+ control: $mol_style_func<"var", "--mol_theme_control">;
611
+ shade: $mol_style_func<"var", "--mol_theme_shade">;
612
+ line: $mol_style_func<"var", "--mol_theme_line">;
613
+ focus: $mol_style_func<"var", "--mol_theme_focus">;
614
+ field: $mol_style_func<"var", "--mol_theme_field">;
615
+ image: $mol_style_func<"var", "--mol_theme_image">;
616
+ };
617
+ }
618
+
619
+ declare namespace $ {
620
+ }
621
+
622
+ declare namespace $ {
623
+ let $mol_gap: {
624
+ readonly block: $mol_style_func<"var", "--mol_gap_block">;
625
+ readonly text: $mol_style_func<"var", "--mol_gap_text">;
626
+ readonly round: $mol_style_func<"var", "--mol_gap_round">;
627
+ readonly space: $mol_style_func<"var", "--mol_gap_space">;
628
+ readonly blur: $mol_style_func<"var", "--mol_gap_blur">;
629
+ };
630
+ }
631
+
635
632
  declare namespace $ {
636
633
  }
637
634
 
@@ -700,6 +697,22 @@ declare namespace $ {
700
697
  type $mol_view_all = $mol_type_pick<$, typeof $mol_view>;
701
698
  }
702
699
 
700
+ declare namespace $ {
701
+ }
702
+
703
+ declare namespace $ {
704
+ class $mol_plugin extends $mol_view {
705
+ dom_node(next?: Element): Element;
706
+ attr_static(): {
707
+ [key: string]: string | number | boolean;
708
+ };
709
+ event(): {
710
+ [key: string]: (event: Event) => void;
711
+ };
712
+ render(): void;
713
+ }
714
+ }
715
+
703
716
  declare namespace $ {
704
717
  class $mol_svg extends $mol_view {
705
718
  dom_name(): string;
@@ -717,19 +730,6 @@ declare namespace $ {
717
730
  }
718
731
  }
719
732
 
720
- declare namespace $ {
721
- class $mol_plugin extends $mol_view {
722
- dom_node(next?: Element): Element;
723
- attr_static(): {
724
- [key: string]: string | number | boolean;
725
- };
726
- event(): {
727
- [key: string]: (event: Event) => void;
728
- };
729
- render(): void;
730
- }
731
- }
732
-
733
733
  declare namespace $.$$ {
734
734
  class $mol_svg extends $.$mol_svg {
735
735
  computed_style(): CSSStyleDeclaration;
@@ -890,9 +890,6 @@ declare namespace $ {
890
890
  }
891
891
  }
892
892
 
893
- declare namespace $ {
894
- }
895
-
896
893
  declare namespace $.$$ {
897
894
  class $mol_plot_graph extends $.$mol_plot_graph {
898
895
  viewport(): $mol_vector_2d<$mol_vector_range<number>>;
@@ -907,6 +904,9 @@ declare namespace $.$$ {
907
904
  }
908
905
  }
909
906
 
907
+ declare namespace $ {
908
+ }
909
+
910
910
  declare namespace $ {
911
911
  class $mol_touch extends $mol_plugin {
912
912
  start_zoom(val?: any): number;
@@ -1036,9 +1036,6 @@ declare namespace $ {
1036
1036
  let $mol_mem_cached: typeof $mol_wire_probe;
1037
1037
  }
1038
1038
 
1039
- declare namespace $ {
1040
- }
1041
-
1042
1039
  declare namespace $.$$ {
1043
1040
  class $mol_plot_pane extends $.$mol_plot_pane {
1044
1041
  dimensions(): $mol_vector_2d<$mol_vector_range<number>>;
@@ -1065,6 +1062,9 @@ declare namespace $.$$ {
1065
1062
  }
1066
1063
  }
1067
1064
 
1065
+ declare namespace $ {
1066
+ }
1067
+
1068
1068
  declare namespace $ {
1069
1069
  class $mol_plot_line extends $mol_plot_graph {
1070
1070
  threshold(): number;
@@ -1081,9 +1081,6 @@ declare namespace $ {
1081
1081
  }
1082
1082
  }
1083
1083
 
1084
- declare namespace $ {
1085
- }
1086
-
1087
1084
  declare namespace $.$$ {
1088
1085
  class $mol_plot_line extends $.$mol_plot_line {
1089
1086
  sub(): readonly any[];
@@ -1092,6 +1089,9 @@ declare namespace $.$$ {
1092
1089
  }
1093
1090
  }
1094
1091
 
1092
+ declare namespace $ {
1093
+ }
1094
+
1095
1095
  declare namespace $ {
1096
1096
  class $mol_plot_group extends $mol_plot_graph {
1097
1097
  sub(): readonly $mol_plot_graph[];
@@ -1144,9 +1144,6 @@ declare namespace $ {
1144
1144
  function $mol_coord_low(pack: number): number;
1145
1145
  }
1146
1146
 
1147
- declare namespace $ {
1148
- }
1149
-
1150
1147
  declare namespace $.$$ {
1151
1148
  class $mol_plot_dot extends $.$mol_plot_dot {
1152
1149
  filled(): Set<number>;
@@ -1155,6 +1152,9 @@ declare namespace $.$$ {
1155
1152
  }
1156
1153
  }
1157
1154
 
1155
+ declare namespace $ {
1156
+ }
1157
+
1158
1158
  declare namespace $ {
1159
1159
  class $mol_plot_map_heat extends $mol_plot_group {
1160
1160
  series_z(): readonly number[];
@@ -1178,9 +1178,6 @@ declare namespace $ {
1178
1178
  }
1179
1179
  }
1180
1180
 
1181
- declare namespace $ {
1182
- }
1183
-
1184
1181
  declare namespace $.$$ {
1185
1182
  class $mol_plot_map_heat extends $.$mol_plot_map_heat {
1186
1183
  levels(): number[];
@@ -1193,6 +1190,9 @@ declare namespace $.$$ {
1193
1190
  }
1194
1191
  }
1195
1192
 
1193
+ declare namespace $ {
1194
+ }
1195
+
1196
1196
  declare namespace $ {
1197
1197
  class $mol_plot_bar extends $mol_plot_graph {
1198
1198
  style(): {
@@ -1207,9 +1207,6 @@ declare namespace $ {
1207
1207
  }
1208
1208
  }
1209
1209
 
1210
- declare namespace $ {
1211
- }
1212
-
1213
1210
  declare namespace $.$$ {
1214
1211
  class $mol_plot_bar extends $.$mol_plot_bar {
1215
1212
  indexes(): number[];
@@ -1221,12 +1218,12 @@ declare namespace $.$$ {
1221
1218
  }
1222
1219
 
1223
1220
  declare namespace $ {
1224
- class $mol_plot_fill extends $mol_plot_line {
1225
- threshold(): number;
1226
- }
1227
1221
  }
1228
1222
 
1229
1223
  declare namespace $ {
1224
+ class $mol_plot_fill extends $mol_plot_line {
1225
+ threshold(): number;
1226
+ }
1230
1227
  }
1231
1228
 
1232
1229
  declare namespace $.$$ {
@@ -1237,6 +1234,9 @@ declare namespace $.$$ {
1237
1234
  }
1238
1235
  }
1239
1236
 
1237
+ declare namespace $ {
1238
+ }
1239
+
1240
1240
  declare namespace $ {
1241
1241
  class $mol_svg_text extends $mol_svg {
1242
1242
  dom_name(): string;
@@ -1254,9 +1254,6 @@ declare namespace $ {
1254
1254
  }
1255
1255
  }
1256
1256
 
1257
- declare namespace $ {
1258
- }
1259
-
1260
1257
  declare namespace $.$$ {
1261
1258
  class $mol_svg_text extends $.$mol_svg_text {
1262
1259
  pos_x(): any;
@@ -1264,6 +1261,9 @@ declare namespace $.$$ {
1264
1261
  }
1265
1262
  }
1266
1263
 
1264
+ declare namespace $ {
1265
+ }
1266
+
1267
1267
  declare namespace $ {
1268
1268
  class $mol_svg_rect extends $mol_svg {
1269
1269
  dom_name(): string;
@@ -1314,9 +1314,6 @@ declare namespace $ {
1314
1314
  function $mol_font_measure(font: string, text: string): number;
1315
1315
  }
1316
1316
 
1317
- declare namespace $ {
1318
- }
1319
-
1320
1317
  declare namespace $.$$ {
1321
1318
  class $mol_svg_text_box extends $.$mol_svg_text_box {
1322
1319
  box_width(): string;
@@ -1326,6 +1323,9 @@ declare namespace $.$$ {
1326
1323
  }
1327
1324
  }
1328
1325
 
1326
+ declare namespace $ {
1327
+ }
1328
+
1329
1329
  declare namespace $ {
1330
1330
  class $mol_plot_ruler extends $mol_plot_graph {
1331
1331
  step(): number;
@@ -1363,9 +1363,6 @@ declare namespace $ {
1363
1363
  function $mol_math_round_expand(val: number, gap?: number): number;
1364
1364
  }
1365
1365
 
1366
- declare namespace $ {
1367
- }
1368
-
1369
1366
  declare namespace $.$$ {
1370
1367
  class $mol_plot_ruler extends $.$mol_plot_ruler {
1371
1368
  labels_formatted(): $mol_svg_text[];
@@ -1380,6 +1377,9 @@ declare namespace $.$$ {
1380
1377
  }
1381
1378
  }
1382
1379
 
1380
+ declare namespace $ {
1381
+ }
1382
+
1383
1383
  declare namespace $ {
1384
1384
  class $mol_plot_ruler_vert extends $mol_plot_ruler {
1385
1385
  title_align(): string;
@@ -1391,9 +1391,6 @@ declare namespace $ {
1391
1391
  }
1392
1392
  }
1393
1393
 
1394
- declare namespace $ {
1395
- }
1396
-
1397
1394
  declare namespace $.$$ {
1398
1395
  class $mol_plot_ruler_vert extends $.$mol_plot_ruler_vert {
1399
1396
  dimensions_axis(): $mol_vector_range<number>;
@@ -1407,6 +1404,9 @@ declare namespace $.$$ {
1407
1404
  }
1408
1405
  }
1409
1406
 
1407
+ declare namespace $ {
1408
+ }
1409
+
1410
1410
  declare namespace $ {
1411
1411
  class $mol_plot_ruler_hor extends $mol_plot_ruler {
1412
1412
  title_align(): string;
@@ -1418,9 +1418,6 @@ declare namespace $ {
1418
1418
  }
1419
1419
  }
1420
1420
 
1421
- declare namespace $ {
1422
- }
1423
-
1424
1421
  declare namespace $.$$ {
1425
1422
  class $mol_plot_ruler_hor extends $.$mol_plot_ruler_hor {
1426
1423
  dimensions_axis(): $mol_vector_range<number>;
@@ -1436,6 +1433,9 @@ declare namespace $.$$ {
1436
1433
  }
1437
1434
  }
1438
1435
 
1436
+ declare namespace $ {
1437
+ }
1438
+
1439
1439
  declare namespace $ {
1440
1440
  class $mol_plot_mark_cross extends $mol_plot_graph {
1441
1441
  labels(): readonly string[];
@@ -1459,9 +1459,6 @@ declare namespace $ {
1459
1459
  }
1460
1460
  }
1461
1461
 
1462
- declare namespace $ {
1463
- }
1464
-
1465
1462
  declare namespace $.$$ {
1466
1463
  class $mol_plot_mark_cross extends $.$mol_plot_mark_cross {
1467
1464
  nearest(): {
@@ -1479,12 +1476,12 @@ declare namespace $.$$ {
1479
1476
  }
1480
1477
 
1481
1478
  declare namespace $ {
1482
- class $mol_plot_mark_hor extends $mol_plot_ruler_hor {
1483
- labels(): readonly string[];
1484
- }
1485
1479
  }
1486
1480
 
1487
1481
  declare namespace $ {
1482
+ class $mol_plot_mark_hor extends $mol_plot_ruler_hor {
1483
+ labels(): readonly string[];
1484
+ }
1488
1485
  }
1489
1486
 
1490
1487
  declare namespace $.$$ {
@@ -1500,4 +1497,7 @@ declare namespace $.$$ {
1500
1497
  }
1501
1498
  }
1502
1499
 
1500
+ declare namespace $ {
1501
+ }
1502
+
1503
1503
  export = $;