mol_plot_all 1.2.243 → 1.2.246

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
@@ -142,7 +142,35 @@ declare namespace $ {
142
142
  }
143
143
 
144
144
  declare namespace $ {
145
- function $mol_log3_node_make(level: keyof Console, output: 'stdout' | 'stderr', type: string, color: keyof typeof $node.colorette): (this: $, event: $mol_log3_event<{}>) => () => void;
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 white: (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 White: (str: string) => string;
168
+ static ansi(open: number, close: number): (str: string) => string;
169
+ }
170
+ }
171
+
172
+ declare namespace $ {
173
+ function $mol_log3_node_make(level: keyof Console, output: 'stdout' | 'stderr', type: string, color: (str: string) => string): (this: $, event: $mol_log3_event<{}>) => () => void;
146
174
  }
147
175
 
148
176
  declare namespace $ {
@@ -292,7 +320,7 @@ declare namespace $ {
292
320
  sub_off(sub_pos: number): void;
293
321
  reap(): void;
294
322
  promote(): void;
295
- refresh(): void;
323
+ fresh(): void;
296
324
  complete(): void;
297
325
  emit(quant?: $mol_wire_cursor): void;
298
326
  peer_move(from_pos: number, to_pos: number): void;
@@ -402,6 +430,7 @@ declare namespace $ {
402
430
  toJSON(): any;
403
431
  get $(): any;
404
432
  emit(quant?: $mol_wire_cursor): void;
433
+ fresh(): void;
405
434
  refresh(): void;
406
435
  abstract put(next: Result | Error | Promise<Result | Error>): Result | Error | Promise<Result | Error>;
407
436
  sync(): Awaited<Result>;
@@ -445,6 +474,9 @@ declare namespace $ {
445
474
  declare namespace $ {
446
475
  class $mol_wire_atom<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
447
476
  static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result, keys: number): (host: Host, args: Args) => $mol_wire_atom<Host, [...Args], Result>;
477
+ static watching: Set<$mol_wire_atom<any, any, any>>;
478
+ static watch(): void;
479
+ watch(): void;
448
480
  resync(args: Args): Error | Result | Promise<Error | Result>;
449
481
  once(): Awaited<Result>;
450
482
  destructor(): void;
@@ -534,6 +566,10 @@ declare namespace $ {
534
566
  function $mol_dom_qname(name: string): string;
535
567
  }
536
568
 
569
+ declare namespace $ {
570
+ function $mol_wire_watch(): void;
571
+ }
572
+
537
573
  declare namespace $ {
538
574
  function $mol_const<Value>(value: Value): {
539
575
  (): Value;
@@ -548,7 +584,7 @@ declare namespace $ {
548
584
  }
549
585
 
550
586
  declare namespace $ {
551
- function $mol_wire_async<Host extends object>(obj: Host): { [key in keyof Host]: Host[key] extends (...args: infer Args) => infer Res ? Res extends Promise<any> ? Host[key] : (...args: Args) => Promise<Res> : Host[key]; };
587
+ function $mol_wire_async<Host extends object>(obj: Host): (Host extends (...args: infer Args) => infer Res ? Res extends Promise<any> ? Host : (...args: Args) => Promise<Res> : {}) & { [key in keyof Host]: Host[key] extends (...args: infer Args_1) => infer Res_1 ? Res_1 extends Promise<any> ? Host[key] : (...args: Args_1) => Promise<Res_1> : Host[key]; };
552
588
  }
553
589
 
554
590
  declare namespace $ {
@@ -605,10 +641,13 @@ declare namespace $ {
605
641
  maximal_width(): number;
606
642
  minimal_height(): number;
607
643
  static watchers: Set<$mol_view>;
608
- view_rect(): DOMRectReadOnly | null;
609
- view_rect_cache(next?: DOMRectReadOnly | null): DOMRectReadOnly | null;
610
- view_rect_watcher(): {
611
- destructor: () => boolean;
644
+ view_rect(): {
645
+ width: number;
646
+ height: number;
647
+ left: number;
648
+ right: number;
649
+ top: number;
650
+ bottom: number;
612
651
  };
613
652
  dom_id(): any;
614
653
  dom_node(next?: Element): Element;
@@ -992,7 +1031,7 @@ declare namespace $.$$ {
992
1031
  dimensions(): $mol_vector_2d<$mol_vector_range<number>>;
993
1032
  size(): $mol_vector_2d<number>;
994
1033
  graph_hue(index: number): number;
995
- graphs_colored(): $.$mol_plot_graph[];
1034
+ graphs_colored(): readonly $.$mol_plot_graph[];
996
1035
  size_real(): $mol_vector_2d<number>;
997
1036
  view_box(): string;
998
1037
  scale_limit(): $mol_vector_2d<$mol_vector_range<number>>;
@@ -1006,7 +1045,7 @@ declare namespace $.$$ {
1006
1045
  shift(next?: $mol_vector_2d<number>): $mol_vector_2d<number>;
1007
1046
  reset(event?: Event): void;
1008
1047
  graphs_visible(): $.$mol_plot_graph[];
1009
- graphs_positioned(): $.$mol_plot_graph[];
1048
+ graphs_positioned(): readonly $.$mol_plot_graph[];
1010
1049
  dimensions_viewport(): $mol_vector<$mol_vector_range<number>, 2>;
1011
1050
  viewport(): $mol_vector_2d<$mol_vector_range<number>>;
1012
1051
  graphs_sorted(): $.$mol_svg[];
@@ -1100,7 +1139,6 @@ declare namespace $.$$ {
1100
1139
  filled(): Set<number>;
1101
1140
  indexes(): number[];
1102
1141
  curve(): string;
1103
- dimensions(): $mol_vector_2d<$mol_vector_range<number>>;
1104
1142
  }
1105
1143
  }
1106
1144