mol_plot_all 1.2.635 → 1.2.637
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.js
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;
|