mol_plot_all 1.2.830 → 1.2.832

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mol_plot_all",
3
- "version": "1.2.830",
3
+ "version": "1.2.832",
4
4
  "exports": {
5
5
  "node": {
6
6
  "import": "./node.mjs",
@@ -33,6 +33,8 @@
33
33
  "$mol_fail",
34
34
  "$mol_type_writable",
35
35
  "$mol_type",
36
+ "$mol_func_name",
37
+ "$mol_func",
36
38
  "$mol_mem",
37
39
  "$mol_wire_solo",
38
40
  "$mol_wire",
@@ -49,8 +51,6 @@
49
51
  "$mol_after_timeout",
50
52
  "$mol_promise_like",
51
53
  "$mol_promise",
52
- "$mol_func_name",
53
- "$mol_func",
54
54
  "$mol_key",
55
55
  "$mol_guid",
56
56
  "$mol_wire_method",
package/web.d.ts CHANGED
@@ -51,6 +51,11 @@ declare namespace $ {
51
51
  };
52
52
  }
53
53
 
54
+ declare namespace $ {
55
+ function $mol_func_name(this: $, func: Function): string;
56
+ function $mol_func_name_from<Target extends Function>(target: Target, source: Function): Target;
57
+ }
58
+
54
59
  declare namespace $ {
55
60
  class $mol_object2 {
56
61
  static $: typeof $$;
@@ -62,7 +67,9 @@ declare namespace $ {
62
67
  static [Symbol.toPrimitive](): string;
63
68
  static toString(): string;
64
69
  destructor(): void;
70
+ static destructor(): void;
65
71
  toString(): string;
72
+ static toJSON(): any;
66
73
  toJSON(): any;
67
74
  }
68
75
  }
@@ -221,11 +228,6 @@ declare namespace $ {
221
228
  }
222
229
  }
223
230
 
224
- declare namespace $ {
225
- function $mol_func_name(this: $, func: Function): string;
226
- function $mol_func_name_from<Target extends Function>(target: Target, source: Function): Target;
227
- }
228
-
229
231
  declare namespace $ {
230
232
  function $mol_guid(length?: number, exists?: (id: string) => boolean): string;
231
233
  }
@@ -467,6 +469,7 @@ declare namespace $ {
467
469
  type $mol_style_unit_angle = 'deg' | 'rad' | 'grad' | 'turn';
468
470
  type $mol_style_unit_time = 's' | 'ms';
469
471
  type $mol_style_unit_any = $mol_style_unit_length | $mol_style_unit_angle | $mol_style_unit_time;
472
+ type $mol_style_unit_str<Quanity extends $mol_style_unit_any> = `${number}${Quanity}`;
470
473
  class $mol_style_unit<Literal extends $mol_style_unit_any> extends $mol_decor<number> {
471
474
  readonly literal: Literal;
472
475
  constructor(value: number, literal: Literal);
@@ -514,22 +517,22 @@ declare namespace $ {
514
517
  static vary<Name extends string, Value extends string>(name: Name, defaultValue?: Value): $mol_style_func<"var", Name | (Name | Value)[]>;
515
518
  static url<Href extends string>(href: Href): $mol_style_func<"url", string>;
516
519
  static hsla(hue: number, saturation: number, lightness: number, alpha: number): $mol_style_func<"hsla", (number | `${number}%`)[]>;
517
- 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>[]>;
520
+ static clamp(min: $mol_style_unit_str<any>, mid: $mol_style_unit_str<any>, max: $mol_style_unit_str<any>): $mol_style_func<"clamp", `${number}${any}`[]>;
518
521
  static rgba(red: number, green: number, blue: number, alpha: number): $mol_style_func<"rgba", number[]>;
519
522
  static scale(zoom: number): $mol_style_func<"scale", number[]>;
520
- static linear(...breakpoints: Array<number | [number, number | $mol_style_unit<'%'>]>): $mol_style_func<"linear", string[]>;
523
+ static linear(...breakpoints: Array<number | [number, number | $mol_style_unit_str<'%'>]>): $mol_style_func<"linear", string[]>;
521
524
  static cubic_bezier(x1: number, y1: number, x2: number, y2: number): $mol_style_func<"cubic-bezier", number[]>;
522
525
  static steps(value: number, step_position: 'jump-start' | 'jump-end' | 'jump-none' | 'jump-both' | 'start' | 'end'): $mol_style_func<"steps", (number | "end" | "start" | "jump-start" | "jump-end" | "jump-none" | "jump-both")[]>;
523
- static blur(value?: $mol_style_unit<$mol_style_unit_length>): $mol_style_func<"blur", string | $mol_style_unit<$mol_style_unit_length>>;
524
- static brightness(value?: number | $mol_style_unit<'%'>): $mol_style_func<"brightness", string | number | $mol_style_unit<"%">>;
525
- static contrast(value?: number | $mol_style_unit<'%'>): $mol_style_func<"contrast", string | number | $mol_style_unit<"%">>;
526
- static drop_shadow(color: $mol_style_properties_color, x_offset: $mol_style_unit<$mol_style_unit_length>, y_offset: $mol_style_unit<$mol_style_unit_length>, blur_radius?: $mol_style_unit<$mol_style_unit_length>): $mol_style_func<"drop-shadow", ($mol_style_unit<$mol_style_unit_length> | $mol_style_properties_color)[]>;
527
- static grayscale(value?: number | $mol_style_unit<'%'>): $mol_style_func<"grayscale", string | number | $mol_style_unit<"%">>;
528
- static hue_rotate(value?: 0 | $mol_style_unit<$mol_style_unit_angle>): $mol_style_func<"hue-rotate", string | 0 | $mol_style_unit<$mol_style_unit_angle>>;
529
- static invert(value?: number | $mol_style_unit<'%'>): $mol_style_func<"invert", string | number | $mol_style_unit<"%">>;
530
- static opacity(value?: number | $mol_style_unit<'%'>): $mol_style_func<"opacity", string | number | $mol_style_unit<"%">>;
531
- static sepia(value?: number | $mol_style_unit<'%'>): $mol_style_func<"sepia", string | number | $mol_style_unit<"%">>;
532
- static saturate(value?: number | $mol_style_unit<'%'>): $mol_style_func<"saturate", string | number | $mol_style_unit<"%">>;
526
+ static blur(value?: $mol_style_unit_str<$mol_style_unit_length>): $mol_style_func<"blur", string>;
527
+ static brightness(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"brightness", string | number>;
528
+ static contrast(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"contrast", string | number>;
529
+ static drop_shadow(color: $mol_style_properties_color, x_offset: $mol_style_unit_str<$mol_style_unit_length>, y_offset: $mol_style_unit_str<$mol_style_unit_length>, blur_radius?: $mol_style_unit_str<$mol_style_unit_length>): $mol_style_func<"drop-shadow", (`${number}%` | `${number}px` | `${number}mm` | `${number}cm` | `${number}Q` | `${number}in` | `${number}pc` | `${number}pt` | `${number}cap` | `${number}ch` | `${number}em` | `${number}rem` | `${number}ex` | `${number}ic` | `${number}lh` | `${number}rlh` | `${number}vh` | `${number}vw` | `${number}vi` | `${number}vb` | `${number}vmin` | `${number}vmax` | $mol_style_properties_color)[]>;
530
+ static grayscale(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"grayscale", string | number>;
531
+ static hue_rotate(value?: 0 | $mol_style_unit_str<$mol_style_unit_angle>): $mol_style_func<"hue-rotate", string | 0>;
532
+ static invert(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"invert", string | number>;
533
+ static opacity(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"opacity", string | number>;
534
+ static sepia(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"sepia", string | number>;
535
+ static saturate(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"saturate", string | number>;
533
536
  }
534
537
  }
535
538