Skip to content

Commit

Permalink
Deploying to gh-pages from @ b9e61e4 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelZubkov committed Dec 3, 2023
1 parent 4ee76b4 commit 5db0468
Show file tree
Hide file tree
Showing 13 changed files with 220 additions and 201 deletions.
36 changes: 19 additions & 17 deletions node.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ declare namespace $ {
};
}

declare namespace $ {
function $mol_func_name(this: $, func: Function): string;
function $mol_func_name_from<Target extends Function>(target: Target, source: Function): Target;
}

declare namespace $ {
class $mol_object2 {
static $: typeof $$;
Expand All @@ -63,6 +68,7 @@ declare namespace $ {
static toString(): string;
destructor(): void;
toString(): string;
static toJSON(): string;
toJSON(): any;
}
}
Expand Down Expand Up @@ -235,11 +241,6 @@ declare namespace $ {
}
}

declare namespace $ {
function $mol_func_name(this: $, func: Function): string;
function $mol_func_name_from<Target extends Function>(target: Target, source: Function): Target;
}

declare namespace $ {
function $mol_guid(length?: number, exists?: (id: string) => boolean): string;
}
Expand Down Expand Up @@ -615,6 +616,7 @@ declare namespace $ {
type $mol_style_unit_angle = 'deg' | 'rad' | 'grad' | 'turn';
type $mol_style_unit_time = 's' | 'ms';
type $mol_style_unit_any = $mol_style_unit_length | $mol_style_unit_angle | $mol_style_unit_time;
type $mol_style_unit_str<Quanity extends $mol_style_unit_any> = `${number}${Quanity}`;
class $mol_style_unit<Literal extends $mol_style_unit_any> extends $mol_decor<number> {
readonly literal: Literal;
constructor(value: number, literal: Literal);
Expand Down Expand Up @@ -662,22 +664,22 @@ declare namespace $ {
static vary<Name extends string, Value extends string>(name: Name, defaultValue?: Value): $mol_style_func<"var", Name | (Name | Value)[]>;
static url<Href extends string>(href: Href): $mol_style_func<"url", string>;
static hsla(hue: number, saturation: number, lightness: number, alpha: number): $mol_style_func<"hsla", (number | `${number}%`)[]>;
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>[]>;
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}`[]>;
static rgba(red: number, green: number, blue: number, alpha: number): $mol_style_func<"rgba", number[]>;
static scale(zoom: number): $mol_style_func<"scale", number[]>;
static linear(...breakpoints: Array<number | [number, number | $mol_style_unit<'%'>]>): $mol_style_func<"linear", string[]>;
static linear(...breakpoints: Array<number | [number, number | $mol_style_unit_str<'%'>]>): $mol_style_func<"linear", string[]>;
static cubic_bezier(x1: number, y1: number, x2: number, y2: number): $mol_style_func<"cubic-bezier", number[]>;
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")[]>;
static blur(value?: $mol_style_unit<$mol_style_unit_length>): $mol_style_func<"blur", string | $mol_style_unit<$mol_style_unit_length>>;
static brightness(value?: number | $mol_style_unit<'%'>): $mol_style_func<"brightness", string | number | $mol_style_unit<"%">>;
static contrast(value?: number | $mol_style_unit<'%'>): $mol_style_func<"contrast", string | number | $mol_style_unit<"%">>;
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)[]>;
static grayscale(value?: number | $mol_style_unit<'%'>): $mol_style_func<"grayscale", string | number | $mol_style_unit<"%">>;
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>>;
static invert(value?: number | $mol_style_unit<'%'>): $mol_style_func<"invert", string | number | $mol_style_unit<"%">>;
static opacity(value?: number | $mol_style_unit<'%'>): $mol_style_func<"opacity", string | number | $mol_style_unit<"%">>;
static sepia(value?: number | $mol_style_unit<'%'>): $mol_style_func<"sepia", string | number | $mol_style_unit<"%">>;
static saturate(value?: number | $mol_style_unit<'%'>): $mol_style_func<"saturate", string | number | $mol_style_unit<"%">>;
static blur(value?: $mol_style_unit_str<$mol_style_unit_length>): $mol_style_func<"blur", string>;
static brightness(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"brightness", string | number>;
static contrast(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"contrast", string | number>;
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)[]>;
static grayscale(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"grayscale", string | number>;
static hue_rotate(value?: 0 | $mol_style_unit_str<$mol_style_unit_angle>): $mol_style_func<"hue-rotate", string | 0>;
static invert(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"invert", string | number>;
static opacity(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"opacity", string | number>;
static sepia(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"sepia", string | number>;
static saturate(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"saturate", string | number>;
}
}

Expand Down
2 changes: 1 addition & 1 deletion node.deps.json

Large diffs are not rendered by default.

67 changes: 35 additions & 32 deletions node.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,38 @@ var $;
;
"use strict";
var $;
(function ($) {
const named = new WeakSet();
function $mol_func_name(func) {
let name = func.name;
if (name?.length > 1)
return name;
if (named.has(func))
return name;
for (let key in this) {
try {
if (this[key] !== func)
continue;
name = key;
Object.defineProperty(func, 'name', { value: name });
break;
}
catch { }
}
named.add(func);
return name;
}
$.$mol_func_name = $mol_func_name;
function $mol_func_name_from(target, source) {
Object.defineProperty(target, 'name', { value: source.name });
return target;
}
$.$mol_func_name_from = $mol_func_name_from;
})($ || ($ = {}));
//mol/func/name/name.ts
;
"use strict";
var $;
(function ($) {
class $mol_object2 {
static $ = $;
Expand Down Expand Up @@ -191,6 +223,9 @@ var $;
toString() {
return this[Symbol.toStringTag] || this.constructor.name + '()';
}
static toJSON() {
return this.$.$mol_func_name(this);
}
toJSON() {
return this.toString();
}
Expand Down Expand Up @@ -842,38 +877,6 @@ var $;
;
"use strict";
var $;
(function ($) {
const named = new WeakSet();
function $mol_func_name(func) {
let name = func.name;
if (name?.length > 1)
return name;
if (named.has(func))
return name;
for (let key in this) {
try {
if (this[key] !== func)
continue;
name = key;
Object.defineProperty(func, 'name', { value: name });
break;
}
catch { }
}
named.add(func);
return name;
}
$.$mol_func_name = $mol_func_name;
function $mol_func_name_from(target, source) {
Object.defineProperty(target, 'name', { value: source.name });
return target;
}
$.$mol_func_name_from = $mol_func_name_from;
})($ || ($ = {}));
//mol/func/name/name.ts
;
"use strict";
var $;
(function ($) {
function $mol_guid(length = 8, exists = () => false) {
for (;;) {
Expand Down
2 changes: 1 addition & 1 deletion node.js.map

Large diffs are not rendered by default.

67 changes: 35 additions & 32 deletions node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,38 @@ var $;
;
"use strict";
var $;
(function ($) {
const named = new WeakSet();
function $mol_func_name(func) {
let name = func.name;
if (name?.length > 1)
return name;
if (named.has(func))
return name;
for (let key in this) {
try {
if (this[key] !== func)
continue;
name = key;
Object.defineProperty(func, 'name', { value: name });
break;
}
catch { }
}
named.add(func);
return name;
}
$.$mol_func_name = $mol_func_name;
function $mol_func_name_from(target, source) {
Object.defineProperty(target, 'name', { value: source.name });
return target;
}
$.$mol_func_name_from = $mol_func_name_from;
})($ || ($ = {}));
//mol/func/name/name.ts
;
"use strict";
var $;
(function ($) {
class $mol_object2 {
static $ = $;
Expand Down Expand Up @@ -191,6 +223,9 @@ var $;
toString() {
return this[Symbol.toStringTag] || this.constructor.name + '()';
}
static toJSON() {
return this.$.$mol_func_name(this);
}
toJSON() {
return this.toString();
}
Expand Down Expand Up @@ -842,38 +877,6 @@ var $;
;
"use strict";
var $;
(function ($) {
const named = new WeakSet();
function $mol_func_name(func) {
let name = func.name;
if (name?.length > 1)
return name;
if (named.has(func))
return name;
for (let key in this) {
try {
if (this[key] !== func)
continue;
name = key;
Object.defineProperty(func, 'name', { value: name });
break;
}
catch { }
}
named.add(func);
return name;
}
$.$mol_func_name = $mol_func_name;
function $mol_func_name_from(target, source) {
Object.defineProperty(target, 'name', { value: source.name });
return target;
}
$.$mol_func_name_from = $mol_func_name_from;
})($ || ($ = {}));
//mol/func/name/name.ts
;
"use strict";
var $;
(function ($) {
function $mol_guid(length = 8, exists = () => false) {
for (;;) {
Expand Down
67 changes: 35 additions & 32 deletions node.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,38 @@ var $;
;
"use strict";
var $;
(function ($) {
const named = new WeakSet();
function $mol_func_name(func) {
let name = func.name;
if (name?.length > 1)
return name;
if (named.has(func))
return name;
for (let key in this) {
try {
if (this[key] !== func)
continue;
name = key;
Object.defineProperty(func, 'name', { value: name });
break;
}
catch { }
}
named.add(func);
return name;
}
$.$mol_func_name = $mol_func_name;
function $mol_func_name_from(target, source) {
Object.defineProperty(target, 'name', { value: source.name });
return target;
}
$.$mol_func_name_from = $mol_func_name_from;
})($ || ($ = {}));
//mol/func/name/name.ts
;
"use strict";
var $;
(function ($) {
class $mol_object2 {
static $ = $;
Expand Down Expand Up @@ -183,6 +215,9 @@ var $;
toString() {
return this[Symbol.toStringTag] || this.constructor.name + '()';
}
static toJSON() {
return this.$.$mol_func_name(this);
}
toJSON() {
return this.toString();
}
Expand Down Expand Up @@ -834,38 +869,6 @@ var $;
;
"use strict";
var $;
(function ($) {
const named = new WeakSet();
function $mol_func_name(func) {
let name = func.name;
if (name?.length > 1)
return name;
if (named.has(func))
return name;
for (let key in this) {
try {
if (this[key] !== func)
continue;
name = key;
Object.defineProperty(func, 'name', { value: name });
break;
}
catch { }
}
named.add(func);
return name;
}
$.$mol_func_name = $mol_func_name;
function $mol_func_name_from(target, source) {
Object.defineProperty(target, 'name', { value: source.name });
return target;
}
$.$mol_func_name_from = $mol_func_name_from;
})($ || ($ = {}));
//mol/func/name/name.ts
;
"use strict";
var $;
(function ($) {
function $mol_guid(length = 8, exists = () => false) {
for (;;) {
Expand Down
2 changes: 1 addition & 1 deletion node.test.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"$mol_fail",
"$mol_type_writable",
"$mol_type",
"$mol_func_name",
"$mol_func",
"$mol_mem",
"$mol_wire_solo",
"$mol_wire",
Expand All @@ -48,8 +50,6 @@
"$mol_after_timeout",
"$mol_promise_like",
"$mol_promise",
"$mol_func_name",
"$mol_func",
"$mol_key",
"$mol_guid",
"$mol_wire_method",
Expand Down
Loading

0 comments on commit 5db0468

Please sign in to comment.