mol_plot_all 1.2.634 → 1.2.636
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 +183 -19
- package/node.deps.json +1 -1
- package/node.js +50 -2
- package/node.js.map +1 -1
- package/node.mjs +50 -2
- package/node.test.js +50 -2
- package/node.test.js.map +1 -1
- package/package.json +3 -1
- package/web.d.ts +183 -19
- package/web.deps.json +1 -1
- package/web.js +50 -2
- package/web.js.map +1 -1
- package/web.mjs +50 -2
package/node.mjs
CHANGED
|
@@ -2440,8 +2440,8 @@ var $;
|
|
|
2440
2440
|
static calc(value) {
|
|
2441
2441
|
return new $mol_style_func('calc', value);
|
|
2442
2442
|
}
|
|
2443
|
-
static vary(name) {
|
|
2444
|
-
return new $mol_style_func('var', name);
|
|
2443
|
+
static vary(name, defaultValue) {
|
|
2444
|
+
return new $mol_style_func('var', defaultValue ? [name, defaultValue] : name);
|
|
2445
2445
|
}
|
|
2446
2446
|
static url(href) {
|
|
2447
2447
|
return new $mol_style_func('url', JSON.stringify(href));
|
|
@@ -2458,15 +2458,63 @@ var $;
|
|
|
2458
2458
|
static scale(zoom) {
|
|
2459
2459
|
return new $mol_style_func('scale', [zoom]);
|
|
2460
2460
|
}
|
|
2461
|
+
static linear(...breakpoints) {
|
|
2462
|
+
return new $mol_style_func("linear", breakpoints.map((e) => Array.isArray(e)
|
|
2463
|
+
? String(e[0]) +
|
|
2464
|
+
" " +
|
|
2465
|
+
(typeof e[1] === "number" ? e[1] + "%" : e[1].toString())
|
|
2466
|
+
: String(e)));
|
|
2467
|
+
}
|
|
2461
2468
|
static cubic_bezier(x1, y1, x2, y2) {
|
|
2462
2469
|
return new $mol_style_func('cubic-bezier', [x1, y1, x2, y2]);
|
|
2463
2470
|
}
|
|
2471
|
+
static steps(value, step_position) {
|
|
2472
|
+
return new $mol_style_func('steps', [value, step_position]);
|
|
2473
|
+
}
|
|
2474
|
+
static blur(value) {
|
|
2475
|
+
return new $mol_style_func('blur', value ?? "");
|
|
2476
|
+
}
|
|
2477
|
+
static brightness(value) {
|
|
2478
|
+
return new $mol_style_func('brightness', value ?? "");
|
|
2479
|
+
}
|
|
2480
|
+
static contrast(value) {
|
|
2481
|
+
return new $mol_style_func('contrast', value ?? "");
|
|
2482
|
+
}
|
|
2483
|
+
static drop_shadow(color, x_offset, y_offset, blur_radius) {
|
|
2484
|
+
return new $mol_style_func("drop-shadow", blur_radius
|
|
2485
|
+
? [color, x_offset, y_offset, blur_radius]
|
|
2486
|
+
: [color, x_offset, y_offset]);
|
|
2487
|
+
}
|
|
2488
|
+
static grayscale(value) {
|
|
2489
|
+
return new $mol_style_func('grayscale', value ?? "");
|
|
2490
|
+
}
|
|
2491
|
+
static hue_rotate(value) {
|
|
2492
|
+
return new $mol_style_func('hue-rotate', value ?? "");
|
|
2493
|
+
}
|
|
2494
|
+
static invert(value) {
|
|
2495
|
+
return new $mol_style_func('invert', value ?? "");
|
|
2496
|
+
}
|
|
2497
|
+
static opacity(value) {
|
|
2498
|
+
return new $mol_style_func('opacity', value ?? "");
|
|
2499
|
+
}
|
|
2500
|
+
static sepia(value) {
|
|
2501
|
+
return new $mol_style_func('sepia', value ?? "");
|
|
2502
|
+
}
|
|
2503
|
+
static saturate(value) {
|
|
2504
|
+
return new $mol_style_func('saturate', value ?? "");
|
|
2505
|
+
}
|
|
2464
2506
|
}
|
|
2465
2507
|
$.$mol_style_func = $mol_style_func;
|
|
2466
2508
|
})($ || ($ = {}));
|
|
2467
2509
|
//mol/style/func/func.ts
|
|
2468
2510
|
;
|
|
2469
2511
|
"use strict";
|
|
2512
|
+
//mol/type/override/override.ts
|
|
2513
|
+
;
|
|
2514
|
+
"use strict";
|
|
2515
|
+
//mol/style/properties/properties.ts
|
|
2516
|
+
;
|
|
2517
|
+
"use strict";
|
|
2470
2518
|
var $;
|
|
2471
2519
|
(function ($) {
|
|
2472
2520
|
const { vary } = $mol_style_func;
|
package/node.test.js
CHANGED
|
@@ -2432,8 +2432,8 @@ var $;
|
|
|
2432
2432
|
static calc(value) {
|
|
2433
2433
|
return new $mol_style_func('calc', value);
|
|
2434
2434
|
}
|
|
2435
|
-
static vary(name) {
|
|
2436
|
-
return new $mol_style_func('var', name);
|
|
2435
|
+
static vary(name, defaultValue) {
|
|
2436
|
+
return new $mol_style_func('var', defaultValue ? [name, defaultValue] : name);
|
|
2437
2437
|
}
|
|
2438
2438
|
static url(href) {
|
|
2439
2439
|
return new $mol_style_func('url', JSON.stringify(href));
|
|
@@ -2450,15 +2450,63 @@ var $;
|
|
|
2450
2450
|
static scale(zoom) {
|
|
2451
2451
|
return new $mol_style_func('scale', [zoom]);
|
|
2452
2452
|
}
|
|
2453
|
+
static linear(...breakpoints) {
|
|
2454
|
+
return new $mol_style_func("linear", breakpoints.map((e) => Array.isArray(e)
|
|
2455
|
+
? String(e[0]) +
|
|
2456
|
+
" " +
|
|
2457
|
+
(typeof e[1] === "number" ? e[1] + "%" : e[1].toString())
|
|
2458
|
+
: String(e)));
|
|
2459
|
+
}
|
|
2453
2460
|
static cubic_bezier(x1, y1, x2, y2) {
|
|
2454
2461
|
return new $mol_style_func('cubic-bezier', [x1, y1, x2, y2]);
|
|
2455
2462
|
}
|
|
2463
|
+
static steps(value, step_position) {
|
|
2464
|
+
return new $mol_style_func('steps', [value, step_position]);
|
|
2465
|
+
}
|
|
2466
|
+
static blur(value) {
|
|
2467
|
+
return new $mol_style_func('blur', value ?? "");
|
|
2468
|
+
}
|
|
2469
|
+
static brightness(value) {
|
|
2470
|
+
return new $mol_style_func('brightness', value ?? "");
|
|
2471
|
+
}
|
|
2472
|
+
static contrast(value) {
|
|
2473
|
+
return new $mol_style_func('contrast', value ?? "");
|
|
2474
|
+
}
|
|
2475
|
+
static drop_shadow(color, x_offset, y_offset, blur_radius) {
|
|
2476
|
+
return new $mol_style_func("drop-shadow", blur_radius
|
|
2477
|
+
? [color, x_offset, y_offset, blur_radius]
|
|
2478
|
+
: [color, x_offset, y_offset]);
|
|
2479
|
+
}
|
|
2480
|
+
static grayscale(value) {
|
|
2481
|
+
return new $mol_style_func('grayscale', value ?? "");
|
|
2482
|
+
}
|
|
2483
|
+
static hue_rotate(value) {
|
|
2484
|
+
return new $mol_style_func('hue-rotate', value ?? "");
|
|
2485
|
+
}
|
|
2486
|
+
static invert(value) {
|
|
2487
|
+
return new $mol_style_func('invert', value ?? "");
|
|
2488
|
+
}
|
|
2489
|
+
static opacity(value) {
|
|
2490
|
+
return new $mol_style_func('opacity', value ?? "");
|
|
2491
|
+
}
|
|
2492
|
+
static sepia(value) {
|
|
2493
|
+
return new $mol_style_func('sepia', value ?? "");
|
|
2494
|
+
}
|
|
2495
|
+
static saturate(value) {
|
|
2496
|
+
return new $mol_style_func('saturate', value ?? "");
|
|
2497
|
+
}
|
|
2456
2498
|
}
|
|
2457
2499
|
$.$mol_style_func = $mol_style_func;
|
|
2458
2500
|
})($ || ($ = {}));
|
|
2459
2501
|
//mol/style/func/func.ts
|
|
2460
2502
|
;
|
|
2461
2503
|
"use strict";
|
|
2504
|
+
//mol/type/override/override.ts
|
|
2505
|
+
;
|
|
2506
|
+
"use strict";
|
|
2507
|
+
//mol/style/properties/properties.ts
|
|
2508
|
+
;
|
|
2509
|
+
"use strict";
|
|
2462
2510
|
var $;
|
|
2463
2511
|
(function ($) {
|
|
2464
2512
|
const { vary } = $mol_style_func;
|