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/node.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
  }
@@ -235,11 +242,6 @@ declare namespace $ {
235
242
  }
236
243
  }
237
244
 
238
- declare namespace $ {
239
- function $mol_func_name(this: $, func: Function): string;
240
- function $mol_func_name_from<Target extends Function>(target: Target, source: Function): Target;
241
- }
242
-
243
245
  declare namespace $ {
244
246
  function $mol_guid(length?: number, exists?: (id: string) => boolean): string;
245
247
  }
@@ -615,6 +617,7 @@ declare namespace $ {
615
617
  type $mol_style_unit_angle = 'deg' | 'rad' | 'grad' | 'turn';
616
618
  type $mol_style_unit_time = 's' | 'ms';
617
619
  type $mol_style_unit_any = $mol_style_unit_length | $mol_style_unit_angle | $mol_style_unit_time;
620
+ type $mol_style_unit_str<Quanity extends $mol_style_unit_any> = `${number}${Quanity}`;
618
621
  class $mol_style_unit<Literal extends $mol_style_unit_any> extends $mol_decor<number> {
619
622
  readonly literal: Literal;
620
623
  constructor(value: number, literal: Literal);
@@ -662,22 +665,22 @@ declare namespace $ {
662
665
  static vary<Name extends string, Value extends string>(name: Name, defaultValue?: Value): $mol_style_func<"var", Name | (Name | Value)[]>;
663
666
  static url<Href extends string>(href: Href): $mol_style_func<"url", string>;
664
667
  static hsla(hue: number, saturation: number, lightness: number, alpha: number): $mol_style_func<"hsla", (number | `${number}%`)[]>;
665
- 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>[]>;
668
+ 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}`[]>;
666
669
  static rgba(red: number, green: number, blue: number, alpha: number): $mol_style_func<"rgba", number[]>;
667
670
  static scale(zoom: number): $mol_style_func<"scale", number[]>;
668
- static linear(...breakpoints: Array<number | [number, number | $mol_style_unit<'%'>]>): $mol_style_func<"linear", string[]>;
671
+ static linear(...breakpoints: Array<number | [number, number | $mol_style_unit_str<'%'>]>): $mol_style_func<"linear", string[]>;
669
672
  static cubic_bezier(x1: number, y1: number, x2: number, y2: number): $mol_style_func<"cubic-bezier", number[]>;
670
673
  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")[]>;
671
- static blur(value?: $mol_style_unit<$mol_style_unit_length>): $mol_style_func<"blur", string | $mol_style_unit<$mol_style_unit_length>>;
672
- static brightness(value?: number | $mol_style_unit<'%'>): $mol_style_func<"brightness", string | number | $mol_style_unit<"%">>;
673
- static contrast(value?: number | $mol_style_unit<'%'>): $mol_style_func<"contrast", string | number | $mol_style_unit<"%">>;
674
- 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)[]>;
675
- static grayscale(value?: number | $mol_style_unit<'%'>): $mol_style_func<"grayscale", string | number | $mol_style_unit<"%">>;
676
- 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>>;
677
- static invert(value?: number | $mol_style_unit<'%'>): $mol_style_func<"invert", string | number | $mol_style_unit<"%">>;
678
- static opacity(value?: number | $mol_style_unit<'%'>): $mol_style_func<"opacity", string | number | $mol_style_unit<"%">>;
679
- static sepia(value?: number | $mol_style_unit<'%'>): $mol_style_func<"sepia", string | number | $mol_style_unit<"%">>;
680
- static saturate(value?: number | $mol_style_unit<'%'>): $mol_style_func<"saturate", string | number | $mol_style_unit<"%">>;
674
+ static blur(value?: $mol_style_unit_str<$mol_style_unit_length>): $mol_style_func<"blur", string>;
675
+ static brightness(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"brightness", string | number>;
676
+ static contrast(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"contrast", string | number>;
677
+ 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)[]>;
678
+ static grayscale(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"grayscale", string | number>;
679
+ static hue_rotate(value?: 0 | $mol_style_unit_str<$mol_style_unit_angle>): $mol_style_func<"hue-rotate", string | 0>;
680
+ static invert(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"invert", string | number>;
681
+ static opacity(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"opacity", string | number>;
682
+ static sepia(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"sepia", string | number>;
683
+ static saturate(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"saturate", string | number>;
681
684
  }
682
685
  }
683
686