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