mol_plot_all 1.2.829 → 1.2.831

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.829",
3
+ "version": "1.2.831",
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 $$;
@@ -63,6 +68,7 @@ declare namespace $ {
63
68
  static toString(): string;
64
69
  destructor(): void;
65
70
  toString(): string;
71
+ static toJSON(): string;
66
72
  toJSON(): any;
67
73
  }
68
74
  }
@@ -221,11 +227,6 @@ declare namespace $ {
221
227
  }
222
228
  }
223
229
 
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
230
  declare namespace $ {
230
231
  function $mol_guid(length?: number, exists?: (id: string) => boolean): string;
231
232
  }
@@ -467,6 +468,7 @@ declare namespace $ {
467
468
  type $mol_style_unit_angle = 'deg' | 'rad' | 'grad' | 'turn';
468
469
  type $mol_style_unit_time = 's' | 'ms';
469
470
  type $mol_style_unit_any = $mol_style_unit_length | $mol_style_unit_angle | $mol_style_unit_time;
471
+ type $mol_style_unit_str<Quanity extends $mol_style_unit_any> = `${number}${Quanity}`;
470
472
  class $mol_style_unit<Literal extends $mol_style_unit_any> extends $mol_decor<number> {
471
473
  readonly literal: Literal;
472
474
  constructor(value: number, literal: Literal);
@@ -514,22 +516,22 @@ declare namespace $ {
514
516
  static vary<Name extends string, Value extends string>(name: Name, defaultValue?: Value): $mol_style_func<"var", Name | (Name | Value)[]>;
515
517
  static url<Href extends string>(href: Href): $mol_style_func<"url", string>;
516
518
  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>[]>;
519
+ 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
520
  static rgba(red: number, green: number, blue: number, alpha: number): $mol_style_func<"rgba", number[]>;
519
521
  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[]>;
522
+ static linear(...breakpoints: Array<number | [number, number | $mol_style_unit_str<'%'>]>): $mol_style_func<"linear", string[]>;
521
523
  static cubic_bezier(x1: number, y1: number, x2: number, y2: number): $mol_style_func<"cubic-bezier", number[]>;
522
524
  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<"%">>;
525
+ static blur(value?: $mol_style_unit_str<$mol_style_unit_length>): $mol_style_func<"blur", string>;
526
+ static brightness(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"brightness", string | number>;
527
+ static contrast(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"contrast", string | number>;
528
+ 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)[]>;
529
+ static grayscale(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"grayscale", string | number>;
530
+ static hue_rotate(value?: 0 | $mol_style_unit_str<$mol_style_unit_angle>): $mol_style_func<"hue-rotate", string | 0>;
531
+ static invert(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"invert", string | number>;
532
+ static opacity(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"opacity", string | number>;
533
+ static sepia(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"sepia", string | number>;
534
+ static saturate(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"saturate", string | number>;
533
535
  }
534
536
  }
535
537