mol_plot_all 1.2.239 → 1.2.242
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 +12 -6
- package/node.deps.json +1 -1
- package/node.esm.js +37 -32
- package/node.esm.js.map +1 -1
- package/node.js +37 -32
- package/node.js.map +1 -1
- package/node.test.js +39 -59
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +12 -6
- package/web.deps.json +1 -1
- package/web.esm.js +37 -32
- package/web.esm.js.map +1 -1
- package/web.js +37 -32
- package/web.js.map +1 -1
- package/web.test.js +2 -27
- package/web.test.js.map +1 -1
package/web.esm.js
CHANGED
|
@@ -1258,26 +1258,7 @@ var $;
|
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
1260
1260
|
resync(...args) {
|
|
1261
|
-
|
|
1262
|
-
try {
|
|
1263
|
-
res = this.recall(...args);
|
|
1264
|
-
}
|
|
1265
|
-
catch (error) {
|
|
1266
|
-
if (error instanceof Promise)
|
|
1267
|
-
$mol_fail_hidden(error);
|
|
1268
|
-
res = error;
|
|
1269
|
-
}
|
|
1270
|
-
try {
|
|
1271
|
-
this.once();
|
|
1272
|
-
}
|
|
1273
|
-
catch (error) {
|
|
1274
|
-
if (error instanceof Promise)
|
|
1275
|
-
$mol_fail_hidden(error);
|
|
1276
|
-
}
|
|
1277
|
-
return this.put(res);
|
|
1278
|
-
}
|
|
1279
|
-
recall(...args) {
|
|
1280
|
-
return this.task.call(this.host, ...args);
|
|
1261
|
+
return this.put(this.task.call(this.host, ...args));
|
|
1281
1262
|
}
|
|
1282
1263
|
once() {
|
|
1283
1264
|
return this.sync();
|
|
@@ -1326,9 +1307,6 @@ var $;
|
|
|
1326
1307
|
__decorate([
|
|
1327
1308
|
$mol_wire_method
|
|
1328
1309
|
], $mol_wire_atom.prototype, "resync", null);
|
|
1329
|
-
__decorate([
|
|
1330
|
-
$mol_wire_method
|
|
1331
|
-
], $mol_wire_atom.prototype, "recall", null);
|
|
1332
1310
|
__decorate([
|
|
1333
1311
|
$mol_wire_method
|
|
1334
1312
|
], $mol_wire_atom.prototype, "once", null);
|
|
@@ -2375,8 +2353,11 @@ var $;
|
|
|
2375
2353
|
return this[0].map((_, i) => this.map(row => row[i]));
|
|
2376
2354
|
}
|
|
2377
2355
|
get x() { return this[0]; }
|
|
2356
|
+
set x(next) { this[0] = next; }
|
|
2378
2357
|
get y() { return this[1]; }
|
|
2358
|
+
set y(next) { this[1] = next; }
|
|
2379
2359
|
get z() { return this[2]; }
|
|
2360
|
+
set z(next) { this[2] = next; }
|
|
2380
2361
|
}
|
|
2381
2362
|
$.$mol_vector = $mol_vector;
|
|
2382
2363
|
class $mol_vector_1d extends $mol_vector {
|
|
@@ -2389,10 +2370,17 @@ var $;
|
|
|
2389
2370
|
}
|
|
2390
2371
|
$.$mol_vector_3d = $mol_vector_3d;
|
|
2391
2372
|
class $mol_vector_range extends $mol_vector {
|
|
2392
|
-
|
|
2393
|
-
|
|
2373
|
+
0;
|
|
2374
|
+
1;
|
|
2375
|
+
constructor(min, max) {
|
|
2376
|
+
super(min, max);
|
|
2377
|
+
this[0] = min;
|
|
2378
|
+
this[1] = max;
|
|
2379
|
+
}
|
|
2394
2380
|
get min() { return this[0]; }
|
|
2381
|
+
set min(next) { this[0] = next; }
|
|
2395
2382
|
get max() { return this[1]; }
|
|
2383
|
+
set max(next) { this[1] = next; }
|
|
2396
2384
|
get inversed() {
|
|
2397
2385
|
return new this.constructor(this.max, this.min);
|
|
2398
2386
|
}
|
|
@@ -2698,7 +2686,14 @@ var $;
|
|
|
2698
2686
|
const series_x = this.series_x();
|
|
2699
2687
|
const series_y = this.series_y();
|
|
2700
2688
|
for (let i = 0; i < series_x.length; i++) {
|
|
2701
|
-
|
|
2689
|
+
if (series_x[i] > next.x.max)
|
|
2690
|
+
next.x.max = series_x[i];
|
|
2691
|
+
if (series_x[i] < next.x.min)
|
|
2692
|
+
next.x.min = series_x[i];
|
|
2693
|
+
if (series_y[i] > next.y.max)
|
|
2694
|
+
next.y.max = series_y[i];
|
|
2695
|
+
if (series_y[i] < next.y.min)
|
|
2696
|
+
next.y.min = series_y[i];
|
|
2702
2697
|
}
|
|
2703
2698
|
return next;
|
|
2704
2699
|
}
|
|
@@ -4052,16 +4047,17 @@ var $;
|
|
|
4052
4047
|
"use strict";
|
|
4053
4048
|
var $;
|
|
4054
4049
|
(function ($) {
|
|
4055
|
-
|
|
4056
|
-
|
|
4050
|
+
const mask = 0b11111_11111_11111;
|
|
4051
|
+
function $mol_coord_pack(high, low) {
|
|
4052
|
+
return (high << 17 >>> 2) | (low & mask);
|
|
4057
4053
|
}
|
|
4058
4054
|
$.$mol_coord_pack = $mol_coord_pack;
|
|
4059
|
-
function $mol_coord_high(
|
|
4060
|
-
return
|
|
4055
|
+
function $mol_coord_high(pack) {
|
|
4056
|
+
return pack << 2 >> 17;
|
|
4061
4057
|
}
|
|
4062
4058
|
$.$mol_coord_high = $mol_coord_high;
|
|
4063
|
-
function $mol_coord_low(
|
|
4064
|
-
return (
|
|
4059
|
+
function $mol_coord_low(pack) {
|
|
4060
|
+
return (pack << 17) >> 17;
|
|
4065
4061
|
}
|
|
4066
4062
|
$.$mol_coord_low = $mol_coord_low;
|
|
4067
4063
|
})($ || ($ = {}));
|
|
@@ -4147,6 +4143,12 @@ var $;
|
|
|
4147
4143
|
const size_x = Math.max(0, Math.ceil((1 / aspect - 1) * diameter));
|
|
4148
4144
|
return points.map(point => `M ${point[0] - shift_x} ${point[1] - shift_y} l ${size_x} ${size_y}`).join(' ');
|
|
4149
4145
|
}
|
|
4146
|
+
dimensions() {
|
|
4147
|
+
const scale = this.scale();
|
|
4148
|
+
const radius = this.diameter() / Math.min(...scale) / 2;
|
|
4149
|
+
const dims = super.dimensions();
|
|
4150
|
+
return new this.$.$mol_vector_2d(new $mol_vector_range(dims.x.min - radius, dims.x.max + radius), new $mol_vector_range(dims.y.min - radius, dims.y.max + radius));
|
|
4151
|
+
}
|
|
4150
4152
|
}
|
|
4151
4153
|
__decorate([
|
|
4152
4154
|
$mol_mem
|
|
@@ -4154,6 +4156,9 @@ var $;
|
|
|
4154
4156
|
__decorate([
|
|
4155
4157
|
$mol_mem
|
|
4156
4158
|
], $mol_plot_dot.prototype, "indexes", null);
|
|
4159
|
+
__decorate([
|
|
4160
|
+
$mol_mem
|
|
4161
|
+
], $mol_plot_dot.prototype, "dimensions", null);
|
|
4157
4162
|
$$.$mol_plot_dot = $mol_plot_dot;
|
|
4158
4163
|
})($$ = $.$$ || ($.$$ = {}));
|
|
4159
4164
|
})($ || ($ = {}));
|