@abi-software/simulationvuer 0.6.3 → 0.6.4

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.
@@ -593,14 +593,18 @@ module.exports = __webpack_require__("e62d");
593
593
 
594
594
  /***/ }),
595
595
 
596
- /***/ "1951":
597
- /***/ (function(module, exports, __webpack_require__) {
596
+ /***/ "1612":
597
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
598
+
599
+ "use strict";
600
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SimulationVuer_vue_vue_type_style_index_0_id_efe186fe_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f2fe");
601
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SimulationVuer_vue_vue_type_style_index_0_id_efe186fe_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SimulationVuer_vue_vue_type_style_index_0_id_efe186fe_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
602
+ /* unused harmony reexport * */
598
603
 
599
- // extracted by mini-css-extract-plugin
600
604
 
601
605
  /***/ }),
602
606
 
603
- /***/ "1bd9":
607
+ /***/ "1951":
604
608
  /***/ (function(module, exports, __webpack_require__) {
605
609
 
606
610
  // extracted by mini-css-extract-plugin
@@ -614,17 +618,22 @@ module.exports = require("core-js/modules/web.dom-collections.iterator");
614
618
 
615
619
  /***/ }),
616
620
 
617
- /***/ "1dd3":
621
+ /***/ "1f1a":
618
622
  /***/ (function(module, exports, __webpack_require__) {
619
623
 
620
624
  // extracted by mini-css-extract-plugin
621
625
 
622
626
  /***/ }),
623
627
 
624
- /***/ "1f1a":
625
- /***/ (function(module, exports, __webpack_require__) {
628
+ /***/ "2050":
629
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
630
+
631
+ "use strict";
632
+ __webpack_require__.r(__webpack_exports__);
633
+ /* harmony import */ var _mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_7_oneOf_1_2_index_css_vue_type_style_index_0_id_08e10993_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("666f");
634
+ /* harmony import */ var _mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_7_oneOf_1_2_index_css_vue_type_style_index_0_id_08e10993_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_7_oneOf_1_2_index_css_vue_type_style_index_0_id_08e10993_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
635
+ /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_7_oneOf_1_2_index_css_vue_type_style_index_0_id_08e10993_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_7_oneOf_1_2_index_css_vue_type_style_index_0_id_08e10993_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
626
636
 
627
- // extracted by mini-css-extract-plugin
628
637
 
629
638
  /***/ }),
630
639
 
@@ -2407,13 +2416,6 @@ module.exports = require("core-js/modules/es.regexp.to-string.js");
2407
2416
 
2408
2417
  /***/ }),
2409
2418
 
2410
- /***/ "391b":
2411
- /***/ (function(module, exports, __webpack_require__) {
2412
-
2413
- // extracted by mini-css-extract-plugin
2414
-
2415
- /***/ }),
2416
-
2417
2419
  /***/ "3b51":
2418
2420
  /***/ (function(module, exports) {
2419
2421
 
@@ -2916,17 +2918,6 @@ exports.default = PopupManager;
2916
2918
 
2917
2919
  module.exports = require("tinycolor2");
2918
2920
 
2919
- /***/ }),
2920
-
2921
- /***/ "4dd6":
2922
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2923
-
2924
- "use strict";
2925
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SimulationVuerInput_vue_vue_type_style_index_0_id_730c3eff_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1bd9");
2926
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SimulationVuerInput_vue_vue_type_style_index_0_id_730c3eff_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SimulationVuerInput_vue_vue_type_style_index_0_id_730c3eff_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
2927
- /* unused harmony reexport * */
2928
-
2929
-
2930
2921
  /***/ }),
2931
2922
 
2932
2923
  /***/ "4e4b":
@@ -5457,18 +5448,6 @@ exports.default = {
5457
5448
  }
5458
5449
  };
5459
5450
 
5460
- /***/ }),
5461
-
5462
- /***/ "5889":
5463
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5464
-
5465
- "use strict";
5466
- __webpack_require__.r(__webpack_exports__);
5467
- /* harmony import */ var _mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_7_oneOf_1_2_index_css_vue_type_style_index_0_id_1c3d0ba6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1dd3");
5468
- /* harmony import */ var _mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_7_oneOf_1_2_index_css_vue_type_style_index_0_id_1c3d0ba6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_7_oneOf_1_2_index_css_vue_type_style_index_0_id_1c3d0ba6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
5469
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_7_oneOf_1_2_index_css_vue_type_style_index_0_id_1c3d0ba6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_7_oneOf_1_2_index_css_vue_type_style_index_0_id_1c3d0ba6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
5470
-
5471
-
5472
5451
  /***/ }),
5473
5452
 
5474
5453
  /***/ "5924":
@@ -7025,6 +7004,13 @@ module.exports = require("core-js/modules/es.array.slice");
7025
7004
 
7026
7005
  /***/ }),
7027
7006
 
7007
+ /***/ "666f":
7008
+ /***/ (function(module, exports, __webpack_require__) {
7009
+
7010
+ // extracted by mini-css-extract-plugin
7011
+
7012
+ /***/ }),
7013
+
7028
7014
  /***/ "6ac9":
7029
7015
  /***/ (function(module, exports, __webpack_require__) {
7030
7016
 
@@ -7676,17 +7662,6 @@ exports.default = {
7676
7662
  }
7677
7663
  };
7678
7664
 
7679
- /***/ }),
7680
-
7681
- /***/ "6fa8":
7682
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7683
-
7684
- "use strict";
7685
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SimulationVuer_vue_vue_type_style_index_0_id_58f5e448_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("391b");
7686
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SimulationVuer_vue_vue_type_style_index_0_id_58f5e448_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SimulationVuer_vue_vue_type_style_index_0_id_58f5e448_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
7687
- /* unused harmony reexport * */
7688
-
7689
-
7690
7665
  /***/ }),
7691
7666
 
7692
7667
  /***/ "6faa":
@@ -9449,1492 +9424,6 @@ module.exports = require("resize-observer-polyfill");
9449
9424
 
9450
9425
  // extracted by mini-css-extract-plugin
9451
9426
 
9452
- /***/ }),
9453
-
9454
- /***/ "a4a1":
9455
- /***/ (function(module, exports, __webpack_require__) {
9456
-
9457
- (function (global, factory) {
9458
- true ? factory(exports) :
9459
- undefined;
9460
- }(this, (function (exports) { 'use strict';
9461
-
9462
- /*!
9463
- * perfect-scrollbar v1.5.3
9464
- * Copyright 2021 Hyunje Jun, MDBootstrap and Contributors
9465
- * Licensed under MIT
9466
- */
9467
-
9468
- function get(element) {
9469
- return getComputedStyle(element);
9470
- }
9471
-
9472
- function set(element, obj) {
9473
- for (var key in obj) {
9474
- var val = obj[key];
9475
- if (typeof val === 'number') {
9476
- val = val + "px";
9477
- }
9478
- element.style[key] = val;
9479
- }
9480
- return element;
9481
- }
9482
-
9483
- function div(className) {
9484
- var div = document.createElement('div');
9485
- div.className = className;
9486
- return div;
9487
- }
9488
-
9489
- var elMatches =
9490
- typeof Element !== 'undefined' &&
9491
- (Element.prototype.matches ||
9492
- Element.prototype.webkitMatchesSelector ||
9493
- Element.prototype.mozMatchesSelector ||
9494
- Element.prototype.msMatchesSelector);
9495
-
9496
- function matches(element, query) {
9497
- if (!elMatches) {
9498
- throw new Error('No element matching method supported');
9499
- }
9500
-
9501
- return elMatches.call(element, query);
9502
- }
9503
-
9504
- function remove(element) {
9505
- if (element.remove) {
9506
- element.remove();
9507
- } else {
9508
- if (element.parentNode) {
9509
- element.parentNode.removeChild(element);
9510
- }
9511
- }
9512
- }
9513
-
9514
- function queryChildren(element, selector) {
9515
- return Array.prototype.filter.call(element.children, function (child) { return matches(child, selector); }
9516
- );
9517
- }
9518
-
9519
- var cls = {
9520
- main: 'ps',
9521
- rtl: 'ps__rtl',
9522
- element: {
9523
- thumb: function (x) { return ("ps__thumb-" + x); },
9524
- rail: function (x) { return ("ps__rail-" + x); },
9525
- consuming: 'ps__child--consume',
9526
- },
9527
- state: {
9528
- focus: 'ps--focus',
9529
- clicking: 'ps--clicking',
9530
- active: function (x) { return ("ps--active-" + x); },
9531
- scrolling: function (x) { return ("ps--scrolling-" + x); },
9532
- },
9533
- };
9534
-
9535
- /*
9536
- * Helper methods
9537
- */
9538
- var scrollingClassTimeout = { x: null, y: null };
9539
-
9540
- function addScrollingClass(i, x) {
9541
- var classList = i.element.classList;
9542
- var className = cls.state.scrolling(x);
9543
-
9544
- if (classList.contains(className)) {
9545
- clearTimeout(scrollingClassTimeout[x]);
9546
- } else {
9547
- classList.add(className);
9548
- }
9549
- }
9550
-
9551
- function removeScrollingClass(i, x) {
9552
- scrollingClassTimeout[x] = setTimeout(
9553
- function () { return i.isAlive && i.element.classList.remove(cls.state.scrolling(x)); },
9554
- i.settings.scrollingThreshold
9555
- );
9556
- }
9557
-
9558
- function setScrollingClassInstantly(i, x) {
9559
- addScrollingClass(i, x);
9560
- removeScrollingClass(i, x);
9561
- }
9562
-
9563
- var EventElement = function EventElement(element) {
9564
- this.element = element;
9565
- this.handlers = {};
9566
- };
9567
-
9568
- var prototypeAccessors = { isEmpty: { configurable: true } };
9569
-
9570
- EventElement.prototype.bind = function bind (eventName, handler) {
9571
- if (typeof this.handlers[eventName] === 'undefined') {
9572
- this.handlers[eventName] = [];
9573
- }
9574
- this.handlers[eventName].push(handler);
9575
- this.element.addEventListener(eventName, handler, false);
9576
- };
9577
-
9578
- EventElement.prototype.unbind = function unbind (eventName, target) {
9579
- var this$1 = this;
9580
-
9581
- this.handlers[eventName] = this.handlers[eventName].filter(function (handler) {
9582
- if (target && handler !== target) {
9583
- return true;
9584
- }
9585
- this$1.element.removeEventListener(eventName, handler, false);
9586
- return false;
9587
- });
9588
- };
9589
-
9590
- EventElement.prototype.unbindAll = function unbindAll () {
9591
- var this$1 = this;
9592
-
9593
- for (var name in this$1.handlers) {
9594
- this$1.unbind(name);
9595
- }
9596
- };
9597
-
9598
- prototypeAccessors.isEmpty.get = function () {
9599
- var this$1 = this;
9600
-
9601
- return Object.keys(this.handlers).every(
9602
- function (key) { return this$1.handlers[key].length === 0; }
9603
- );
9604
- };
9605
-
9606
- Object.defineProperties( EventElement.prototype, prototypeAccessors );
9607
-
9608
- var EventManager = function EventManager() {
9609
- this.eventElements = [];
9610
- };
9611
-
9612
- EventManager.prototype.eventElement = function eventElement (element) {
9613
- var ee = this.eventElements.filter(function (ee) { return ee.element === element; })[0];
9614
- if (!ee) {
9615
- ee = new EventElement(element);
9616
- this.eventElements.push(ee);
9617
- }
9618
- return ee;
9619
- };
9620
-
9621
- EventManager.prototype.bind = function bind (element, eventName, handler) {
9622
- this.eventElement(element).bind(eventName, handler);
9623
- };
9624
-
9625
- EventManager.prototype.unbind = function unbind (element, eventName, handler) {
9626
- var ee = this.eventElement(element);
9627
- ee.unbind(eventName, handler);
9628
-
9629
- if (ee.isEmpty) {
9630
- // remove
9631
- this.eventElements.splice(this.eventElements.indexOf(ee), 1);
9632
- }
9633
- };
9634
-
9635
- EventManager.prototype.unbindAll = function unbindAll () {
9636
- this.eventElements.forEach(function (e) { return e.unbindAll(); });
9637
- this.eventElements = [];
9638
- };
9639
-
9640
- EventManager.prototype.once = function once (element, eventName, handler) {
9641
- var ee = this.eventElement(element);
9642
- var onceHandler = function (evt) {
9643
- ee.unbind(eventName, onceHandler);
9644
- handler(evt);
9645
- };
9646
- ee.bind(eventName, onceHandler);
9647
- };
9648
-
9649
- function createEvent(name) {
9650
- if (typeof window.CustomEvent === 'function') {
9651
- return new CustomEvent(name);
9652
- } else {
9653
- var evt = document.createEvent('CustomEvent');
9654
- evt.initCustomEvent(name, false, false, undefined);
9655
- return evt;
9656
- }
9657
- }
9658
-
9659
- function processScrollDiff(
9660
- i,
9661
- axis,
9662
- diff,
9663
- useScrollingClass,
9664
- forceFireReachEvent
9665
- ) {
9666
- if ( useScrollingClass === void 0 ) { useScrollingClass = true; }
9667
- if ( forceFireReachEvent === void 0 ) { forceFireReachEvent = false; }
9668
-
9669
- var fields;
9670
- if (axis === 'top') {
9671
- fields = [
9672
- 'contentHeight',
9673
- 'containerHeight',
9674
- 'scrollTop',
9675
- 'y',
9676
- 'up',
9677
- 'down' ];
9678
- } else if (axis === 'left') {
9679
- fields = [
9680
- 'contentWidth',
9681
- 'containerWidth',
9682
- 'scrollLeft',
9683
- 'x',
9684
- 'left',
9685
- 'right' ];
9686
- } else {
9687
- throw new Error('A proper axis should be provided');
9688
- }
9689
-
9690
- processScrollDiff$1(i, diff, fields, useScrollingClass, forceFireReachEvent);
9691
- }
9692
-
9693
- function processScrollDiff$1(
9694
- i,
9695
- diff,
9696
- ref,
9697
- useScrollingClass,
9698
- forceFireReachEvent
9699
- ) {
9700
- var contentHeight = ref[0];
9701
- var containerHeight = ref[1];
9702
- var scrollTop = ref[2];
9703
- var y = ref[3];
9704
- var up = ref[4];
9705
- var down = ref[5];
9706
- if ( useScrollingClass === void 0 ) { useScrollingClass = true; }
9707
- if ( forceFireReachEvent === void 0 ) { forceFireReachEvent = false; }
9708
-
9709
- var element = i.element;
9710
-
9711
- // reset reach
9712
- i.reach[y] = null;
9713
-
9714
- // 1 for subpixel rounding
9715
- if (element[scrollTop] < 1) {
9716
- i.reach[y] = 'start';
9717
- }
9718
-
9719
- // 1 for subpixel rounding
9720
- if (element[scrollTop] > i[contentHeight] - i[containerHeight] - 1) {
9721
- i.reach[y] = 'end';
9722
- }
9723
-
9724
- if (diff) {
9725
- element.dispatchEvent(createEvent(("ps-scroll-" + y)));
9726
-
9727
- if (diff < 0) {
9728
- element.dispatchEvent(createEvent(("ps-scroll-" + up)));
9729
- } else if (diff > 0) {
9730
- element.dispatchEvent(createEvent(("ps-scroll-" + down)));
9731
- }
9732
-
9733
- if (useScrollingClass) {
9734
- setScrollingClassInstantly(i, y);
9735
- }
9736
- }
9737
-
9738
- if (i.reach[y] && (diff || forceFireReachEvent)) {
9739
- element.dispatchEvent(createEvent(("ps-" + y + "-reach-" + (i.reach[y]))));
9740
- }
9741
- }
9742
-
9743
- function toInt(x) {
9744
- return parseInt(x, 10) || 0;
9745
- }
9746
-
9747
- function isEditable(el) {
9748
- return (
9749
- matches(el, 'input,[contenteditable]') ||
9750
- matches(el, 'select,[contenteditable]') ||
9751
- matches(el, 'textarea,[contenteditable]') ||
9752
- matches(el, 'button,[contenteditable]')
9753
- );
9754
- }
9755
-
9756
- function outerWidth(element) {
9757
- var styles = get(element);
9758
- return (
9759
- toInt(styles.width) +
9760
- toInt(styles.paddingLeft) +
9761
- toInt(styles.paddingRight) +
9762
- toInt(styles.borderLeftWidth) +
9763
- toInt(styles.borderRightWidth)
9764
- );
9765
- }
9766
-
9767
- var env = {
9768
- isWebKit:
9769
- typeof document !== 'undefined' &&
9770
- 'WebkitAppearance' in document.documentElement.style,
9771
- supportsTouch:
9772
- typeof window !== 'undefined' &&
9773
- ('ontouchstart' in window ||
9774
- ('maxTouchPoints' in window.navigator &&
9775
- window.navigator.maxTouchPoints > 0) ||
9776
- (window.DocumentTouch && document instanceof window.DocumentTouch)),
9777
- supportsIePointer:
9778
- typeof navigator !== 'undefined' && navigator.msMaxTouchPoints,
9779
- isChrome:
9780
- typeof navigator !== 'undefined' &&
9781
- /Chrome/i.test(navigator && navigator.userAgent),
9782
- };
9783
-
9784
- function updateGeometry(i) {
9785
- var element = i.element;
9786
- var roundedScrollTop = Math.floor(element.scrollTop);
9787
- var rect = element.getBoundingClientRect();
9788
-
9789
- i.containerWidth = Math.round(rect.width);
9790
- i.containerHeight = Math.round(rect.height);
9791
-
9792
- i.contentWidth = element.scrollWidth;
9793
- i.contentHeight = element.scrollHeight;
9794
-
9795
- if (!element.contains(i.scrollbarXRail)) {
9796
- // clean up and append
9797
- queryChildren(element, cls.element.rail('x')).forEach(function (el) { return remove(el); }
9798
- );
9799
- element.appendChild(i.scrollbarXRail);
9800
- }
9801
- if (!element.contains(i.scrollbarYRail)) {
9802
- // clean up and append
9803
- queryChildren(element, cls.element.rail('y')).forEach(function (el) { return remove(el); }
9804
- );
9805
- element.appendChild(i.scrollbarYRail);
9806
- }
9807
-
9808
- if (
9809
- !i.settings.suppressScrollX &&
9810
- i.containerWidth + i.settings.scrollXMarginOffset < i.contentWidth
9811
- ) {
9812
- i.scrollbarXActive = true;
9813
- i.railXWidth = i.containerWidth - i.railXMarginWidth;
9814
- i.railXRatio = i.containerWidth / i.railXWidth;
9815
- i.scrollbarXWidth = getThumbSize(
9816
- i,
9817
- toInt((i.railXWidth * i.containerWidth) / i.contentWidth)
9818
- );
9819
- i.scrollbarXLeft = toInt(
9820
- ((i.negativeScrollAdjustment + element.scrollLeft) *
9821
- (i.railXWidth - i.scrollbarXWidth)) /
9822
- (i.contentWidth - i.containerWidth)
9823
- );
9824
- } else {
9825
- i.scrollbarXActive = false;
9826
- }
9827
-
9828
- if (
9829
- !i.settings.suppressScrollY &&
9830
- i.containerHeight + i.settings.scrollYMarginOffset < i.contentHeight
9831
- ) {
9832
- i.scrollbarYActive = true;
9833
- i.railYHeight = i.containerHeight - i.railYMarginHeight;
9834
- i.railYRatio = i.containerHeight / i.railYHeight;
9835
- i.scrollbarYHeight = getThumbSize(
9836
- i,
9837
- toInt((i.railYHeight * i.containerHeight) / i.contentHeight)
9838
- );
9839
- i.scrollbarYTop = toInt(
9840
- (roundedScrollTop * (i.railYHeight - i.scrollbarYHeight)) /
9841
- (i.contentHeight - i.containerHeight)
9842
- );
9843
- } else {
9844
- i.scrollbarYActive = false;
9845
- }
9846
-
9847
- if (i.scrollbarXLeft >= i.railXWidth - i.scrollbarXWidth) {
9848
- i.scrollbarXLeft = i.railXWidth - i.scrollbarXWidth;
9849
- }
9850
- if (i.scrollbarYTop >= i.railYHeight - i.scrollbarYHeight) {
9851
- i.scrollbarYTop = i.railYHeight - i.scrollbarYHeight;
9852
- }
9853
-
9854
- updateCss(element, i);
9855
-
9856
- if (i.scrollbarXActive) {
9857
- element.classList.add(cls.state.active('x'));
9858
- } else {
9859
- element.classList.remove(cls.state.active('x'));
9860
- i.scrollbarXWidth = 0;
9861
- i.scrollbarXLeft = 0;
9862
- element.scrollLeft = i.isRtl === true ? i.contentWidth : 0;
9863
- }
9864
- if (i.scrollbarYActive) {
9865
- element.classList.add(cls.state.active('y'));
9866
- } else {
9867
- element.classList.remove(cls.state.active('y'));
9868
- i.scrollbarYHeight = 0;
9869
- i.scrollbarYTop = 0;
9870
- element.scrollTop = 0;
9871
- }
9872
- }
9873
-
9874
- function getThumbSize(i, thumbSize) {
9875
- if (i.settings.minScrollbarLength) {
9876
- thumbSize = Math.max(thumbSize, i.settings.minScrollbarLength);
9877
- }
9878
- if (i.settings.maxScrollbarLength) {
9879
- thumbSize = Math.min(thumbSize, i.settings.maxScrollbarLength);
9880
- }
9881
- return thumbSize;
9882
- }
9883
-
9884
- function updateCss(element, i) {
9885
- var xRailOffset = { width: i.railXWidth };
9886
- var roundedScrollTop = Math.floor(element.scrollTop);
9887
-
9888
- if (i.isRtl) {
9889
- xRailOffset.left =
9890
- i.negativeScrollAdjustment +
9891
- element.scrollLeft +
9892
- i.containerWidth -
9893
- i.contentWidth;
9894
- } else {
9895
- xRailOffset.left = element.scrollLeft;
9896
- }
9897
- if (i.isScrollbarXUsingBottom) {
9898
- xRailOffset.bottom = i.scrollbarXBottom - roundedScrollTop;
9899
- } else {
9900
- xRailOffset.top = i.scrollbarXTop + roundedScrollTop;
9901
- }
9902
- set(i.scrollbarXRail, xRailOffset);
9903
-
9904
- var yRailOffset = { top: roundedScrollTop, height: i.railYHeight };
9905
- if (i.isScrollbarYUsingRight) {
9906
- if (i.isRtl) {
9907
- yRailOffset.right =
9908
- i.contentWidth -
9909
- (i.negativeScrollAdjustment + element.scrollLeft) -
9910
- i.scrollbarYRight -
9911
- i.scrollbarYOuterWidth -
9912
- 9;
9913
- } else {
9914
- yRailOffset.right = i.scrollbarYRight - element.scrollLeft;
9915
- }
9916
- } else {
9917
- if (i.isRtl) {
9918
- yRailOffset.left =
9919
- i.negativeScrollAdjustment +
9920
- element.scrollLeft +
9921
- i.containerWidth * 2 -
9922
- i.contentWidth -
9923
- i.scrollbarYLeft -
9924
- i.scrollbarYOuterWidth;
9925
- } else {
9926
- yRailOffset.left = i.scrollbarYLeft + element.scrollLeft;
9927
- }
9928
- }
9929
- set(i.scrollbarYRail, yRailOffset);
9930
-
9931
- set(i.scrollbarX, {
9932
- left: i.scrollbarXLeft,
9933
- width: i.scrollbarXWidth - i.railBorderXWidth,
9934
- });
9935
- set(i.scrollbarY, {
9936
- top: i.scrollbarYTop,
9937
- height: i.scrollbarYHeight - i.railBorderYWidth,
9938
- });
9939
- }
9940
-
9941
- function clickRail(i) {
9942
- var element = i.element;
9943
-
9944
- i.event.bind(i.scrollbarY, 'mousedown', function (e) { return e.stopPropagation(); });
9945
- i.event.bind(i.scrollbarYRail, 'mousedown', function (e) {
9946
- var positionTop =
9947
- e.pageY -
9948
- window.pageYOffset -
9949
- i.scrollbarYRail.getBoundingClientRect().top;
9950
- var direction = positionTop > i.scrollbarYTop ? 1 : -1;
9951
-
9952
- i.element.scrollTop += direction * i.containerHeight;
9953
- updateGeometry(i);
9954
-
9955
- e.stopPropagation();
9956
- });
9957
-
9958
- i.event.bind(i.scrollbarX, 'mousedown', function (e) { return e.stopPropagation(); });
9959
- i.event.bind(i.scrollbarXRail, 'mousedown', function (e) {
9960
- var positionLeft =
9961
- e.pageX -
9962
- window.pageXOffset -
9963
- i.scrollbarXRail.getBoundingClientRect().left;
9964
- var direction = positionLeft > i.scrollbarXLeft ? 1 : -1;
9965
-
9966
- i.element.scrollLeft += direction * i.containerWidth;
9967
- updateGeometry(i);
9968
-
9969
- e.stopPropagation();
9970
- });
9971
- }
9972
-
9973
- function dragThumb(i) {
9974
- bindMouseScrollHandler(i, [
9975
- 'containerWidth',
9976
- 'contentWidth',
9977
- 'pageX',
9978
- 'railXWidth',
9979
- 'scrollbarX',
9980
- 'scrollbarXWidth',
9981
- 'scrollLeft',
9982
- 'x',
9983
- 'scrollbarXRail' ]);
9984
- bindMouseScrollHandler(i, [
9985
- 'containerHeight',
9986
- 'contentHeight',
9987
- 'pageY',
9988
- 'railYHeight',
9989
- 'scrollbarY',
9990
- 'scrollbarYHeight',
9991
- 'scrollTop',
9992
- 'y',
9993
- 'scrollbarYRail' ]);
9994
- }
9995
-
9996
- function bindMouseScrollHandler(
9997
- i,
9998
- ref
9999
- ) {
10000
- var containerHeight = ref[0];
10001
- var contentHeight = ref[1];
10002
- var pageY = ref[2];
10003
- var railYHeight = ref[3];
10004
- var scrollbarY = ref[4];
10005
- var scrollbarYHeight = ref[5];
10006
- var scrollTop = ref[6];
10007
- var y = ref[7];
10008
- var scrollbarYRail = ref[8];
10009
-
10010
- var element = i.element;
10011
-
10012
- var startingScrollTop = null;
10013
- var startingMousePageY = null;
10014
- var scrollBy = null;
10015
-
10016
- function mouseMoveHandler(e) {
10017
- if (e.touches && e.touches[0]) {
10018
- e[pageY] = e.touches[0].pageY;
10019
- }
10020
- element[scrollTop] =
10021
- startingScrollTop + scrollBy * (e[pageY] - startingMousePageY);
10022
- addScrollingClass(i, y);
10023
- updateGeometry(i);
10024
-
10025
- e.stopPropagation();
10026
- if (e.type.startsWith('touch') && e.changedTouches.length > 1) {
10027
- e.preventDefault();
10028
- }
10029
- }
10030
-
10031
- function mouseUpHandler() {
10032
- removeScrollingClass(i, y);
10033
- i[scrollbarYRail].classList.remove(cls.state.clicking);
10034
- i.event.unbind(i.ownerDocument, 'mousemove', mouseMoveHandler);
10035
- }
10036
-
10037
- function bindMoves(e, touchMode) {
10038
- startingScrollTop = element[scrollTop];
10039
- if (touchMode && e.touches) {
10040
- e[pageY] = e.touches[0].pageY;
10041
- }
10042
- startingMousePageY = e[pageY];
10043
- scrollBy =
10044
- (i[contentHeight] - i[containerHeight]) /
10045
- (i[railYHeight] - i[scrollbarYHeight]);
10046
- if (!touchMode) {
10047
- i.event.bind(i.ownerDocument, 'mousemove', mouseMoveHandler);
10048
- i.event.once(i.ownerDocument, 'mouseup', mouseUpHandler);
10049
- e.preventDefault();
10050
- } else {
10051
- i.event.bind(i.ownerDocument, 'touchmove', mouseMoveHandler);
10052
- }
10053
-
10054
- i[scrollbarYRail].classList.add(cls.state.clicking);
10055
-
10056
- e.stopPropagation();
10057
- }
10058
-
10059
- i.event.bind(i[scrollbarY], 'mousedown', function (e) {
10060
- bindMoves(e);
10061
- });
10062
- i.event.bind(i[scrollbarY], 'touchstart', function (e) {
10063
- bindMoves(e, true);
10064
- });
10065
- }
10066
-
10067
- function keyboard(i) {
10068
- var element = i.element;
10069
-
10070
- var elementHovered = function () { return matches(element, ':hover'); };
10071
- var scrollbarFocused = function () { return matches(i.scrollbarX, ':focus') || matches(i.scrollbarY, ':focus'); };
10072
-
10073
- function shouldPreventDefault(deltaX, deltaY) {
10074
- var scrollTop = Math.floor(element.scrollTop);
10075
- if (deltaX === 0) {
10076
- if (!i.scrollbarYActive) {
10077
- return false;
10078
- }
10079
- if (
10080
- (scrollTop === 0 && deltaY > 0) ||
10081
- (scrollTop >= i.contentHeight - i.containerHeight && deltaY < 0)
10082
- ) {
10083
- return !i.settings.wheelPropagation;
10084
- }
10085
- }
10086
-
10087
- var scrollLeft = element.scrollLeft;
10088
- if (deltaY === 0) {
10089
- if (!i.scrollbarXActive) {
10090
- return false;
10091
- }
10092
- if (
10093
- (scrollLeft === 0 && deltaX < 0) ||
10094
- (scrollLeft >= i.contentWidth - i.containerWidth && deltaX > 0)
10095
- ) {
10096
- return !i.settings.wheelPropagation;
10097
- }
10098
- }
10099
- return true;
10100
- }
10101
-
10102
- i.event.bind(i.ownerDocument, 'keydown', function (e) {
10103
- if (
10104
- (e.isDefaultPrevented && e.isDefaultPrevented()) ||
10105
- e.defaultPrevented
10106
- ) {
10107
- return;
10108
- }
10109
-
10110
- if (!elementHovered() && !scrollbarFocused()) {
10111
- return;
10112
- }
10113
-
10114
- var activeElement = document.activeElement
10115
- ? document.activeElement
10116
- : i.ownerDocument.activeElement;
10117
- if (activeElement) {
10118
- if (activeElement.tagName === 'IFRAME') {
10119
- activeElement = activeElement.contentDocument.activeElement;
10120
- } else {
10121
- // go deeper if element is a webcomponent
10122
- while (activeElement.shadowRoot) {
10123
- activeElement = activeElement.shadowRoot.activeElement;
10124
- }
10125
- }
10126
- if (isEditable(activeElement)) {
10127
- return;
10128
- }
10129
- }
10130
-
10131
- var deltaX = 0;
10132
- var deltaY = 0;
10133
-
10134
- switch (e.which) {
10135
- case 37: // left
10136
- if (e.metaKey) {
10137
- deltaX = -i.contentWidth;
10138
- } else if (e.altKey) {
10139
- deltaX = -i.containerWidth;
10140
- } else {
10141
- deltaX = -30;
10142
- }
10143
- break;
10144
- case 38: // up
10145
- if (e.metaKey) {
10146
- deltaY = i.contentHeight;
10147
- } else if (e.altKey) {
10148
- deltaY = i.containerHeight;
10149
- } else {
10150
- deltaY = 30;
10151
- }
10152
- break;
10153
- case 39: // right
10154
- if (e.metaKey) {
10155
- deltaX = i.contentWidth;
10156
- } else if (e.altKey) {
10157
- deltaX = i.containerWidth;
10158
- } else {
10159
- deltaX = 30;
10160
- }
10161
- break;
10162
- case 40: // down
10163
- if (e.metaKey) {
10164
- deltaY = -i.contentHeight;
10165
- } else if (e.altKey) {
10166
- deltaY = -i.containerHeight;
10167
- } else {
10168
- deltaY = -30;
10169
- }
10170
- break;
10171
- case 32: // space bar
10172
- if (e.shiftKey) {
10173
- deltaY = i.containerHeight;
10174
- } else {
10175
- deltaY = -i.containerHeight;
10176
- }
10177
- break;
10178
- case 33: // page up
10179
- deltaY = i.containerHeight;
10180
- break;
10181
- case 34: // page down
10182
- deltaY = -i.containerHeight;
10183
- break;
10184
- case 36: // home
10185
- deltaY = i.contentHeight;
10186
- break;
10187
- case 35: // end
10188
- deltaY = -i.contentHeight;
10189
- break;
10190
- default:
10191
- return;
10192
- }
10193
-
10194
- if (i.settings.suppressScrollX && deltaX !== 0) {
10195
- return;
10196
- }
10197
- if (i.settings.suppressScrollY && deltaY !== 0) {
10198
- return;
10199
- }
10200
-
10201
- element.scrollTop -= deltaY;
10202
- element.scrollLeft += deltaX;
10203
- updateGeometry(i);
10204
-
10205
- if (shouldPreventDefault(deltaX, deltaY)) {
10206
- e.preventDefault();
10207
- }
10208
- });
10209
- }
10210
-
10211
- function wheel(i) {
10212
- var element = i.element;
10213
-
10214
- function shouldPreventDefault(deltaX, deltaY) {
10215
- var roundedScrollTop = Math.floor(element.scrollTop);
10216
- var isTop = element.scrollTop === 0;
10217
- var isBottom =
10218
- roundedScrollTop + element.offsetHeight === element.scrollHeight;
10219
- var isLeft = element.scrollLeft === 0;
10220
- var isRight =
10221
- element.scrollLeft + element.offsetWidth === element.scrollWidth;
10222
-
10223
- var hitsBound;
10224
-
10225
- // pick axis with primary direction
10226
- if (Math.abs(deltaY) > Math.abs(deltaX)) {
10227
- hitsBound = isTop || isBottom;
10228
- } else {
10229
- hitsBound = isLeft || isRight;
10230
- }
10231
-
10232
- return hitsBound ? !i.settings.wheelPropagation : true;
10233
- }
10234
-
10235
- function getDeltaFromEvent(e) {
10236
- var deltaX = e.deltaX;
10237
- var deltaY = -1 * e.deltaY;
10238
-
10239
- if (typeof deltaX === 'undefined' || typeof deltaY === 'undefined') {
10240
- // OS X Safari
10241
- deltaX = (-1 * e.wheelDeltaX) / 6;
10242
- deltaY = e.wheelDeltaY / 6;
10243
- }
10244
-
10245
- if (e.deltaMode && e.deltaMode === 1) {
10246
- // Firefox in deltaMode 1: Line scrolling
10247
- deltaX *= 10;
10248
- deltaY *= 10;
10249
- }
10250
-
10251
- if (deltaX !== deltaX && deltaY !== deltaY /* NaN checks */) {
10252
- // IE in some mouse drivers
10253
- deltaX = 0;
10254
- deltaY = e.wheelDelta;
10255
- }
10256
-
10257
- if (e.shiftKey) {
10258
- // reverse axis with shift key
10259
- return [-deltaY, -deltaX];
10260
- }
10261
- return [deltaX, deltaY];
10262
- }
10263
-
10264
- function shouldBeConsumedByChild(target, deltaX, deltaY) {
10265
- // FIXME: this is a workaround for <select> issue in FF and IE #571
10266
- if (!env.isWebKit && element.querySelector('select:focus')) {
10267
- return true;
10268
- }
10269
-
10270
- if (!element.contains(target)) {
10271
- return false;
10272
- }
10273
-
10274
- var cursor = target;
10275
-
10276
- while (cursor && cursor !== element) {
10277
- if (cursor.classList.contains(cls.element.consuming)) {
10278
- return true;
10279
- }
10280
-
10281
- var style = get(cursor);
10282
-
10283
- // if deltaY && vertical scrollable
10284
- if (deltaY && style.overflowY.match(/(scroll|auto)/)) {
10285
- var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;
10286
- if (maxScrollTop > 0) {
10287
- if (
10288
- (cursor.scrollTop > 0 && deltaY < 0) ||
10289
- (cursor.scrollTop < maxScrollTop && deltaY > 0)
10290
- ) {
10291
- return true;
10292
- }
10293
- }
10294
- }
10295
- // if deltaX && horizontal scrollable
10296
- if (deltaX && style.overflowX.match(/(scroll|auto)/)) {
10297
- var maxScrollLeft = cursor.scrollWidth - cursor.clientWidth;
10298
- if (maxScrollLeft > 0) {
10299
- if (
10300
- (cursor.scrollLeft > 0 && deltaX < 0) ||
10301
- (cursor.scrollLeft < maxScrollLeft && deltaX > 0)
10302
- ) {
10303
- return true;
10304
- }
10305
- }
10306
- }
10307
-
10308
- cursor = cursor.parentNode;
10309
- }
10310
-
10311
- return false;
10312
- }
10313
-
10314
- function mousewheelHandler(e) {
10315
- var ref = getDeltaFromEvent(e);
10316
- var deltaX = ref[0];
10317
- var deltaY = ref[1];
10318
-
10319
- if (shouldBeConsumedByChild(e.target, deltaX, deltaY)) {
10320
- return;
10321
- }
10322
-
10323
- var shouldPrevent = false;
10324
- if (!i.settings.useBothWheelAxes) {
10325
- // deltaX will only be used for horizontal scrolling and deltaY will
10326
- // only be used for vertical scrolling - this is the default
10327
- element.scrollTop -= deltaY * i.settings.wheelSpeed;
10328
- element.scrollLeft += deltaX * i.settings.wheelSpeed;
10329
- } else if (i.scrollbarYActive && !i.scrollbarXActive) {
10330
- // only vertical scrollbar is active and useBothWheelAxes option is
10331
- // active, so let's scroll vertical bar using both mouse wheel axes
10332
- if (deltaY) {
10333
- element.scrollTop -= deltaY * i.settings.wheelSpeed;
10334
- } else {
10335
- element.scrollTop += deltaX * i.settings.wheelSpeed;
10336
- }
10337
- shouldPrevent = true;
10338
- } else if (i.scrollbarXActive && !i.scrollbarYActive) {
10339
- // useBothWheelAxes and only horizontal bar is active, so use both
10340
- // wheel axes for horizontal bar
10341
- if (deltaX) {
10342
- element.scrollLeft += deltaX * i.settings.wheelSpeed;
10343
- } else {
10344
- element.scrollLeft -= deltaY * i.settings.wheelSpeed;
10345
- }
10346
- shouldPrevent = true;
10347
- }
10348
-
10349
- updateGeometry(i);
10350
-
10351
- shouldPrevent = shouldPrevent || shouldPreventDefault(deltaX, deltaY);
10352
- if (shouldPrevent && !e.ctrlKey) {
10353
- e.stopPropagation();
10354
- e.preventDefault();
10355
- }
10356
- }
10357
-
10358
- if (typeof window.onwheel !== 'undefined') {
10359
- i.event.bind(element, 'wheel', mousewheelHandler);
10360
- } else if (typeof window.onmousewheel !== 'undefined') {
10361
- i.event.bind(element, 'mousewheel', mousewheelHandler);
10362
- }
10363
- }
10364
-
10365
- function touch(i) {
10366
- if (!env.supportsTouch && !env.supportsIePointer) {
10367
- return;
10368
- }
10369
-
10370
- var element = i.element;
10371
-
10372
- function shouldPrevent(deltaX, deltaY) {
10373
- var scrollTop = Math.floor(element.scrollTop);
10374
- var scrollLeft = element.scrollLeft;
10375
- var magnitudeX = Math.abs(deltaX);
10376
- var magnitudeY = Math.abs(deltaY);
10377
-
10378
- if (magnitudeY > magnitudeX) {
10379
- // user is perhaps trying to swipe up/down the page
10380
-
10381
- if (
10382
- (deltaY < 0 && scrollTop === i.contentHeight - i.containerHeight) ||
10383
- (deltaY > 0 && scrollTop === 0)
10384
- ) {
10385
- // set prevent for mobile Chrome refresh
10386
- return window.scrollY === 0 && deltaY > 0 && env.isChrome;
10387
- }
10388
- } else if (magnitudeX > magnitudeY) {
10389
- // user is perhaps trying to swipe left/right across the page
10390
-
10391
- if (
10392
- (deltaX < 0 && scrollLeft === i.contentWidth - i.containerWidth) ||
10393
- (deltaX > 0 && scrollLeft === 0)
10394
- ) {
10395
- return true;
10396
- }
10397
- }
10398
-
10399
- return true;
10400
- }
10401
-
10402
- function applyTouchMove(differenceX, differenceY) {
10403
- element.scrollTop -= differenceY;
10404
- element.scrollLeft -= differenceX;
10405
-
10406
- updateGeometry(i);
10407
- }
10408
-
10409
- var startOffset = {};
10410
- var startTime = 0;
10411
- var speed = {};
10412
- var easingLoop = null;
10413
-
10414
- function getTouch(e) {
10415
- if (e.targetTouches) {
10416
- return e.targetTouches[0];
10417
- } else {
10418
- // Maybe IE pointer
10419
- return e;
10420
- }
10421
- }
10422
-
10423
- function shouldHandle(e) {
10424
- if (e.pointerType && e.pointerType === 'pen' && e.buttons === 0) {
10425
- return false;
10426
- }
10427
- if (e.targetTouches && e.targetTouches.length === 1) {
10428
- return true;
10429
- }
10430
- if (
10431
- e.pointerType &&
10432
- e.pointerType !== 'mouse' &&
10433
- e.pointerType !== e.MSPOINTER_TYPE_MOUSE
10434
- ) {
10435
- return true;
10436
- }
10437
- return false;
10438
- }
10439
-
10440
- function touchStart(e) {
10441
- if (!shouldHandle(e)) {
10442
- return;
10443
- }
10444
-
10445
- var touch = getTouch(e);
10446
-
10447
- startOffset.pageX = touch.pageX;
10448
- startOffset.pageY = touch.pageY;
10449
-
10450
- startTime = new Date().getTime();
10451
-
10452
- if (easingLoop !== null) {
10453
- clearInterval(easingLoop);
10454
- }
10455
- }
10456
-
10457
- function shouldBeConsumedByChild(target, deltaX, deltaY) {
10458
- if (!element.contains(target)) {
10459
- return false;
10460
- }
10461
-
10462
- var cursor = target;
10463
-
10464
- while (cursor && cursor !== element) {
10465
- if (cursor.classList.contains(cls.element.consuming)) {
10466
- return true;
10467
- }
10468
-
10469
- var style = get(cursor);
10470
-
10471
- // if deltaY && vertical scrollable
10472
- if (deltaY && style.overflowY.match(/(scroll|auto)/)) {
10473
- var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;
10474
- if (maxScrollTop > 0) {
10475
- if (
10476
- (cursor.scrollTop > 0 && deltaY < 0) ||
10477
- (cursor.scrollTop < maxScrollTop && deltaY > 0)
10478
- ) {
10479
- return true;
10480
- }
10481
- }
10482
- }
10483
- // if deltaX && horizontal scrollable
10484
- if (deltaX && style.overflowX.match(/(scroll|auto)/)) {
10485
- var maxScrollLeft = cursor.scrollWidth - cursor.clientWidth;
10486
- if (maxScrollLeft > 0) {
10487
- if (
10488
- (cursor.scrollLeft > 0 && deltaX < 0) ||
10489
- (cursor.scrollLeft < maxScrollLeft && deltaX > 0)
10490
- ) {
10491
- return true;
10492
- }
10493
- }
10494
- }
10495
-
10496
- cursor = cursor.parentNode;
10497
- }
10498
-
10499
- return false;
10500
- }
10501
-
10502
- function touchMove(e) {
10503
- if (shouldHandle(e)) {
10504
- var touch = getTouch(e);
10505
-
10506
- var currentOffset = { pageX: touch.pageX, pageY: touch.pageY };
10507
-
10508
- var differenceX = currentOffset.pageX - startOffset.pageX;
10509
- var differenceY = currentOffset.pageY - startOffset.pageY;
10510
-
10511
- if (shouldBeConsumedByChild(e.target, differenceX, differenceY)) {
10512
- return;
10513
- }
10514
-
10515
- applyTouchMove(differenceX, differenceY);
10516
- startOffset = currentOffset;
10517
-
10518
- var currentTime = new Date().getTime();
10519
-
10520
- var timeGap = currentTime - startTime;
10521
- if (timeGap > 0) {
10522
- speed.x = differenceX / timeGap;
10523
- speed.y = differenceY / timeGap;
10524
- startTime = currentTime;
10525
- }
10526
-
10527
- if (shouldPrevent(differenceX, differenceY)) {
10528
- e.preventDefault();
10529
- }
10530
- }
10531
- }
10532
- function touchEnd() {
10533
- if (i.settings.swipeEasing) {
10534
- clearInterval(easingLoop);
10535
- easingLoop = setInterval(function() {
10536
- if (i.isInitialized) {
10537
- clearInterval(easingLoop);
10538
- return;
10539
- }
10540
-
10541
- if (!speed.x && !speed.y) {
10542
- clearInterval(easingLoop);
10543
- return;
10544
- }
10545
-
10546
- if (Math.abs(speed.x) < 0.01 && Math.abs(speed.y) < 0.01) {
10547
- clearInterval(easingLoop);
10548
- return;
10549
- }
10550
-
10551
- if (!i.element) {
10552
- clearInterval(easingLoop);
10553
- return;
10554
- }
10555
-
10556
- applyTouchMove(speed.x * 30, speed.y * 30);
10557
-
10558
- speed.x *= 0.8;
10559
- speed.y *= 0.8;
10560
- }, 10);
10561
- }
10562
- }
10563
-
10564
- if (env.supportsTouch) {
10565
- i.event.bind(element, 'touchstart', touchStart);
10566
- i.event.bind(element, 'touchmove', touchMove);
10567
- i.event.bind(element, 'touchend', touchEnd);
10568
- } else if (env.supportsIePointer) {
10569
- if (window.PointerEvent) {
10570
- i.event.bind(element, 'pointerdown', touchStart);
10571
- i.event.bind(element, 'pointermove', touchMove);
10572
- i.event.bind(element, 'pointerup', touchEnd);
10573
- } else if (window.MSPointerEvent) {
10574
- i.event.bind(element, 'MSPointerDown', touchStart);
10575
- i.event.bind(element, 'MSPointerMove', touchMove);
10576
- i.event.bind(element, 'MSPointerUp', touchEnd);
10577
- }
10578
- }
10579
- }
10580
-
10581
- var defaultSettings = function () { return ({
10582
- handlers: ['click-rail', 'drag-thumb', 'keyboard', 'wheel', 'touch'],
10583
- maxScrollbarLength: null,
10584
- minScrollbarLength: null,
10585
- scrollingThreshold: 1000,
10586
- scrollXMarginOffset: 0,
10587
- scrollYMarginOffset: 0,
10588
- suppressScrollX: false,
10589
- suppressScrollY: false,
10590
- swipeEasing: true,
10591
- useBothWheelAxes: false,
10592
- wheelPropagation: true,
10593
- wheelSpeed: 1,
10594
- }); };
10595
-
10596
- var handlers = {
10597
- 'click-rail': clickRail,
10598
- 'drag-thumb': dragThumb,
10599
- keyboard: keyboard,
10600
- wheel: wheel,
10601
- touch: touch,
10602
- };
10603
-
10604
- var PerfectScrollbar = function PerfectScrollbar(element, userSettings) {
10605
- var this$2 = this;
10606
-
10607
- var this$1 = this;
10608
- if ( userSettings === void 0 ) { userSettings = {}; }
10609
-
10610
- if (typeof element === 'string') {
10611
- element = document.querySelector(element);
10612
- }
10613
-
10614
- if (!element || !element.nodeName) {
10615
- throw new Error('no element is specified to initialize PerfectScrollbar');
10616
- }
10617
-
10618
- this.element = element;
10619
-
10620
- element.classList.add(cls.main);
10621
-
10622
- this.settings = defaultSettings();
10623
- for (var key in userSettings) {
10624
- this$2.settings[key] = userSettings[key];
10625
- }
10626
-
10627
- this.containerWidth = null;
10628
- this.containerHeight = null;
10629
- this.contentWidth = null;
10630
- this.contentHeight = null;
10631
-
10632
- var focus = function () { return element.classList.add(cls.state.focus); };
10633
- var blur = function () { return element.classList.remove(cls.state.focus); };
10634
-
10635
- this.isRtl = get(element).direction === 'rtl';
10636
- if (this.isRtl === true) {
10637
- element.classList.add(cls.rtl);
10638
- }
10639
- this.isNegativeScroll = (function () {
10640
- var originalScrollLeft = element.scrollLeft;
10641
- var result = null;
10642
- element.scrollLeft = -1;
10643
- result = element.scrollLeft < 0;
10644
- element.scrollLeft = originalScrollLeft;
10645
- return result;
10646
- })();
10647
- this.negativeScrollAdjustment = this.isNegativeScroll
10648
- ? element.scrollWidth - element.clientWidth
10649
- : 0;
10650
- this.event = new EventManager();
10651
- this.ownerDocument = element.ownerDocument || document;
10652
-
10653
- this.scrollbarXRail = div(cls.element.rail('x'));
10654
- element.appendChild(this.scrollbarXRail);
10655
- this.scrollbarX = div(cls.element.thumb('x'));
10656
- this.scrollbarXRail.appendChild(this.scrollbarX);
10657
- this.scrollbarX.setAttribute('tabindex', 0);
10658
- this.event.bind(this.scrollbarX, 'focus', focus);
10659
- this.event.bind(this.scrollbarX, 'blur', blur);
10660
- this.scrollbarXActive = null;
10661
- this.scrollbarXWidth = null;
10662
- this.scrollbarXLeft = null;
10663
- var railXStyle = get(this.scrollbarXRail);
10664
- this.scrollbarXBottom = parseInt(railXStyle.bottom, 10);
10665
- if (isNaN(this.scrollbarXBottom)) {
10666
- this.isScrollbarXUsingBottom = false;
10667
- this.scrollbarXTop = toInt(railXStyle.top);
10668
- } else {
10669
- this.isScrollbarXUsingBottom = true;
10670
- }
10671
- this.railBorderXWidth =
10672
- toInt(railXStyle.borderLeftWidth) + toInt(railXStyle.borderRightWidth);
10673
- // Set rail to display:block to calculate margins
10674
- set(this.scrollbarXRail, { display: 'block' });
10675
- this.railXMarginWidth =
10676
- toInt(railXStyle.marginLeft) + toInt(railXStyle.marginRight);
10677
- set(this.scrollbarXRail, { display: '' });
10678
- this.railXWidth = null;
10679
- this.railXRatio = null;
10680
-
10681
- this.scrollbarYRail = div(cls.element.rail('y'));
10682
- element.appendChild(this.scrollbarYRail);
10683
- this.scrollbarY = div(cls.element.thumb('y'));
10684
- this.scrollbarYRail.appendChild(this.scrollbarY);
10685
- this.scrollbarY.setAttribute('tabindex', 0);
10686
- this.event.bind(this.scrollbarY, 'focus', focus);
10687
- this.event.bind(this.scrollbarY, 'blur', blur);
10688
- this.scrollbarYActive = null;
10689
- this.scrollbarYHeight = null;
10690
- this.scrollbarYTop = null;
10691
- var railYStyle = get(this.scrollbarYRail);
10692
- this.scrollbarYRight = parseInt(railYStyle.right, 10);
10693
- if (isNaN(this.scrollbarYRight)) {
10694
- this.isScrollbarYUsingRight = false;
10695
- this.scrollbarYLeft = toInt(railYStyle.left);
10696
- } else {
10697
- this.isScrollbarYUsingRight = true;
10698
- }
10699
- this.scrollbarYOuterWidth = this.isRtl ? outerWidth(this.scrollbarY) : null;
10700
- this.railBorderYWidth =
10701
- toInt(railYStyle.borderTopWidth) + toInt(railYStyle.borderBottomWidth);
10702
- set(this.scrollbarYRail, { display: 'block' });
10703
- this.railYMarginHeight =
10704
- toInt(railYStyle.marginTop) + toInt(railYStyle.marginBottom);
10705
- set(this.scrollbarYRail, { display: '' });
10706
- this.railYHeight = null;
10707
- this.railYRatio = null;
10708
-
10709
- this.reach = {
10710
- x:
10711
- element.scrollLeft <= 0
10712
- ? 'start'
10713
- : element.scrollLeft >= this.contentWidth - this.containerWidth
10714
- ? 'end'
10715
- : null,
10716
- y:
10717
- element.scrollTop <= 0
10718
- ? 'start'
10719
- : element.scrollTop >= this.contentHeight - this.containerHeight
10720
- ? 'end'
10721
- : null,
10722
- };
10723
-
10724
- this.isAlive = true;
10725
-
10726
- this.settings.handlers.forEach(function (handlerName) { return handlers[handlerName](this$1); });
10727
-
10728
- this.lastScrollTop = Math.floor(element.scrollTop); // for onScroll only
10729
- this.lastScrollLeft = element.scrollLeft; // for onScroll only
10730
- this.event.bind(this.element, 'scroll', function (e) { return this$1.onScroll(e); });
10731
- updateGeometry(this);
10732
- };
10733
-
10734
- PerfectScrollbar.prototype.update = function update () {
10735
- if (!this.isAlive) {
10736
- return;
10737
- }
10738
-
10739
- // Recalcuate negative scrollLeft adjustment
10740
- this.negativeScrollAdjustment = this.isNegativeScroll
10741
- ? this.element.scrollWidth - this.element.clientWidth
10742
- : 0;
10743
-
10744
- // Recalculate rail margins
10745
- set(this.scrollbarXRail, { display: 'block' });
10746
- set(this.scrollbarYRail, { display: 'block' });
10747
- this.railXMarginWidth =
10748
- toInt(get(this.scrollbarXRail).marginLeft) +
10749
- toInt(get(this.scrollbarXRail).marginRight);
10750
- this.railYMarginHeight =
10751
- toInt(get(this.scrollbarYRail).marginTop) +
10752
- toInt(get(this.scrollbarYRail).marginBottom);
10753
-
10754
- // Hide scrollbars not to affect scrollWidth and scrollHeight
10755
- set(this.scrollbarXRail, { display: 'none' });
10756
- set(this.scrollbarYRail, { display: 'none' });
10757
-
10758
- updateGeometry(this);
10759
-
10760
- processScrollDiff(this, 'top', 0, false, true);
10761
- processScrollDiff(this, 'left', 0, false, true);
10762
-
10763
- set(this.scrollbarXRail, { display: '' });
10764
- set(this.scrollbarYRail, { display: '' });
10765
- };
10766
-
10767
- PerfectScrollbar.prototype.onScroll = function onScroll (e) {
10768
- if (!this.isAlive) {
10769
- return;
10770
- }
10771
-
10772
- updateGeometry(this);
10773
- processScrollDiff(this, 'top', this.element.scrollTop - this.lastScrollTop);
10774
- processScrollDiff(
10775
- this,
10776
- 'left',
10777
- this.element.scrollLeft - this.lastScrollLeft
10778
- );
10779
-
10780
- this.lastScrollTop = Math.floor(this.element.scrollTop);
10781
- this.lastScrollLeft = this.element.scrollLeft;
10782
- };
10783
-
10784
- PerfectScrollbar.prototype.destroy = function destroy () {
10785
- if (!this.isAlive) {
10786
- return;
10787
- }
10788
-
10789
- this.event.unbindAll();
10790
- remove(this.scrollbarX);
10791
- remove(this.scrollbarY);
10792
- remove(this.scrollbarXRail);
10793
- remove(this.scrollbarYRail);
10794
- this.removePsClasses();
10795
-
10796
- // unset elements
10797
- this.element = null;
10798
- this.scrollbarX = null;
10799
- this.scrollbarY = null;
10800
- this.scrollbarXRail = null;
10801
- this.scrollbarYRail = null;
10802
-
10803
- this.isAlive = false;
10804
- };
10805
-
10806
- PerfectScrollbar.prototype.removePsClasses = function removePsClasses () {
10807
- this.element.className = this.element.className
10808
- .split(' ')
10809
- .filter(function (name) { return !name.match(/^ps([-_].+|)$/); })
10810
- .join(' ');
10811
- };
10812
-
10813
- var PerfectScrollbar$1 = {
10814
- name: 'PerfectScrollbar',
10815
- props: {
10816
- options: {
10817
- type: Object,
10818
- required: false,
10819
- default: function () {}
10820
- },
10821
- tag: {
10822
- type: String,
10823
- required: false,
10824
- default: 'div'
10825
- },
10826
- watchOptions: {
10827
- type: Boolean,
10828
- required: false,
10829
- default: false
10830
- }
10831
- },
10832
- data: function data () {
10833
- return {
10834
- ps: null
10835
- }
10836
- },
10837
- watch: {
10838
- watchOptions: function watchOptions (shouldWatch) {
10839
- if (!shouldWatch && this.watcher) {
10840
- this.watcher();
10841
- } else {
10842
- this.createWatcher();
10843
- }
10844
- }
10845
- },
10846
- mounted: function mounted () {
10847
- this.create();
10848
-
10849
- if (this.watchOptions) {
10850
- this.createWatcher();
10851
- }
10852
- },
10853
- updated: function updated () {
10854
- var this$1 = this;
10855
-
10856
- this.$nextTick(function () {
10857
- this$1.update();
10858
- });
10859
- },
10860
- beforeDestroy: function beforeDestroy () {
10861
- this.destroy();
10862
- },
10863
- methods: {
10864
- create: function create () {
10865
- if (!(this.ps && this.$isServer)) {
10866
- this.ps = new PerfectScrollbar(this.$refs.container, this.options);
10867
- }
10868
- },
10869
- createWatcher: function createWatcher () {
10870
- var this$1 = this;
10871
-
10872
- this.watcher = this.$watch('options', function () {
10873
- this$1.destroy();
10874
- this$1.create();
10875
- }, {
10876
- deep: true
10877
- });
10878
- },
10879
- update: function update () {
10880
- if (this.ps) {
10881
- this.ps.update();
10882
- }
10883
- },
10884
- destroy: function destroy () {
10885
- if (this.ps) {
10886
- this.ps.destroy();
10887
- this.ps = null;
10888
- }
10889
- }
10890
- },
10891
- render: function render (h) {
10892
- return h(this.tag,
10893
- {
10894
- ref: 'container',
10895
- class: 'ps',
10896
- on: this.$listeners
10897
- },
10898
- this.$slots.default)
10899
- }
10900
- };
10901
-
10902
- function install (Vue, settings) {
10903
- if (settings) {
10904
- if (settings.name && typeof settings.name === 'string') {
10905
- PerfectScrollbar$1.name = settings.name;
10906
- }
10907
-
10908
- if (settings.options && typeof settings.options === 'object') {
10909
- PerfectScrollbar$1.props.options.default = function () {
10910
- return settings.options
10911
- };
10912
- }
10913
-
10914
- if (settings.tag && typeof settings.tag === 'string') {
10915
- PerfectScrollbar$1.props.tag.default = settings.tag;
10916
- }
10917
-
10918
- if (settings.watchOptions && typeof settings.watchOptions === 'boolean') {
10919
- PerfectScrollbar$1.props.watchOptions = settings.watchOptions;
10920
- }
10921
- }
10922
-
10923
- Vue.component(
10924
- PerfectScrollbar$1.name,
10925
- PerfectScrollbar$1
10926
- );
10927
- }
10928
-
10929
- exports.install = install;
10930
- exports.PerfectScrollbar = PerfectScrollbar$1;
10931
- exports.default = install;
10932
-
10933
- Object.defineProperty(exports, '__esModule', { value: true });
10934
-
10935
- })));
10936
-
10937
-
10938
9427
  /***/ }),
10939
9428
 
10940
9429
  /***/ "a6ff":
@@ -11400,13 +9889,6 @@ collapse.install = function (Vue) {
11400
9889
 
11401
9890
  /***/ }),
11402
9891
 
11403
- /***/ "c0f2":
11404
- /***/ (function(module, exports) {
11405
-
11406
- module.exports = require("vue2-perfect-scrollbar/dist/vue2-perfect-scrollbar.css");
11407
-
11408
- /***/ }),
11409
-
11410
9892
  /***/ "c167":
11411
9893
  /***/ (function(module, exports) {
11412
9894
 
@@ -14073,6 +12555,13 @@ exports.default = {
14073
12555
 
14074
12556
  /***/ }),
14075
12557
 
12558
+ /***/ "f2fe":
12559
+ /***/ (function(module, exports, __webpack_require__) {
12560
+
12561
+ // extracted by mini-css-extract-plugin
12562
+
12563
+ /***/ }),
12564
+
14076
12565
  /***/ "f3ad":
14077
12566
  /***/ (function(module, exports, __webpack_require__) {
14078
12567
 
@@ -15090,6 +13579,13 @@ module.exports = require("parse-svg-path");
15090
13579
 
15091
13580
  /***/ }),
15092
13581
 
13582
+ /***/ "f958":
13583
+ /***/ (function(module, exports, __webpack_require__) {
13584
+
13585
+ // extracted by mini-css-extract-plugin
13586
+
13587
+ /***/ }),
13588
+
15093
13589
  /***/ "f989":
15094
13590
  /***/ (function(module, exports) {
15095
13591
 
@@ -20517,13 +19013,6 @@ module.exports = function calcMarkerColorscale(gd, trace) {
20517
19013
  };
20518
19014
 
20519
19015
 
20520
- /***/ }),
20521
-
20522
- /***/ "09e0":
20523
- /***/ (function(module, exports) {
20524
-
20525
- module.exports = __webpack_require__("5889");
20526
-
20527
19016
  /***/ }),
20528
19017
 
20529
19018
  /***/ "0a5b":
@@ -22344,6 +20833,13 @@ module.exports = function setCursor(el3, csr) {
22344
20833
  };
22345
20834
 
22346
20835
 
20836
+ /***/ }),
20837
+
20838
+ /***/ "0f3a":
20839
+ /***/ (function(module, exports) {
20840
+
20841
+ module.exports = __webpack_require__("2050");
20842
+
22347
20843
  /***/ }),
22348
20844
 
22349
20845
  /***/ "0fe2":
@@ -23936,13 +22432,6 @@ module.exports = function handleAnnotationCommonDefaults(annIn, annOut, fullLayo
23936
22432
  };
23937
22433
 
23938
22434
 
23939
- /***/ }),
23940
-
23941
- /***/ "17f1":
23942
- /***/ (function(module, exports, __webpack_require__) {
23943
-
23944
- // extracted by mini-css-extract-plugin
23945
-
23946
22435
  /***/ }),
23947
22436
 
23948
22437
  /***/ "1876":
@@ -30723,12 +29212,12 @@ function () {
30723
29212
  _classCallCheck(this, Sparccsv);
30724
29213
 
30725
29214
  _defineProperty(this, "downloadCSV", function (args) {
30726
- /* Use like so:
30727
- downloadCSV({
30728
- filename: 'filename.csv',
30729
- data: [{'a': '1', 'b': '2'}],
30730
- columns: ['a','b']
30731
- });
29215
+ /* Use like so:
29216
+ downloadCSV({
29217
+ filename: 'filename.csv',
29218
+ data: [{'a': '1', 'b': '2'}],
29219
+ columns: ['a','b']
29220
+ });
30732
29221
  */
30733
29222
  var filename = args.filename || 'export.csv';
30734
29223
  var csv = Papa.unparse(args.data);
@@ -49014,17 +47503,6 @@ function reposition(gd, buttons, opts, axName, selector) {
49014
47503
  }
49015
47504
 
49016
47505
 
49017
- /***/ }),
49018
-
49019
- /***/ "8921":
49020
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
49021
-
49022
- "use strict";
49023
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PlotVuer_vue_vue_type_style_index_1_id_1c3d0ba6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("17f1");
49024
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PlotVuer_vue_vue_type_style_index_1_id_1c3d0ba6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PlotVuer_vue_vue_type_style_index_1_id_1c3d0ba6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
49025
- /* unused harmony reexport * */
49026
- /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PlotVuer_vue_vue_type_style_index_1_id_1c3d0ba6_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
49027
-
49028
47506
  /***/ }),
49029
47507
 
49030
47508
  /***/ "8b1d":
@@ -58368,6 +56846,17 @@ module.exports = {
58368
56846
  };
58369
56847
 
58370
56848
 
56849
+ /***/ }),
56850
+
56851
+ /***/ "b19e":
56852
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
56853
+
56854
+ "use strict";
56855
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PlotVuer_vue_vue_type_style_index_1_id_08e10993_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b46e");
56856
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PlotVuer_vue_vue_type_style_index_1_id_08e10993_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PlotVuer_vue_vue_type_style_index_1_id_08e10993_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
56857
+ /* unused harmony reexport * */
56858
+ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PlotVuer_vue_vue_type_style_index_1_id_08e10993_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
56859
+
58371
56860
  /***/ }),
58372
56861
 
58373
56862
  /***/ "b34d":
@@ -58931,6 +57420,13 @@ exports.applyContainerArrayChanges = function applyContainerArrayChanges(gd, np,
58931
57420
  };
58932
57421
 
58933
57422
 
57423
+ /***/ }),
57424
+
57425
+ /***/ "b46e":
57426
+ /***/ (function(module, exports, __webpack_require__) {
57427
+
57428
+ // extracted by mini-css-extract-plugin
57429
+
58934
57430
  /***/ }),
58935
57431
 
58936
57432
  /***/ "b5e2":
@@ -80194,12 +78690,12 @@ if (typeof window !== 'undefined') {
80194
78690
  // Indicate to webpack that this file can be concatenated
80195
78691
  /* harmony default export */ var setPublicPath = (null);
80196
78692
 
80197
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d1989b0-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PlotVuer.vue?vue&type=template&id=1c3d0ba6&scoped=true&
78693
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d1989b0-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PlotVuer.vue?vue&type=template&id=08e10993&scoped=true&
80198
78694
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"plotvuer_parent",attrs:{"title":_vm.collapseName}},[_c('MapSvgSpriteColor'),_c('div',{ref:"controls",staticClass:"controls"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.title))]),(_vm.plotType !== 'plotly-only')?_c('div',[_c('span',[_c('el-select',{ref:"selectBox",staticClass:"channel-select",attrs:{"multiple":"","filterable":"","collapse-tags":"","default-first-option":"","popper-append-to-body":false,"placeholder":_vm.ui.placeholderx},model:{value:(_vm.channelx),callback:function ($$v) {_vm.channelx=$$v},expression:"channelx"}},_vm._l((_vm.allChannelsX),function(item){return _c('el-option',{key:item,attrs:{"label":item,"value":item}})}),1)],1),(_vm.ui.showSecondSelector)?_c('span',[_c('el-select',{ref:"selectBox2",staticClass:"channel-select",attrs:{"multiple":"","filterable":"","collapse-tags":"","default-first-option":"","popper-append-to-body":false,"placeholder":_vm.ui.placeholdery},model:{value:(_vm.channely),callback:function ($$v) {_vm.channely=$$v},expression:"channely"}},_vm._l((_vm.allChannelsY),function(item){return _c('el-option',{key:item,attrs:{"label":item,"value":item}})}),1)],1):_vm._e(),_c('span',[_c('el-button',{staticClass:"view-heatmap-button",on:{"click":_vm.ui.buttonPlot}},[_vm._v(_vm._s(_vm.ui.button))])],1)]):_vm._e()]),_c('div',{ref:"container",staticClass:"vue-plotly"}),_c('div',{ref:"zoomControls",staticClass:"bottom-right-control"},[_c('el-popover',{attrs:{"content":"Zoom in","placement":"left","appendToBody":false,"trigger":"manual","popper-class":"plot-popper"},model:{value:(_vm.hoverVisibilities[0].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[0], "value", $$v)},expression:"hoverVisibilities[0].value"}},[_c('map-svg-icon',{staticClass:"icon-button zoomIn",attrs:{"slot":"reference","icon":"zoomIn"},nativeOn:{"click":function($event){return _vm.zoomIn()},"mouseover":function($event){return _vm.showToolitip(0)},"mouseout":function($event){return _vm.hideToolitip(0)}},slot:"reference"})],1),_c('el-popover',{attrs:{"content":"Zoom out","placement":"top-end","appendToBody":false,"trigger":"manual","popper-class":"plot-popper popper-zoomout"},model:{value:(_vm.hoverVisibilities[1].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[1], "value", $$v)},expression:"hoverVisibilities[1].value"}},[_c('map-svg-icon',{staticClass:"icon-button zoomOut",attrs:{"slot":"reference","icon":"zoomOut"},nativeOn:{"click":function($event){return _vm.zoomOut()},"mouseover":function($event){return _vm.showToolitip(1)},"mouseout":function($event){return _vm.hideToolitip(1)}},slot:"reference"})],1),_c('el-select',{staticClass:"zoomSelect",attrs:{"size":"mini","placeholder":"100%"},on:{"change":_vm.selectZoomChange},model:{value:(_vm.selectZoom),callback:function ($$v) {_vm.selectZoom=$$v},expression:"selectZoom"}},_vm._l((_vm.zoomSelect),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.label,"value":item.label}})}),1),_c('el-popover',{attrs:{"content":"Reset","placement":"top","appendToBody":false,"trigger":"manual","popper-class":"plot-popper"},model:{value:(_vm.hoverVisibilities[2].value),callback:function ($$v) {_vm.$set(_vm.hoverVisibilities[2], "value", $$v)},expression:"hoverVisibilities[2].value"}},[_c('map-svg-icon',{staticClass:"icon-button resetView",attrs:{"slot":"reference","icon":"resetZoom"},nativeOn:{"click":function($event){return _vm.resetView()},"mouseover":function($event){return _vm.showToolitip(2)},"mouseout":function($event){return _vm.hideToolitip(2)}},slot:"reference"})],1)],1)],1)}
80199
78695
  var staticRenderFns = []
80200
78696
 
80201
78697
 
80202
- // CONCATENATED MODULE: ./src/components/PlotVuer.vue?vue&type=template&id=1c3d0ba6&scoped=true&
78698
+ // CONCATENATED MODULE: ./src/components/PlotVuer.vue?vue&type=template&id=08e10993&scoped=true&
80203
78699
 
80204
78700
  // EXTERNAL MODULE: external "core-js/modules/es.symbol"
80205
78701
  var es_symbol_ = __webpack_require__("6049");
@@ -80453,6 +78949,10 @@ external_vue_default.a.use(popover_default.a);
80453
78949
  return [];
80454
78950
  }
80455
78951
  },
78952
+ layoutInput: {
78953
+ type: Object,
78954
+ default: function _default() {}
78955
+ },
80456
78956
  plotType: {
80457
78957
  type: String,
80458
78958
  default: 'heatmap'
@@ -80564,7 +79064,13 @@ external_vue_default.a.use(popover_default.a);
80564
79064
 
80565
79065
  // Send data to plotly directly if 'plotly-only' is specified
80566
79066
  if (this.plotType === 'plotly-only') {
80567
- custom_plotly.newPlot(this.$refs.container, this.dataInput, this.layout, this.getOptions());
79067
+ if (Object.keys(this.layoutInput).length !== 0) {
79068
+ // check if we have layout input
79069
+ custom_plotly.newPlot(this.$refs.container, this.dataInput, this.layoutInput, this.getOptions());
79070
+ } else {
79071
+ custom_plotly.newPlot(this.$refs.container, this.dataInput, this.layout, this.getOptions());
79072
+ }
79073
+
80568
79074
  return;
80569
79075
  } else {
80570
79076
  // Else we treat the data as if it was in csv format
@@ -80839,11 +79345,11 @@ external_vue_default.a.use(popover_default.a);
80839
79345
  });
80840
79346
  // CONCATENATED MODULE: ./src/components/PlotVuer.vue?vue&type=script&lang=js&
80841
79347
  /* harmony default export */ var components_PlotVuervue_type_script_lang_js_ = (PlotVuervue_type_script_lang_js_);
80842
- // EXTERNAL MODULE: external "element-ui/lib/theme-chalk/index.css?vue&type=style&index=0&id=1c3d0ba6&scoped=true&lang=css&"
80843
- var theme_chalkvue_type_style_index_0_id_1c3d0ba6_scoped_true_lang_css_ = __webpack_require__("09e0");
79348
+ // EXTERNAL MODULE: external "element-ui/lib/theme-chalk/index.css?vue&type=style&index=0&id=08e10993&scoped=true&lang=css&"
79349
+ var theme_chalkvue_type_style_index_0_id_08e10993_scoped_true_lang_css_ = __webpack_require__("0f3a");
80844
79350
 
80845
- // EXTERNAL MODULE: ./src/components/PlotVuer.vue?vue&type=style&index=1&id=1c3d0ba6&scoped=true&lang=css&
80846
- var PlotVuervue_type_style_index_1_id_1c3d0ba6_scoped_true_lang_css_ = __webpack_require__("8921");
79351
+ // EXTERNAL MODULE: ./src/components/PlotVuer.vue?vue&type=style&index=1&id=08e10993&scoped=true&lang=css&
79352
+ var PlotVuervue_type_style_index_1_id_08e10993_scoped_true_lang_css_ = __webpack_require__("b19e");
80847
79353
 
80848
79354
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
80849
79355
  /* globals __VUE_SSR_CONTEXT__ */
@@ -80956,7 +79462,7 @@ var component = normalizeComponent(
80956
79462
  staticRenderFns,
80957
79463
  false,
80958
79464
  null,
80959
- "1c3d0ba6",
79465
+ "08e10993",
80960
79466
  null
80961
79467
 
80962
79468
  )
@@ -83686,12 +82192,12 @@ if (typeof window !== 'undefined') {
83686
82192
  // Indicate to webpack that this file can be concatenated
83687
82193
  /* harmony default export */ var setPublicPath = (null);
83688
82194
 
83689
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2ef7ae11-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SimulationVuer.vue?vue&type=template&id=58f5e448&scoped=true&
83690
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.showUserMessage),expression:"showUserMessage"}],staticClass:"simulation-vuer",attrs:{"element-loading-text":_vm.userMessage}},[(!_vm.hasValidSimulationUiInfo && !_vm.showUserMessage)?_c('p',{staticClass:"default error"},[_c('span',{staticClass:"error"},[_vm._v("Error:")]),_vm._v(" an unknown or invalid model was provided.")]):_vm._e(),(_vm.hasValidSimulationUiInfo)?_c('div',{staticClass:"main"},[_c('div',{staticClass:"main-left"},[_c('p',{staticClass:"default name"},[_vm._v(_vm._s(_vm.name))]),_c('el-divider'),_c('p',{staticClass:"default input-parameters"},[_vm._v("Input parameters")]),_c('div',{staticClass:"input-frame"},[_c('PerfectScrollbar',{ref:"input",staticClass:"input",attrs:{"options":_vm.perfectScollbarOptions}},_vm._l((_vm.simulationUiInfo.input),function(input,index){return _c('SimulationVuerInput',{key:("input-" + index),attrs:{"defaultValue":input.defaultValue,"name":input.name,"maximumValue":input.maximumValue,"minimumValue":input.minimumValue,"possibleValues":input.possibleValues,"stepValue":input.stepValue}})}),1)],1),_c('div',{staticClass:"primary-button"},[_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":function($event){return _vm.startSimulation()}}},[_vm._v("Run Simulation")])],1),(_vm.uuid)?_c('div',{staticClass:"secondary-button"},[_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){return _vm.runOnOsparc()}}},[_vm._v("Run on oSPARC")])],1):_vm._e(),_c('div',{staticClass:"secondary-button"},[_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){return _vm.viewDataset()}}},[_vm._v("View Dataset")])],1),(_vm.uuid)?_c('p',{staticClass:"default note"},[_vm._v("Additional parameters are available on oSPARC")]):_vm._e()],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isSimulationValid),expression:"isSimulationValid"}],ref:"output",staticClass:"main-right"},_vm._l((_vm.simulationUiInfo.output.plots),function(outputPlot,index){return _c('PlotVuer',{key:("output-" + index),attrs:{"layout-input":_vm.layout[index],"dataInput":_vm.simulationData[index],"plotType":'plotly-only'}})}),1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isSimulationValid),expression:"!isSimulationValid"}],staticClass:"main-right"},[_c('p',{staticClass:"default error"},[_c('span',{staticClass:"error"},[_vm._v("Error:")]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.errorMessage)}}),_vm._v(".")])])]):_vm._e()])}
82195
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26186cda-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SimulationVuer.vue?vue&type=template&id=efe186fe&scoped=true&
82196
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.showUserMessage),expression:"showUserMessage"}],staticClass:"simulation-vuer",attrs:{"element-loading-text":_vm.userMessage}},[(!_vm.hasValidSimulationUiInfo && !_vm.showUserMessage)?_c('p',{staticClass:"default error"},[_c('span',{staticClass:"error"},[_vm._v("Error:")]),_vm._v(" an unknown or invalid model was provided.")]):_vm._e(),(_vm.hasValidSimulationUiInfo)?_c('div',{staticClass:"main"},[_c('div',{staticClass:"main-left"},[_c('p',{staticClass:"default name"},[_vm._v(_vm._s(_vm.name))]),_c('el-divider'),_c('p',{staticClass:"default input-parameters"},[_vm._v("Input parameters")]),_c('div',{staticClass:"input scrollbar"},_vm._l((_vm.simulationUiInfo.input),function(input,index){return _c('SimulationVuerInput',{key:("input-" + index),attrs:{"defaultValue":input.defaultValue,"name":input.name,"maximumValue":input.maximumValue,"minimumValue":input.minimumValue,"possibleValues":input.possibleValues,"stepValue":input.stepValue}})}),1),_c('div',{staticClass:"primary-button"},[_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":function($event){return _vm.startSimulation()}}},[_vm._v("Run Simulation")])],1),(_vm.uuid)?_c('div',{staticClass:"secondary-button"},[_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){return _vm.runOnOsparc()}}},[_vm._v("Run on oSPARC")])],1):_vm._e(),_c('div',{staticClass:"secondary-button"},[_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){return _vm.viewDataset()}}},[_vm._v("View Dataset")])],1),(_vm.uuid)?_c('p',{staticClass:"default note"},[_vm._v("Additional parameters are available on oSPARC")]):_vm._e()],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isSimulationValid),expression:"isSimulationValid"}],ref:"output",staticClass:"main-right"},_vm._l((_vm.simulationUiInfo.output.plots),function(outputPlot,index){return _c('PlotVuer',{key:("output-" + index),attrs:{"layout-input":_vm.layout[index],"dataInput":_vm.simulationData[index],"plotType":'plotly-only'}})}),1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isSimulationValid),expression:"!isSimulationValid"}],staticClass:"main-right"},[_c('p',{staticClass:"default error"},[_c('span',{staticClass:"error"},[_vm._v("Error:")]),_vm._v(" "),_c('span',{domProps:{"innerHTML":_vm._s(_vm.errorMessage)}}),_vm._v(".")])])]):_vm._e()])}
83691
82197
  var staticRenderFns = []
83692
82198
 
83693
82199
 
83694
- // CONCATENATED MODULE: ./src/components/SimulationVuer.vue?vue&type=template&id=58f5e448&scoped=true&
82200
+ // CONCATENATED MODULE: ./src/components/SimulationVuer.vue?vue&type=template&id=efe186fe&scoped=true&
83695
82201
 
83696
82202
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/loading.css
83697
82203
  var loading = __webpack_require__("be4f");
@@ -83760,12 +82266,12 @@ var plotvuer_common = __webpack_require__("f998");
83760
82266
  // EXTERNAL MODULE: external "@abi-software/plotvuer/dist/plotvuer.css"
83761
82267
  var plotvuer_css_ = __webpack_require__("d856");
83762
82268
 
83763
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2ef7ae11-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SimulationVuerInput.vue?vue&type=template&id=730c3eff&scoped=true&
83764
- var SimulationVuerInputvue_type_template_id_730c3eff_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.visible),expression:"visible"}]},[_c('p',{class:_vm.labelClasses},[_vm._v(_vm._s(_vm.name))]),(_vm.isDiscrete)?_c('el-select',{staticClass:"discrete",attrs:{"popper-class":"discrete-popper","size":"mini","popper-append-to-body":false},on:{"change":function($event){return _vm.updateUi()}},model:{value:(_vm.vModel),callback:function ($$v) {_vm.vModel=$$v},expression:"vModel"}},_vm._l((_vm.possibleValues),function(possibleValue){return _c('el-option',{key:possibleValue.value,attrs:{"label":possibleValue.name,"value":possibleValue.value}})}),1):_vm._e(),(!_vm.isDiscrete)?_c('div',{staticClass:"sliders-and-fields"},[_c('el-slider',{attrs:{"max":_vm.maximumValue,"min":_vm.minimumValue,"show-input":false,"show-tooltip":false,"step":_vm.stepValue},on:{"change":function($event){return _vm.updateUi()}},model:{value:(_vm.vModel),callback:function ($$v) {_vm.vModel=$$v},expression:"vModel"}}),_c('el-input-number',{staticClass:"scalar",attrs:{"size":"mini","controls":false,"max":_vm.maximumValue,"min":_vm.minimumValue,"step":_vm.stepValue,"step-strictly":true},on:{"input":function($event){return _vm.updateUi()}},model:{value:(_vm.vModel),callback:function ($$v) {_vm.vModel=$$v},expression:"vModel"}})],1):_vm._e()],1)}
83765
- var SimulationVuerInputvue_type_template_id_730c3eff_scoped_true_staticRenderFns = []
82269
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"26186cda-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SimulationVuerInput.vue?vue&type=template&id=077bee1f&scoped=true&
82270
+ var SimulationVuerInputvue_type_template_id_077bee1f_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.visible),expression:"visible"}]},[_c('p',{class:_vm.labelClasses},[_vm._v(_vm._s(_vm.name))]),(_vm.isDiscrete)?_c('el-select',{staticClass:"discrete",attrs:{"popper-class":"discrete-popper","size":"mini","popper-append-to-body":false},on:{"change":function($event){return _vm.updateUi()}},model:{value:(_vm.vModel),callback:function ($$v) {_vm.vModel=$$v},expression:"vModel"}},_vm._l((_vm.possibleValues),function(possibleValue){return _c('el-option',{key:possibleValue.value,attrs:{"label":possibleValue.name,"value":possibleValue.value}})}),1):_vm._e(),(!_vm.isDiscrete)?_c('div',{staticClass:"sliders-and-fields"},[_c('el-slider',{attrs:{"max":_vm.maximumValue,"min":_vm.minimumValue,"show-input":false,"show-tooltip":false,"step":_vm.stepValue},on:{"change":function($event){return _vm.updateUi()}},model:{value:(_vm.vModel),callback:function ($$v) {_vm.vModel=$$v},expression:"vModel"}}),_c('el-input-number',{staticClass:"scalar",attrs:{"size":"mini","controls":false,"max":_vm.maximumValue,"min":_vm.minimumValue,"step":_vm.stepValue,"step-strictly":true},on:{"input":function($event){return _vm.updateUi()}},model:{value:(_vm.vModel),callback:function ($$v) {_vm.vModel=$$v},expression:"vModel"}})],1):_vm._e()],1)}
82271
+ var SimulationVuerInputvue_type_template_id_077bee1f_scoped_true_staticRenderFns = []
83766
82272
 
83767
82273
 
83768
- // CONCATENATED MODULE: ./src/components/SimulationVuerInput.vue?vue&type=template&id=730c3eff&scoped=true&
82274
+ // CONCATENATED MODULE: ./src/components/SimulationVuerInput.vue?vue&type=template&id=077bee1f&scoped=true&
83769
82275
 
83770
82276
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/slider.css
83771
82277
  var slider = __webpack_require__("b5c2");
@@ -83834,7 +82340,7 @@ function evaluateValue(parent, value) {
83834
82340
  var index = -1;
83835
82341
  parent.simulationUiInfo.input.forEach(function (input) {
83836
82342
  ++index;
83837
- value = doEvaluateValue(value, input.id, parent.$refs.input.$children[index].vModel);
82343
+ value = doEvaluateValue(value, input.id, parent.$children[index].vModel);
83838
82344
  });
83839
82345
  return Function("return " + value + ";")();
83840
82346
  }
@@ -83858,6 +82364,14 @@ function initialiseUi(parent) {
83858
82364
  parent.simulationUiInfo.output.plots.forEach(function (outputPlot) {
83859
82365
  ++index;
83860
82366
  parent.layout[index] = {
82367
+ margin: {
82368
+ t: 5,
82369
+ l: 55,
82370
+ r: 55,
82371
+ b: 90,
82372
+ pad: 4
82373
+ },
82374
+ dragmode: "pan",
83861
82375
  xaxis: {
83862
82376
  title: {
83863
82377
  text: outputPlot.xAxisTitle,
@@ -83885,14 +82399,7 @@ function finaliseUi(parent) {
83885
82399
  // Configure the PlotVuer's.
83886
82400
  parent.$refs.output.classList.add("x" + parent.simulationUiInfo.output.plots.length); // Make sure that our UI is up to date.
83887
82401
 
83888
- ui_updateUi(parent); // Make sure that the (vertical) scrollbar's thumb is of the right length.
83889
- // Note: it may indeed be of the incorrect length if we hid some components
83890
- // in updateUi().
83891
-
83892
- parent.$nextTick(function () {
83893
- parent.$refs.input.$el.scroll(0, 1);
83894
- parent.$refs.input.$el.scroll(0, -1);
83895
- });
82402
+ ui_updateUi(parent);
83896
82403
  parent.hasFinalisedUi = true;
83897
82404
  }
83898
82405
  }
@@ -83904,7 +82411,7 @@ function ui_updateUi(parent) {
83904
82411
  var index = -1;
83905
82412
  parent.simulationUiInfo.input.forEach(function (input) {
83906
82413
  ++index;
83907
- parent.$refs.input.$children[index].visible = input.visible === undefined ? true : evaluateValue(parent, input.visible);
82414
+ parent.$children[index].visible = input.visible === undefined ? true : evaluateValue(parent, input.visible);
83908
82415
  });
83909
82416
  });
83910
82417
  }
@@ -83975,14 +82482,14 @@ external_vue_default.a.use(lib_slider_default.a);
83975
82482
  },
83976
82483
  methods: {
83977
82484
  updateUi: function updateUi() {
83978
- ui_updateUi(this.$parent.$parent);
82485
+ ui_updateUi(this.$parent);
83979
82486
  }
83980
82487
  }
83981
82488
  });
83982
82489
  // CONCATENATED MODULE: ./src/components/SimulationVuerInput.vue?vue&type=script&lang=js&
83983
82490
  /* harmony default export */ var components_SimulationVuerInputvue_type_script_lang_js_ = (SimulationVuerInputvue_type_script_lang_js_);
83984
- // EXTERNAL MODULE: ./src/components/SimulationVuerInput.vue?vue&type=style&index=0&id=730c3eff&scoped=true&lang=scss&
83985
- var SimulationVuerInputvue_type_style_index_0_id_730c3eff_scoped_true_lang_scss_ = __webpack_require__("4dd6");
82491
+ // EXTERNAL MODULE: ./src/components/SimulationVuerInput.vue?vue&type=style&index=0&id=077bee1f&scoped=true&lang=scss&
82492
+ var SimulationVuerInputvue_type_style_index_0_id_077bee1f_scoped_true_lang_scss_ = __webpack_require__("ff27");
83986
82493
 
83987
82494
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
83988
82495
  /* globals __VUE_SSR_CONTEXT__ */
@@ -84095,11 +82602,11 @@ function normalizeComponent (
84095
82602
 
84096
82603
  var component = normalizeComponent(
84097
82604
  components_SimulationVuerInputvue_type_script_lang_js_,
84098
- SimulationVuerInputvue_type_template_id_730c3eff_scoped_true_render,
84099
- SimulationVuerInputvue_type_template_id_730c3eff_scoped_true_staticRenderFns,
82605
+ SimulationVuerInputvue_type_template_id_077bee1f_scoped_true_render,
82606
+ SimulationVuerInputvue_type_template_id_077bee1f_scoped_true_staticRenderFns,
84100
82607
  false,
84101
82608
  null,
84102
- "730c3eff",
82609
+ "077bee1f",
84103
82610
  null
84104
82611
 
84105
82612
  )
@@ -84613,13 +83120,6 @@ function validJson(json) {
84613
83120
 
84614
83121
  return true;
84615
83122
  }
84616
- // EXTERNAL MODULE: ./node_modules/vue2-perfect-scrollbar/dist/vue2-perfect-scrollbar.umd.js
84617
- var vue2_perfect_scrollbar_umd = __webpack_require__("a4a1");
84618
- var vue2_perfect_scrollbar_umd_default = /*#__PURE__*/__webpack_require__.n(vue2_perfect_scrollbar_umd);
84619
-
84620
- // EXTERNAL MODULE: external "vue2-perfect-scrollbar/dist/vue2-perfect-scrollbar.css"
84621
- var vue2_perfect_scrollbar_css_ = __webpack_require__("c0f2");
84622
-
84623
83123
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SimulationVuer.vue?vue&type=script&lang=js&
84624
83124
 
84625
83125
 
@@ -84673,10 +83173,6 @@ var vue2_perfect_scrollbar_css_ = __webpack_require__("c0f2");
84673
83173
  //
84674
83174
  //
84675
83175
  //
84676
- //
84677
- //
84678
-
84679
-
84680
83176
 
84681
83177
 
84682
83178
 
@@ -84687,7 +83183,6 @@ var vue2_perfect_scrollbar_css_ = __webpack_require__("c0f2");
84687
83183
  external_vue_default.a.use(lib_button_default.a);
84688
83184
  external_vue_default.a.use(lib_divider_default.a);
84689
83185
  external_vue_default.a.use(lib_loading_default.a.directive);
84690
- external_vue_default.a.use(vue2_perfect_scrollbar_umd_default.a);
84691
83186
  /* harmony default export */ var SimulationVuervue_type_script_lang_js_ = ({
84692
83187
  name: "SimulationVuer",
84693
83188
  components: {
@@ -84999,8 +83494,8 @@ external_vue_default.a.use(vue2_perfect_scrollbar_umd_default.a);
84999
83494
  });
85000
83495
  // CONCATENATED MODULE: ./src/components/SimulationVuer.vue?vue&type=script&lang=js&
85001
83496
  /* harmony default export */ var components_SimulationVuervue_type_script_lang_js_ = (SimulationVuervue_type_script_lang_js_);
85002
- // EXTERNAL MODULE: ./src/components/SimulationVuer.vue?vue&type=style&index=0&id=58f5e448&scoped=true&lang=scss&
85003
- var SimulationVuervue_type_style_index_0_id_58f5e448_scoped_true_lang_scss_ = __webpack_require__("6fa8");
83497
+ // EXTERNAL MODULE: ./src/components/SimulationVuer.vue?vue&type=style&index=0&id=efe186fe&scoped=true&lang=scss&
83498
+ var SimulationVuervue_type_style_index_0_id_efe186fe_scoped_true_lang_scss_ = __webpack_require__("1612");
85004
83499
 
85005
83500
  // CONCATENATED MODULE: ./src/components/SimulationVuer.vue
85006
83501
 
@@ -85017,7 +83512,7 @@ var SimulationVuer_component = normalizeComponent(
85017
83512
  staticRenderFns,
85018
83513
  false,
85019
83514
  null,
85020
- "58f5e448",
83515
+ "efe186fe",
85021
83516
  null
85022
83517
 
85023
83518
  )
@@ -85047,6 +83542,17 @@ module.exports = require("core-js/modules/es.string.includes.js");
85047
83542
 
85048
83543
  module.exports = require("core-js/modules/es.string.includes");
85049
83544
 
83545
+ /***/ }),
83546
+
83547
+ /***/ "ff27":
83548
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
83549
+
83550
+ "use strict";
83551
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SimulationVuerInput_vue_vue_type_style_index_0_id_077bee1f_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f958");
83552
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SimulationVuerInput_vue_vue_type_style_index_0_id_077bee1f_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SimulationVuerInput_vue_vue_type_style_index_0_id_077bee1f_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
83553
+ /* unused harmony reexport * */
83554
+
83555
+
85050
83556
  /***/ }),
85051
83557
 
85052
83558
  /***/ "ff4a":