mol_plot_all 1.2.145 → 1.2.149
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.esm.js +4 -4
- package/node.esm.js.map +1 -1
- package/node.js +4 -4
- package/node.js.map +1 -1
- package/node.test.js +19 -4
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.esm.js +4 -4
- package/web.esm.js.map +1 -1
- package/web.js +4 -4
- package/web.js.map +1 -1
- package/web.test.js +15 -0
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -3565,9 +3565,9 @@ var $;
|
|
|
3565
3565
|
}
|
|
3566
3566
|
if (event instanceof WheelEvent) {
|
|
3567
3567
|
this.pointer_events([event]);
|
|
3568
|
-
if (event.
|
|
3569
|
-
return this.action_type('
|
|
3570
|
-
return this.action_type('
|
|
3568
|
+
if (event.shiftKey)
|
|
3569
|
+
return this.action_type('pan');
|
|
3570
|
+
return this.action_type('zoom');
|
|
3571
3571
|
}
|
|
3572
3572
|
return this.action_type('');
|
|
3573
3573
|
}
|
|
@@ -3712,7 +3712,7 @@ var $;
|
|
|
3712
3712
|
}
|
|
3713
3713
|
if (action_type === 'pan') {
|
|
3714
3714
|
const pan_prev = this.pan();
|
|
3715
|
-
const pan_next = new $.$mol_vector_2d(pan_prev.x -
|
|
3715
|
+
const pan_next = new $.$mol_vector_2d(pan_prev.x - event.deltaX, pan_prev.y - event.deltaY);
|
|
3716
3716
|
this.pan(pan_next);
|
|
3717
3717
|
}
|
|
3718
3718
|
}
|
|
@@ -6301,6 +6301,17 @@ var $;
|
|
|
6301
6301
|
;
|
|
6302
6302
|
"use strict";
|
|
6303
6303
|
var $;
|
|
6304
|
+
(function ($) {
|
|
6305
|
+
function $mol_dom_serialize(node) {
|
|
6306
|
+
const serializer = new $.$mol_dom_context.XMLSerializer;
|
|
6307
|
+
return serializer.serializeToString(node);
|
|
6308
|
+
}
|
|
6309
|
+
$.$mol_dom_serialize = $mol_dom_serialize;
|
|
6310
|
+
})($ || ($ = {}));
|
|
6311
|
+
//serialize.js.map
|
|
6312
|
+
;
|
|
6313
|
+
"use strict";
|
|
6314
|
+
var $;
|
|
6304
6315
|
(function ($) {
|
|
6305
6316
|
$.$mol_test({
|
|
6306
6317
|
'must be false'() {
|
|
@@ -6418,6 +6429,10 @@ var $;
|
|
|
6418
6429
|
}
|
|
6419
6430
|
}
|
|
6420
6431
|
$.$mol_assert_like = $mol_assert_like;
|
|
6432
|
+
function $mol_assert_dom(left, right) {
|
|
6433
|
+
$mol_assert_equal($.$mol_dom_serialize(left), $.$mol_dom_serialize(right));
|
|
6434
|
+
}
|
|
6435
|
+
$.$mol_assert_dom = $mol_assert_dom;
|
|
6421
6436
|
})($ || ($ = {}));
|
|
6422
6437
|
//assert.js.map
|
|
6423
6438
|
;
|