@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.
@@ -602,14 +602,18 @@ module.exports = __webpack_require__("e62d");
602
602
 
603
603
  /***/ }),
604
604
 
605
- /***/ "1951":
606
- /***/ (function(module, exports, __webpack_require__) {
605
+ /***/ "1612":
606
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
607
+
608
+ "use strict";
609
+ /* 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");
610
+ /* 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__);
611
+ /* unused harmony reexport * */
607
612
 
608
- // extracted by mini-css-extract-plugin
609
613
 
610
614
  /***/ }),
611
615
 
612
- /***/ "1bd9":
616
+ /***/ "1951":
613
617
  /***/ (function(module, exports, __webpack_require__) {
614
618
 
615
619
  // extracted by mini-css-extract-plugin
@@ -623,17 +627,22 @@ module.exports = require("core-js/modules/web.dom-collections.iterator");
623
627
 
624
628
  /***/ }),
625
629
 
626
- /***/ "1dd3":
630
+ /***/ "1f1a":
627
631
  /***/ (function(module, exports, __webpack_require__) {
628
632
 
629
633
  // extracted by mini-css-extract-plugin
630
634
 
631
635
  /***/ }),
632
636
 
633
- /***/ "1f1a":
634
- /***/ (function(module, exports, __webpack_require__) {
637
+ /***/ "2050":
638
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
639
+
640
+ "use strict";
641
+ __webpack_require__.r(__webpack_exports__);
642
+ /* 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");
643
+ /* 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__);
644
+ /* 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__));
635
645
 
636
- // extracted by mini-css-extract-plugin
637
646
 
638
647
  /***/ }),
639
648
 
@@ -2416,13 +2425,6 @@ module.exports = require("core-js/modules/es.regexp.to-string.js");
2416
2425
 
2417
2426
  /***/ }),
2418
2427
 
2419
- /***/ "391b":
2420
- /***/ (function(module, exports, __webpack_require__) {
2421
-
2422
- // extracted by mini-css-extract-plugin
2423
-
2424
- /***/ }),
2425
-
2426
2428
  /***/ "3b51":
2427
2429
  /***/ (function(module, exports) {
2428
2430
 
@@ -2925,17 +2927,6 @@ exports.default = PopupManager;
2925
2927
 
2926
2928
  module.exports = require("tinycolor2");
2927
2929
 
2928
- /***/ }),
2929
-
2930
- /***/ "4dd6":
2931
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2932
-
2933
- "use strict";
2934
- /* 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");
2935
- /* 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__);
2936
- /* unused harmony reexport * */
2937
-
2938
-
2939
2930
  /***/ }),
2940
2931
 
2941
2932
  /***/ "4e4b":
@@ -5466,18 +5457,6 @@ exports.default = {
5466
5457
  }
5467
5458
  };
5468
5459
 
5469
- /***/ }),
5470
-
5471
- /***/ "5889":
5472
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5473
-
5474
- "use strict";
5475
- __webpack_require__.r(__webpack_exports__);
5476
- /* 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");
5477
- /* 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__);
5478
- /* 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__));
5479
-
5480
-
5481
5460
  /***/ }),
5482
5461
 
5483
5462
  /***/ "5924":
@@ -7034,6 +7013,13 @@ module.exports = require("core-js/modules/es.array.slice");
7034
7013
 
7035
7014
  /***/ }),
7036
7015
 
7016
+ /***/ "666f":
7017
+ /***/ (function(module, exports, __webpack_require__) {
7018
+
7019
+ // extracted by mini-css-extract-plugin
7020
+
7021
+ /***/ }),
7022
+
7037
7023
  /***/ "6ac9":
7038
7024
  /***/ (function(module, exports, __webpack_require__) {
7039
7025
 
@@ -7685,17 +7671,6 @@ exports.default = {
7685
7671
  }
7686
7672
  };
7687
7673
 
7688
- /***/ }),
7689
-
7690
- /***/ "6fa8":
7691
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7692
-
7693
- "use strict";
7694
- /* 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");
7695
- /* 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__);
7696
- /* unused harmony reexport * */
7697
-
7698
-
7699
7674
  /***/ }),
7700
7675
 
7701
7676
  /***/ "6faa":
@@ -9458,1492 +9433,6 @@ module.exports = require("resize-observer-polyfill");
9458
9433
 
9459
9434
  // extracted by mini-css-extract-plugin
9460
9435
 
9461
- /***/ }),
9462
-
9463
- /***/ "a4a1":
9464
- /***/ (function(module, exports, __webpack_require__) {
9465
-
9466
- (function (global, factory) {
9467
- true ? factory(exports) :
9468
- undefined;
9469
- }(this, (function (exports) { 'use strict';
9470
-
9471
- /*!
9472
- * perfect-scrollbar v1.5.3
9473
- * Copyright 2021 Hyunje Jun, MDBootstrap and Contributors
9474
- * Licensed under MIT
9475
- */
9476
-
9477
- function get(element) {
9478
- return getComputedStyle(element);
9479
- }
9480
-
9481
- function set(element, obj) {
9482
- for (var key in obj) {
9483
- var val = obj[key];
9484
- if (typeof val === 'number') {
9485
- val = val + "px";
9486
- }
9487
- element.style[key] = val;
9488
- }
9489
- return element;
9490
- }
9491
-
9492
- function div(className) {
9493
- var div = document.createElement('div');
9494
- div.className = className;
9495
- return div;
9496
- }
9497
-
9498
- var elMatches =
9499
- typeof Element !== 'undefined' &&
9500
- (Element.prototype.matches ||
9501
- Element.prototype.webkitMatchesSelector ||
9502
- Element.prototype.mozMatchesSelector ||
9503
- Element.prototype.msMatchesSelector);
9504
-
9505
- function matches(element, query) {
9506
- if (!elMatches) {
9507
- throw new Error('No element matching method supported');
9508
- }
9509
-
9510
- return elMatches.call(element, query);
9511
- }
9512
-
9513
- function remove(element) {
9514
- if (element.remove) {
9515
- element.remove();
9516
- } else {
9517
- if (element.parentNode) {
9518
- element.parentNode.removeChild(element);
9519
- }
9520
- }
9521
- }
9522
-
9523
- function queryChildren(element, selector) {
9524
- return Array.prototype.filter.call(element.children, function (child) { return matches(child, selector); }
9525
- );
9526
- }
9527
-
9528
- var cls = {
9529
- main: 'ps',
9530
- rtl: 'ps__rtl',
9531
- element: {
9532
- thumb: function (x) { return ("ps__thumb-" + x); },
9533
- rail: function (x) { return ("ps__rail-" + x); },
9534
- consuming: 'ps__child--consume',
9535
- },
9536
- state: {
9537
- focus: 'ps--focus',
9538
- clicking: 'ps--clicking',
9539
- active: function (x) { return ("ps--active-" + x); },
9540
- scrolling: function (x) { return ("ps--scrolling-" + x); },
9541
- },
9542
- };
9543
-
9544
- /*
9545
- * Helper methods
9546
- */
9547
- var scrollingClassTimeout = { x: null, y: null };
9548
-
9549
- function addScrollingClass(i, x) {
9550
- var classList = i.element.classList;
9551
- var className = cls.state.scrolling(x);
9552
-
9553
- if (classList.contains(className)) {
9554
- clearTimeout(scrollingClassTimeout[x]);
9555
- } else {
9556
- classList.add(className);
9557
- }
9558
- }
9559
-
9560
- function removeScrollingClass(i, x) {
9561
- scrollingClassTimeout[x] = setTimeout(
9562
- function () { return i.isAlive && i.element.classList.remove(cls.state.scrolling(x)); },
9563
- i.settings.scrollingThreshold
9564
- );
9565
- }
9566
-
9567
- function setScrollingClassInstantly(i, x) {
9568
- addScrollingClass(i, x);
9569
- removeScrollingClass(i, x);
9570
- }
9571
-
9572
- var EventElement = function EventElement(element) {
9573
- this.element = element;
9574
- this.handlers = {};
9575
- };
9576
-
9577
- var prototypeAccessors = { isEmpty: { configurable: true } };
9578
-
9579
- EventElement.prototype.bind = function bind (eventName, handler) {
9580
- if (typeof this.handlers[eventName] === 'undefined') {
9581
- this.handlers[eventName] = [];
9582
- }
9583
- this.handlers[eventName].push(handler);
9584
- this.element.addEventListener(eventName, handler, false);
9585
- };
9586
-
9587
- EventElement.prototype.unbind = function unbind (eventName, target) {
9588
- var this$1 = this;
9589
-
9590
- this.handlers[eventName] = this.handlers[eventName].filter(function (handler) {
9591
- if (target && handler !== target) {
9592
- return true;
9593
- }
9594
- this$1.element.removeEventListener(eventName, handler, false);
9595
- return false;
9596
- });
9597
- };
9598
-
9599
- EventElement.prototype.unbindAll = function unbindAll () {
9600
- var this$1 = this;
9601
-
9602
- for (var name in this$1.handlers) {
9603
- this$1.unbind(name);
9604
- }
9605
- };
9606
-
9607
- prototypeAccessors.isEmpty.get = function () {
9608
- var this$1 = this;
9609
-
9610
- return Object.keys(this.handlers).every(
9611
- function (key) { return this$1.handlers[key].length === 0; }
9612
- );
9613
- };
9614
-
9615
- Object.defineProperties( EventElement.prototype, prototypeAccessors );
9616
-
9617
- var EventManager = function EventManager() {
9618
- this.eventElements = [];
9619
- };
9620
-
9621
- EventManager.prototype.eventElement = function eventElement (element) {
9622
- var ee = this.eventElements.filter(function (ee) { return ee.element === element; })[0];
9623
- if (!ee) {
9624
- ee = new EventElement(element);
9625
- this.eventElements.push(ee);
9626
- }
9627
- return ee;
9628
- };
9629
-
9630
- EventManager.prototype.bind = function bind (element, eventName, handler) {
9631
- this.eventElement(element).bind(eventName, handler);
9632
- };
9633
-
9634
- EventManager.prototype.unbind = function unbind (element, eventName, handler) {
9635
- var ee = this.eventElement(element);
9636
- ee.unbind(eventName, handler);
9637
-
9638
- if (ee.isEmpty) {
9639
- // remove
9640
- this.eventElements.splice(this.eventElements.indexOf(ee), 1);
9641
- }
9642
- };
9643
-
9644
- EventManager.prototype.unbindAll = function unbindAll () {
9645
- this.eventElements.forEach(function (e) { return e.unbindAll(); });
9646
- this.eventElements = [];
9647
- };
9648
-
9649
- EventManager.prototype.once = function once (element, eventName, handler) {
9650
- var ee = this.eventElement(element);
9651
- var onceHandler = function (evt) {
9652
- ee.unbind(eventName, onceHandler);
9653
- handler(evt);
9654
- };
9655
- ee.bind(eventName, onceHandler);
9656
- };
9657
-
9658
- function createEvent(name) {
9659
- if (typeof window.CustomEvent === 'function') {
9660
- return new CustomEvent(name);
9661
- } else {
9662
- var evt = document.createEvent('CustomEvent');
9663
- evt.initCustomEvent(name, false, false, undefined);
9664
- return evt;
9665
- }
9666
- }
9667
-
9668
- function processScrollDiff(
9669
- i,
9670
- axis,
9671
- diff,
9672
- useScrollingClass,
9673
- forceFireReachEvent
9674
- ) {
9675
- if ( useScrollingClass === void 0 ) { useScrollingClass = true; }
9676
- if ( forceFireReachEvent === void 0 ) { forceFireReachEvent = false; }
9677
-
9678
- var fields;
9679
- if (axis === 'top') {
9680
- fields = [
9681
- 'contentHeight',
9682
- 'containerHeight',
9683
- 'scrollTop',
9684
- 'y',
9685
- 'up',
9686
- 'down' ];
9687
- } else if (axis === 'left') {
9688
- fields = [
9689
- 'contentWidth',
9690
- 'containerWidth',
9691
- 'scrollLeft',
9692
- 'x',
9693
- 'left',
9694
- 'right' ];
9695
- } else {
9696
- throw new Error('A proper axis should be provided');
9697
- }
9698
-
9699
- processScrollDiff$1(i, diff, fields, useScrollingClass, forceFireReachEvent);
9700
- }
9701
-
9702
- function processScrollDiff$1(
9703
- i,
9704
- diff,
9705
- ref,
9706
- useScrollingClass,
9707
- forceFireReachEvent
9708
- ) {
9709
- var contentHeight = ref[0];
9710
- var containerHeight = ref[1];
9711
- var scrollTop = ref[2];
9712
- var y = ref[3];
9713
- var up = ref[4];
9714
- var down = ref[5];
9715
- if ( useScrollingClass === void 0 ) { useScrollingClass = true; }
9716
- if ( forceFireReachEvent === void 0 ) { forceFireReachEvent = false; }
9717
-
9718
- var element = i.element;
9719
-
9720
- // reset reach
9721
- i.reach[y] = null;
9722
-
9723
- // 1 for subpixel rounding
9724
- if (element[scrollTop] < 1) {
9725
- i.reach[y] = 'start';
9726
- }
9727
-
9728
- // 1 for subpixel rounding
9729
- if (element[scrollTop] > i[contentHeight] - i[containerHeight] - 1) {
9730
- i.reach[y] = 'end';
9731
- }
9732
-
9733
- if (diff) {
9734
- element.dispatchEvent(createEvent(("ps-scroll-" + y)));
9735
-
9736
- if (diff < 0) {
9737
- element.dispatchEvent(createEvent(("ps-scroll-" + up)));
9738
- } else if (diff > 0) {
9739
- element.dispatchEvent(createEvent(("ps-scroll-" + down)));
9740
- }
9741
-
9742
- if (useScrollingClass) {
9743
- setScrollingClassInstantly(i, y);
9744
- }
9745
- }
9746
-
9747
- if (i.reach[y] && (diff || forceFireReachEvent)) {
9748
- element.dispatchEvent(createEvent(("ps-" + y + "-reach-" + (i.reach[y]))));
9749
- }
9750
- }
9751
-
9752
- function toInt(x) {
9753
- return parseInt(x, 10) || 0;
9754
- }
9755
-
9756
- function isEditable(el) {
9757
- return (
9758
- matches(el, 'input,[contenteditable]') ||
9759
- matches(el, 'select,[contenteditable]') ||
9760
- matches(el, 'textarea,[contenteditable]') ||
9761
- matches(el, 'button,[contenteditable]')
9762
- );
9763
- }
9764
-
9765
- function outerWidth(element) {
9766
- var styles = get(element);
9767
- return (
9768
- toInt(styles.width) +
9769
- toInt(styles.paddingLeft) +
9770
- toInt(styles.paddingRight) +
9771
- toInt(styles.borderLeftWidth) +
9772
- toInt(styles.borderRightWidth)
9773
- );
9774
- }
9775
-
9776
- var env = {
9777
- isWebKit:
9778
- typeof document !== 'undefined' &&
9779
- 'WebkitAppearance' in document.documentElement.style,
9780
- supportsTouch:
9781
- typeof window !== 'undefined' &&
9782
- ('ontouchstart' in window ||
9783
- ('maxTouchPoints' in window.navigator &&
9784
- window.navigator.maxTouchPoints > 0) ||
9785
- (window.DocumentTouch && document instanceof window.DocumentTouch)),
9786
- supportsIePointer:
9787
- typeof navigator !== 'undefined' && navigator.msMaxTouchPoints,
9788
- isChrome:
9789
- typeof navigator !== 'undefined' &&
9790
- /Chrome/i.test(navigator && navigator.userAgent),
9791
- };
9792
-
9793
- function updateGeometry(i) {
9794
- var element = i.element;
9795
- var roundedScrollTop = Math.floor(element.scrollTop);
9796
- var rect = element.getBoundingClientRect();
9797
-
9798
- i.containerWidth = Math.round(rect.width);
9799
- i.containerHeight = Math.round(rect.height);
9800
-
9801
- i.contentWidth = element.scrollWidth;
9802
- i.contentHeight = element.scrollHeight;
9803
-
9804
- if (!element.contains(i.scrollbarXRail)) {
9805
- // clean up and append
9806
- queryChildren(element, cls.element.rail('x')).forEach(function (el) { return remove(el); }
9807
- );
9808
- element.appendChild(i.scrollbarXRail);
9809
- }
9810
- if (!element.contains(i.scrollbarYRail)) {
9811
- // clean up and append
9812
- queryChildren(element, cls.element.rail('y')).forEach(function (el) { return remove(el); }
9813
- );
9814
- element.appendChild(i.scrollbarYRail);
9815
- }
9816
-
9817
- if (
9818
- !i.settings.suppressScrollX &&
9819
- i.containerWidth + i.settings.scrollXMarginOffset < i.contentWidth
9820
- ) {
9821
- i.scrollbarXActive = true;
9822
- i.railXWidth = i.containerWidth - i.railXMarginWidth;
9823
- i.railXRatio = i.containerWidth / i.railXWidth;
9824
- i.scrollbarXWidth = getThumbSize(
9825
- i,
9826
- toInt((i.railXWidth * i.containerWidth) / i.contentWidth)
9827
- );
9828
- i.scrollbarXLeft = toInt(
9829
- ((i.negativeScrollAdjustment + element.scrollLeft) *
9830
- (i.railXWidth - i.scrollbarXWidth)) /
9831
- (i.contentWidth - i.containerWidth)
9832
- );
9833
- } else {
9834
- i.scrollbarXActive = false;
9835
- }
9836
-
9837
- if (
9838
- !i.settings.suppressScrollY &&
9839
- i.containerHeight + i.settings.scrollYMarginOffset < i.contentHeight
9840
- ) {
9841
- i.scrollbarYActive = true;
9842
- i.railYHeight = i.containerHeight - i.railYMarginHeight;
9843
- i.railYRatio = i.containerHeight / i.railYHeight;
9844
- i.scrollbarYHeight = getThumbSize(
9845
- i,
9846
- toInt((i.railYHeight * i.containerHeight) / i.contentHeight)
9847
- );
9848
- i.scrollbarYTop = toInt(
9849
- (roundedScrollTop * (i.railYHeight - i.scrollbarYHeight)) /
9850
- (i.contentHeight - i.containerHeight)
9851
- );
9852
- } else {
9853
- i.scrollbarYActive = false;
9854
- }
9855
-
9856
- if (i.scrollbarXLeft >= i.railXWidth - i.scrollbarXWidth) {
9857
- i.scrollbarXLeft = i.railXWidth - i.scrollbarXWidth;
9858
- }
9859
- if (i.scrollbarYTop >= i.railYHeight - i.scrollbarYHeight) {
9860
- i.scrollbarYTop = i.railYHeight - i.scrollbarYHeight;
9861
- }
9862
-
9863
- updateCss(element, i);
9864
-
9865
- if (i.scrollbarXActive) {
9866
- element.classList.add(cls.state.active('x'));
9867
- } else {
9868
- element.classList.remove(cls.state.active('x'));
9869
- i.scrollbarXWidth = 0;
9870
- i.scrollbarXLeft = 0;
9871
- element.scrollLeft = i.isRtl === true ? i.contentWidth : 0;
9872
- }
9873
- if (i.scrollbarYActive) {
9874
- element.classList.add(cls.state.active('y'));
9875
- } else {
9876
- element.classList.remove(cls.state.active('y'));
9877
- i.scrollbarYHeight = 0;
9878
- i.scrollbarYTop = 0;
9879
- element.scrollTop = 0;
9880
- }
9881
- }
9882
-
9883
- function getThumbSize(i, thumbSize) {
9884
- if (i.settings.minScrollbarLength) {
9885
- thumbSize = Math.max(thumbSize, i.settings.minScrollbarLength);
9886
- }
9887
- if (i.settings.maxScrollbarLength) {
9888
- thumbSize = Math.min(thumbSize, i.settings.maxScrollbarLength);
9889
- }
9890
- return thumbSize;
9891
- }
9892
-
9893
- function updateCss(element, i) {
9894
- var xRailOffset = { width: i.railXWidth };
9895
- var roundedScrollTop = Math.floor(element.scrollTop);
9896
-
9897
- if (i.isRtl) {
9898
- xRailOffset.left =
9899
- i.negativeScrollAdjustment +
9900
- element.scrollLeft +
9901
- i.containerWidth -
9902
- i.contentWidth;
9903
- } else {
9904
- xRailOffset.left = element.scrollLeft;
9905
- }
9906
- if (i.isScrollbarXUsingBottom) {
9907
- xRailOffset.bottom = i.scrollbarXBottom - roundedScrollTop;
9908
- } else {
9909
- xRailOffset.top = i.scrollbarXTop + roundedScrollTop;
9910
- }
9911
- set(i.scrollbarXRail, xRailOffset);
9912
-
9913
- var yRailOffset = { top: roundedScrollTop, height: i.railYHeight };
9914
- if (i.isScrollbarYUsingRight) {
9915
- if (i.isRtl) {
9916
- yRailOffset.right =
9917
- i.contentWidth -
9918
- (i.negativeScrollAdjustment + element.scrollLeft) -
9919
- i.scrollbarYRight -
9920
- i.scrollbarYOuterWidth -
9921
- 9;
9922
- } else {
9923
- yRailOffset.right = i.scrollbarYRight - element.scrollLeft;
9924
- }
9925
- } else {
9926
- if (i.isRtl) {
9927
- yRailOffset.left =
9928
- i.negativeScrollAdjustment +
9929
- element.scrollLeft +
9930
- i.containerWidth * 2 -
9931
- i.contentWidth -
9932
- i.scrollbarYLeft -
9933
- i.scrollbarYOuterWidth;
9934
- } else {
9935
- yRailOffset.left = i.scrollbarYLeft + element.scrollLeft;
9936
- }
9937
- }
9938
- set(i.scrollbarYRail, yRailOffset);
9939
-
9940
- set(i.scrollbarX, {
9941
- left: i.scrollbarXLeft,
9942
- width: i.scrollbarXWidth - i.railBorderXWidth,
9943
- });
9944
- set(i.scrollbarY, {
9945
- top: i.scrollbarYTop,
9946
- height: i.scrollbarYHeight - i.railBorderYWidth,
9947
- });
9948
- }
9949
-
9950
- function clickRail(i) {
9951
- var element = i.element;
9952
-
9953
- i.event.bind(i.scrollbarY, 'mousedown', function (e) { return e.stopPropagation(); });
9954
- i.event.bind(i.scrollbarYRail, 'mousedown', function (e) {
9955
- var positionTop =
9956
- e.pageY -
9957
- window.pageYOffset -
9958
- i.scrollbarYRail.getBoundingClientRect().top;
9959
- var direction = positionTop > i.scrollbarYTop ? 1 : -1;
9960
-
9961
- i.element.scrollTop += direction * i.containerHeight;
9962
- updateGeometry(i);
9963
-
9964
- e.stopPropagation();
9965
- });
9966
-
9967
- i.event.bind(i.scrollbarX, 'mousedown', function (e) { return e.stopPropagation(); });
9968
- i.event.bind(i.scrollbarXRail, 'mousedown', function (e) {
9969
- var positionLeft =
9970
- e.pageX -
9971
- window.pageXOffset -
9972
- i.scrollbarXRail.getBoundingClientRect().left;
9973
- var direction = positionLeft > i.scrollbarXLeft ? 1 : -1;
9974
-
9975
- i.element.scrollLeft += direction * i.containerWidth;
9976
- updateGeometry(i);
9977
-
9978
- e.stopPropagation();
9979
- });
9980
- }
9981
-
9982
- function dragThumb(i) {
9983
- bindMouseScrollHandler(i, [
9984
- 'containerWidth',
9985
- 'contentWidth',
9986
- 'pageX',
9987
- 'railXWidth',
9988
- 'scrollbarX',
9989
- 'scrollbarXWidth',
9990
- 'scrollLeft',
9991
- 'x',
9992
- 'scrollbarXRail' ]);
9993
- bindMouseScrollHandler(i, [
9994
- 'containerHeight',
9995
- 'contentHeight',
9996
- 'pageY',
9997
- 'railYHeight',
9998
- 'scrollbarY',
9999
- 'scrollbarYHeight',
10000
- 'scrollTop',
10001
- 'y',
10002
- 'scrollbarYRail' ]);
10003
- }
10004
-
10005
- function bindMouseScrollHandler(
10006
- i,
10007
- ref
10008
- ) {
10009
- var containerHeight = ref[0];
10010
- var contentHeight = ref[1];
10011
- var pageY = ref[2];
10012
- var railYHeight = ref[3];
10013
- var scrollbarY = ref[4];
10014
- var scrollbarYHeight = ref[5];
10015
- var scrollTop = ref[6];
10016
- var y = ref[7];
10017
- var scrollbarYRail = ref[8];
10018
-
10019
- var element = i.element;
10020
-
10021
- var startingScrollTop = null;
10022
- var startingMousePageY = null;
10023
- var scrollBy = null;
10024
-
10025
- function mouseMoveHandler(e) {
10026
- if (e.touches && e.touches[0]) {
10027
- e[pageY] = e.touches[0].pageY;
10028
- }
10029
- element[scrollTop] =
10030
- startingScrollTop + scrollBy * (e[pageY] - startingMousePageY);
10031
- addScrollingClass(i, y);
10032
- updateGeometry(i);
10033
-
10034
- e.stopPropagation();
10035
- if (e.type.startsWith('touch') && e.changedTouches.length > 1) {
10036
- e.preventDefault();
10037
- }
10038
- }
10039
-
10040
- function mouseUpHandler() {
10041
- removeScrollingClass(i, y);
10042
- i[scrollbarYRail].classList.remove(cls.state.clicking);
10043
- i.event.unbind(i.ownerDocument, 'mousemove', mouseMoveHandler);
10044
- }
10045
-
10046
- function bindMoves(e, touchMode) {
10047
- startingScrollTop = element[scrollTop];
10048
- if (touchMode && e.touches) {
10049
- e[pageY] = e.touches[0].pageY;
10050
- }
10051
- startingMousePageY = e[pageY];
10052
- scrollBy =
10053
- (i[contentHeight] - i[containerHeight]) /
10054
- (i[railYHeight] - i[scrollbarYHeight]);
10055
- if (!touchMode) {
10056
- i.event.bind(i.ownerDocument, 'mousemove', mouseMoveHandler);
10057
- i.event.once(i.ownerDocument, 'mouseup', mouseUpHandler);
10058
- e.preventDefault();
10059
- } else {
10060
- i.event.bind(i.ownerDocument, 'touchmove', mouseMoveHandler);
10061
- }
10062
-
10063
- i[scrollbarYRail].classList.add(cls.state.clicking);
10064
-
10065
- e.stopPropagation();
10066
- }
10067
-
10068
- i.event.bind(i[scrollbarY], 'mousedown', function (e) {
10069
- bindMoves(e);
10070
- });
10071
- i.event.bind(i[scrollbarY], 'touchstart', function (e) {
10072
- bindMoves(e, true);
10073
- });
10074
- }
10075
-
10076
- function keyboard(i) {
10077
- var element = i.element;
10078
-
10079
- var elementHovered = function () { return matches(element, ':hover'); };
10080
- var scrollbarFocused = function () { return matches(i.scrollbarX, ':focus') || matches(i.scrollbarY, ':focus'); };
10081
-
10082
- function shouldPreventDefault(deltaX, deltaY) {
10083
- var scrollTop = Math.floor(element.scrollTop);
10084
- if (deltaX === 0) {
10085
- if (!i.scrollbarYActive) {
10086
- return false;
10087
- }
10088
- if (
10089
- (scrollTop === 0 && deltaY > 0) ||
10090
- (scrollTop >= i.contentHeight - i.containerHeight && deltaY < 0)
10091
- ) {
10092
- return !i.settings.wheelPropagation;
10093
- }
10094
- }
10095
-
10096
- var scrollLeft = element.scrollLeft;
10097
- if (deltaY === 0) {
10098
- if (!i.scrollbarXActive) {
10099
- return false;
10100
- }
10101
- if (
10102
- (scrollLeft === 0 && deltaX < 0) ||
10103
- (scrollLeft >= i.contentWidth - i.containerWidth && deltaX > 0)
10104
- ) {
10105
- return !i.settings.wheelPropagation;
10106
- }
10107
- }
10108
- return true;
10109
- }
10110
-
10111
- i.event.bind(i.ownerDocument, 'keydown', function (e) {
10112
- if (
10113
- (e.isDefaultPrevented && e.isDefaultPrevented()) ||
10114
- e.defaultPrevented
10115
- ) {
10116
- return;
10117
- }
10118
-
10119
- if (!elementHovered() && !scrollbarFocused()) {
10120
- return;
10121
- }
10122
-
10123
- var activeElement = document.activeElement
10124
- ? document.activeElement
10125
- : i.ownerDocument.activeElement;
10126
- if (activeElement) {
10127
- if (activeElement.tagName === 'IFRAME') {
10128
- activeElement = activeElement.contentDocument.activeElement;
10129
- } else {
10130
- // go deeper if element is a webcomponent
10131
- while (activeElement.shadowRoot) {
10132
- activeElement = activeElement.shadowRoot.activeElement;
10133
- }
10134
- }
10135
- if (isEditable(activeElement)) {
10136
- return;
10137
- }
10138
- }
10139
-
10140
- var deltaX = 0;
10141
- var deltaY = 0;
10142
-
10143
- switch (e.which) {
10144
- case 37: // left
10145
- if (e.metaKey) {
10146
- deltaX = -i.contentWidth;
10147
- } else if (e.altKey) {
10148
- deltaX = -i.containerWidth;
10149
- } else {
10150
- deltaX = -30;
10151
- }
10152
- break;
10153
- case 38: // up
10154
- if (e.metaKey) {
10155
- deltaY = i.contentHeight;
10156
- } else if (e.altKey) {
10157
- deltaY = i.containerHeight;
10158
- } else {
10159
- deltaY = 30;
10160
- }
10161
- break;
10162
- case 39: // right
10163
- if (e.metaKey) {
10164
- deltaX = i.contentWidth;
10165
- } else if (e.altKey) {
10166
- deltaX = i.containerWidth;
10167
- } else {
10168
- deltaX = 30;
10169
- }
10170
- break;
10171
- case 40: // down
10172
- if (e.metaKey) {
10173
- deltaY = -i.contentHeight;
10174
- } else if (e.altKey) {
10175
- deltaY = -i.containerHeight;
10176
- } else {
10177
- deltaY = -30;
10178
- }
10179
- break;
10180
- case 32: // space bar
10181
- if (e.shiftKey) {
10182
- deltaY = i.containerHeight;
10183
- } else {
10184
- deltaY = -i.containerHeight;
10185
- }
10186
- break;
10187
- case 33: // page up
10188
- deltaY = i.containerHeight;
10189
- break;
10190
- case 34: // page down
10191
- deltaY = -i.containerHeight;
10192
- break;
10193
- case 36: // home
10194
- deltaY = i.contentHeight;
10195
- break;
10196
- case 35: // end
10197
- deltaY = -i.contentHeight;
10198
- break;
10199
- default:
10200
- return;
10201
- }
10202
-
10203
- if (i.settings.suppressScrollX && deltaX !== 0) {
10204
- return;
10205
- }
10206
- if (i.settings.suppressScrollY && deltaY !== 0) {
10207
- return;
10208
- }
10209
-
10210
- element.scrollTop -= deltaY;
10211
- element.scrollLeft += deltaX;
10212
- updateGeometry(i);
10213
-
10214
- if (shouldPreventDefault(deltaX, deltaY)) {
10215
- e.preventDefault();
10216
- }
10217
- });
10218
- }
10219
-
10220
- function wheel(i) {
10221
- var element = i.element;
10222
-
10223
- function shouldPreventDefault(deltaX, deltaY) {
10224
- var roundedScrollTop = Math.floor(element.scrollTop);
10225
- var isTop = element.scrollTop === 0;
10226
- var isBottom =
10227
- roundedScrollTop + element.offsetHeight === element.scrollHeight;
10228
- var isLeft = element.scrollLeft === 0;
10229
- var isRight =
10230
- element.scrollLeft + element.offsetWidth === element.scrollWidth;
10231
-
10232
- var hitsBound;
10233
-
10234
- // pick axis with primary direction
10235
- if (Math.abs(deltaY) > Math.abs(deltaX)) {
10236
- hitsBound = isTop || isBottom;
10237
- } else {
10238
- hitsBound = isLeft || isRight;
10239
- }
10240
-
10241
- return hitsBound ? !i.settings.wheelPropagation : true;
10242
- }
10243
-
10244
- function getDeltaFromEvent(e) {
10245
- var deltaX = e.deltaX;
10246
- var deltaY = -1 * e.deltaY;
10247
-
10248
- if (typeof deltaX === 'undefined' || typeof deltaY === 'undefined') {
10249
- // OS X Safari
10250
- deltaX = (-1 * e.wheelDeltaX) / 6;
10251
- deltaY = e.wheelDeltaY / 6;
10252
- }
10253
-
10254
- if (e.deltaMode && e.deltaMode === 1) {
10255
- // Firefox in deltaMode 1: Line scrolling
10256
- deltaX *= 10;
10257
- deltaY *= 10;
10258
- }
10259
-
10260
- if (deltaX !== deltaX && deltaY !== deltaY /* NaN checks */) {
10261
- // IE in some mouse drivers
10262
- deltaX = 0;
10263
- deltaY = e.wheelDelta;
10264
- }
10265
-
10266
- if (e.shiftKey) {
10267
- // reverse axis with shift key
10268
- return [-deltaY, -deltaX];
10269
- }
10270
- return [deltaX, deltaY];
10271
- }
10272
-
10273
- function shouldBeConsumedByChild(target, deltaX, deltaY) {
10274
- // FIXME: this is a workaround for <select> issue in FF and IE #571
10275
- if (!env.isWebKit && element.querySelector('select:focus')) {
10276
- return true;
10277
- }
10278
-
10279
- if (!element.contains(target)) {
10280
- return false;
10281
- }
10282
-
10283
- var cursor = target;
10284
-
10285
- while (cursor && cursor !== element) {
10286
- if (cursor.classList.contains(cls.element.consuming)) {
10287
- return true;
10288
- }
10289
-
10290
- var style = get(cursor);
10291
-
10292
- // if deltaY && vertical scrollable
10293
- if (deltaY && style.overflowY.match(/(scroll|auto)/)) {
10294
- var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;
10295
- if (maxScrollTop > 0) {
10296
- if (
10297
- (cursor.scrollTop > 0 && deltaY < 0) ||
10298
- (cursor.scrollTop < maxScrollTop && deltaY > 0)
10299
- ) {
10300
- return true;
10301
- }
10302
- }
10303
- }
10304
- // if deltaX && horizontal scrollable
10305
- if (deltaX && style.overflowX.match(/(scroll|auto)/)) {
10306
- var maxScrollLeft = cursor.scrollWidth - cursor.clientWidth;
10307
- if (maxScrollLeft > 0) {
10308
- if (
10309
- (cursor.scrollLeft > 0 && deltaX < 0) ||
10310
- (cursor.scrollLeft < maxScrollLeft && deltaX > 0)
10311
- ) {
10312
- return true;
10313
- }
10314
- }
10315
- }
10316
-
10317
- cursor = cursor.parentNode;
10318
- }
10319
-
10320
- return false;
10321
- }
10322
-
10323
- function mousewheelHandler(e) {
10324
- var ref = getDeltaFromEvent(e);
10325
- var deltaX = ref[0];
10326
- var deltaY = ref[1];
10327
-
10328
- if (shouldBeConsumedByChild(e.target, deltaX, deltaY)) {
10329
- return;
10330
- }
10331
-
10332
- var shouldPrevent = false;
10333
- if (!i.settings.useBothWheelAxes) {
10334
- // deltaX will only be used for horizontal scrolling and deltaY will
10335
- // only be used for vertical scrolling - this is the default
10336
- element.scrollTop -= deltaY * i.settings.wheelSpeed;
10337
- element.scrollLeft += deltaX * i.settings.wheelSpeed;
10338
- } else if (i.scrollbarYActive && !i.scrollbarXActive) {
10339
- // only vertical scrollbar is active and useBothWheelAxes option is
10340
- // active, so let's scroll vertical bar using both mouse wheel axes
10341
- if (deltaY) {
10342
- element.scrollTop -= deltaY * i.settings.wheelSpeed;
10343
- } else {
10344
- element.scrollTop += deltaX * i.settings.wheelSpeed;
10345
- }
10346
- shouldPrevent = true;
10347
- } else if (i.scrollbarXActive && !i.scrollbarYActive) {
10348
- // useBothWheelAxes and only horizontal bar is active, so use both
10349
- // wheel axes for horizontal bar
10350
- if (deltaX) {
10351
- element.scrollLeft += deltaX * i.settings.wheelSpeed;
10352
- } else {
10353
- element.scrollLeft -= deltaY * i.settings.wheelSpeed;
10354
- }
10355
- shouldPrevent = true;
10356
- }
10357
-
10358
- updateGeometry(i);
10359
-
10360
- shouldPrevent = shouldPrevent || shouldPreventDefault(deltaX, deltaY);
10361
- if (shouldPrevent && !e.ctrlKey) {
10362
- e.stopPropagation();
10363
- e.preventDefault();
10364
- }
10365
- }
10366
-
10367
- if (typeof window.onwheel !== 'undefined') {
10368
- i.event.bind(element, 'wheel', mousewheelHandler);
10369
- } else if (typeof window.onmousewheel !== 'undefined') {
10370
- i.event.bind(element, 'mousewheel', mousewheelHandler);
10371
- }
10372
- }
10373
-
10374
- function touch(i) {
10375
- if (!env.supportsTouch && !env.supportsIePointer) {
10376
- return;
10377
- }
10378
-
10379
- var element = i.element;
10380
-
10381
- function shouldPrevent(deltaX, deltaY) {
10382
- var scrollTop = Math.floor(element.scrollTop);
10383
- var scrollLeft = element.scrollLeft;
10384
- var magnitudeX = Math.abs(deltaX);
10385
- var magnitudeY = Math.abs(deltaY);
10386
-
10387
- if (magnitudeY > magnitudeX) {
10388
- // user is perhaps trying to swipe up/down the page
10389
-
10390
- if (
10391
- (deltaY < 0 && scrollTop === i.contentHeight - i.containerHeight) ||
10392
- (deltaY > 0 && scrollTop === 0)
10393
- ) {
10394
- // set prevent for mobile Chrome refresh
10395
- return window.scrollY === 0 && deltaY > 0 && env.isChrome;
10396
- }
10397
- } else if (magnitudeX > magnitudeY) {
10398
- // user is perhaps trying to swipe left/right across the page
10399
-
10400
- if (
10401
- (deltaX < 0 && scrollLeft === i.contentWidth - i.containerWidth) ||
10402
- (deltaX > 0 && scrollLeft === 0)
10403
- ) {
10404
- return true;
10405
- }
10406
- }
10407
-
10408
- return true;
10409
- }
10410
-
10411
- function applyTouchMove(differenceX, differenceY) {
10412
- element.scrollTop -= differenceY;
10413
- element.scrollLeft -= differenceX;
10414
-
10415
- updateGeometry(i);
10416
- }
10417
-
10418
- var startOffset = {};
10419
- var startTime = 0;
10420
- var speed = {};
10421
- var easingLoop = null;
10422
-
10423
- function getTouch(e) {
10424
- if (e.targetTouches) {
10425
- return e.targetTouches[0];
10426
- } else {
10427
- // Maybe IE pointer
10428
- return e;
10429
- }
10430
- }
10431
-
10432
- function shouldHandle(e) {
10433
- if (e.pointerType && e.pointerType === 'pen' && e.buttons === 0) {
10434
- return false;
10435
- }
10436
- if (e.targetTouches && e.targetTouches.length === 1) {
10437
- return true;
10438
- }
10439
- if (
10440
- e.pointerType &&
10441
- e.pointerType !== 'mouse' &&
10442
- e.pointerType !== e.MSPOINTER_TYPE_MOUSE
10443
- ) {
10444
- return true;
10445
- }
10446
- return false;
10447
- }
10448
-
10449
- function touchStart(e) {
10450
- if (!shouldHandle(e)) {
10451
- return;
10452
- }
10453
-
10454
- var touch = getTouch(e);
10455
-
10456
- startOffset.pageX = touch.pageX;
10457
- startOffset.pageY = touch.pageY;
10458
-
10459
- startTime = new Date().getTime();
10460
-
10461
- if (easingLoop !== null) {
10462
- clearInterval(easingLoop);
10463
- }
10464
- }
10465
-
10466
- function shouldBeConsumedByChild(target, deltaX, deltaY) {
10467
- if (!element.contains(target)) {
10468
- return false;
10469
- }
10470
-
10471
- var cursor = target;
10472
-
10473
- while (cursor && cursor !== element) {
10474
- if (cursor.classList.contains(cls.element.consuming)) {
10475
- return true;
10476
- }
10477
-
10478
- var style = get(cursor);
10479
-
10480
- // if deltaY && vertical scrollable
10481
- if (deltaY && style.overflowY.match(/(scroll|auto)/)) {
10482
- var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;
10483
- if (maxScrollTop > 0) {
10484
- if (
10485
- (cursor.scrollTop > 0 && deltaY < 0) ||
10486
- (cursor.scrollTop < maxScrollTop && deltaY > 0)
10487
- ) {
10488
- return true;
10489
- }
10490
- }
10491
- }
10492
- // if deltaX && horizontal scrollable
10493
- if (deltaX && style.overflowX.match(/(scroll|auto)/)) {
10494
- var maxScrollLeft = cursor.scrollWidth - cursor.clientWidth;
10495
- if (maxScrollLeft > 0) {
10496
- if (
10497
- (cursor.scrollLeft > 0 && deltaX < 0) ||
10498
- (cursor.scrollLeft < maxScrollLeft && deltaX > 0)
10499
- ) {
10500
- return true;
10501
- }
10502
- }
10503
- }
10504
-
10505
- cursor = cursor.parentNode;
10506
- }
10507
-
10508
- return false;
10509
- }
10510
-
10511
- function touchMove(e) {
10512
- if (shouldHandle(e)) {
10513
- var touch = getTouch(e);
10514
-
10515
- var currentOffset = { pageX: touch.pageX, pageY: touch.pageY };
10516
-
10517
- var differenceX = currentOffset.pageX - startOffset.pageX;
10518
- var differenceY = currentOffset.pageY - startOffset.pageY;
10519
-
10520
- if (shouldBeConsumedByChild(e.target, differenceX, differenceY)) {
10521
- return;
10522
- }
10523
-
10524
- applyTouchMove(differenceX, differenceY);
10525
- startOffset = currentOffset;
10526
-
10527
- var currentTime = new Date().getTime();
10528
-
10529
- var timeGap = currentTime - startTime;
10530
- if (timeGap > 0) {
10531
- speed.x = differenceX / timeGap;
10532
- speed.y = differenceY / timeGap;
10533
- startTime = currentTime;
10534
- }
10535
-
10536
- if (shouldPrevent(differenceX, differenceY)) {
10537
- e.preventDefault();
10538
- }
10539
- }
10540
- }
10541
- function touchEnd() {
10542
- if (i.settings.swipeEasing) {
10543
- clearInterval(easingLoop);
10544
- easingLoop = setInterval(function() {
10545
- if (i.isInitialized) {
10546
- clearInterval(easingLoop);
10547
- return;
10548
- }
10549
-
10550
- if (!speed.x && !speed.y) {
10551
- clearInterval(easingLoop);
10552
- return;
10553
- }
10554
-
10555
- if (Math.abs(speed.x) < 0.01 && Math.abs(speed.y) < 0.01) {
10556
- clearInterval(easingLoop);
10557
- return;
10558
- }
10559
-
10560
- if (!i.element) {
10561
- clearInterval(easingLoop);
10562
- return;
10563
- }
10564
-
10565
- applyTouchMove(speed.x * 30, speed.y * 30);
10566
-
10567
- speed.x *= 0.8;
10568
- speed.y *= 0.8;
10569
- }, 10);
10570
- }
10571
- }
10572
-
10573
- if (env.supportsTouch) {
10574
- i.event.bind(element, 'touchstart', touchStart);
10575
- i.event.bind(element, 'touchmove', touchMove);
10576
- i.event.bind(element, 'touchend', touchEnd);
10577
- } else if (env.supportsIePointer) {
10578
- if (window.PointerEvent) {
10579
- i.event.bind(element, 'pointerdown', touchStart);
10580
- i.event.bind(element, 'pointermove', touchMove);
10581
- i.event.bind(element, 'pointerup', touchEnd);
10582
- } else if (window.MSPointerEvent) {
10583
- i.event.bind(element, 'MSPointerDown', touchStart);
10584
- i.event.bind(element, 'MSPointerMove', touchMove);
10585
- i.event.bind(element, 'MSPointerUp', touchEnd);
10586
- }
10587
- }
10588
- }
10589
-
10590
- var defaultSettings = function () { return ({
10591
- handlers: ['click-rail', 'drag-thumb', 'keyboard', 'wheel', 'touch'],
10592
- maxScrollbarLength: null,
10593
- minScrollbarLength: null,
10594
- scrollingThreshold: 1000,
10595
- scrollXMarginOffset: 0,
10596
- scrollYMarginOffset: 0,
10597
- suppressScrollX: false,
10598
- suppressScrollY: false,
10599
- swipeEasing: true,
10600
- useBothWheelAxes: false,
10601
- wheelPropagation: true,
10602
- wheelSpeed: 1,
10603
- }); };
10604
-
10605
- var handlers = {
10606
- 'click-rail': clickRail,
10607
- 'drag-thumb': dragThumb,
10608
- keyboard: keyboard,
10609
- wheel: wheel,
10610
- touch: touch,
10611
- };
10612
-
10613
- var PerfectScrollbar = function PerfectScrollbar(element, userSettings) {
10614
- var this$2 = this;
10615
-
10616
- var this$1 = this;
10617
- if ( userSettings === void 0 ) { userSettings = {}; }
10618
-
10619
- if (typeof element === 'string') {
10620
- element = document.querySelector(element);
10621
- }
10622
-
10623
- if (!element || !element.nodeName) {
10624
- throw new Error('no element is specified to initialize PerfectScrollbar');
10625
- }
10626
-
10627
- this.element = element;
10628
-
10629
- element.classList.add(cls.main);
10630
-
10631
- this.settings = defaultSettings();
10632
- for (var key in userSettings) {
10633
- this$2.settings[key] = userSettings[key];
10634
- }
10635
-
10636
- this.containerWidth = null;
10637
- this.containerHeight = null;
10638
- this.contentWidth = null;
10639
- this.contentHeight = null;
10640
-
10641
- var focus = function () { return element.classList.add(cls.state.focus); };
10642
- var blur = function () { return element.classList.remove(cls.state.focus); };
10643
-
10644
- this.isRtl = get(element).direction === 'rtl';
10645
- if (this.isRtl === true) {
10646
- element.classList.add(cls.rtl);
10647
- }
10648
- this.isNegativeScroll = (function () {
10649
- var originalScrollLeft = element.scrollLeft;
10650
- var result = null;
10651
- element.scrollLeft = -1;
10652
- result = element.scrollLeft < 0;
10653
- element.scrollLeft = originalScrollLeft;
10654
- return result;
10655
- })();
10656
- this.negativeScrollAdjustment = this.isNegativeScroll
10657
- ? element.scrollWidth - element.clientWidth
10658
- : 0;
10659
- this.event = new EventManager();
10660
- this.ownerDocument = element.ownerDocument || document;
10661
-
10662
- this.scrollbarXRail = div(cls.element.rail('x'));
10663
- element.appendChild(this.scrollbarXRail);
10664
- this.scrollbarX = div(cls.element.thumb('x'));
10665
- this.scrollbarXRail.appendChild(this.scrollbarX);
10666
- this.scrollbarX.setAttribute('tabindex', 0);
10667
- this.event.bind(this.scrollbarX, 'focus', focus);
10668
- this.event.bind(this.scrollbarX, 'blur', blur);
10669
- this.scrollbarXActive = null;
10670
- this.scrollbarXWidth = null;
10671
- this.scrollbarXLeft = null;
10672
- var railXStyle = get(this.scrollbarXRail);
10673
- this.scrollbarXBottom = parseInt(railXStyle.bottom, 10);
10674
- if (isNaN(this.scrollbarXBottom)) {
10675
- this.isScrollbarXUsingBottom = false;
10676
- this.scrollbarXTop = toInt(railXStyle.top);
10677
- } else {
10678
- this.isScrollbarXUsingBottom = true;
10679
- }
10680
- this.railBorderXWidth =
10681
- toInt(railXStyle.borderLeftWidth) + toInt(railXStyle.borderRightWidth);
10682
- // Set rail to display:block to calculate margins
10683
- set(this.scrollbarXRail, { display: 'block' });
10684
- this.railXMarginWidth =
10685
- toInt(railXStyle.marginLeft) + toInt(railXStyle.marginRight);
10686
- set(this.scrollbarXRail, { display: '' });
10687
- this.railXWidth = null;
10688
- this.railXRatio = null;
10689
-
10690
- this.scrollbarYRail = div(cls.element.rail('y'));
10691
- element.appendChild(this.scrollbarYRail);
10692
- this.scrollbarY = div(cls.element.thumb('y'));
10693
- this.scrollbarYRail.appendChild(this.scrollbarY);
10694
- this.scrollbarY.setAttribute('tabindex', 0);
10695
- this.event.bind(this.scrollbarY, 'focus', focus);
10696
- this.event.bind(this.scrollbarY, 'blur', blur);
10697
- this.scrollbarYActive = null;
10698
- this.scrollbarYHeight = null;
10699
- this.scrollbarYTop = null;
10700
- var railYStyle = get(this.scrollbarYRail);
10701
- this.scrollbarYRight = parseInt(railYStyle.right, 10);
10702
- if (isNaN(this.scrollbarYRight)) {
10703
- this.isScrollbarYUsingRight = false;
10704
- this.scrollbarYLeft = toInt(railYStyle.left);
10705
- } else {
10706
- this.isScrollbarYUsingRight = true;
10707
- }
10708
- this.scrollbarYOuterWidth = this.isRtl ? outerWidth(this.scrollbarY) : null;
10709
- this.railBorderYWidth =
10710
- toInt(railYStyle.borderTopWidth) + toInt(railYStyle.borderBottomWidth);
10711
- set(this.scrollbarYRail, { display: 'block' });
10712
- this.railYMarginHeight =
10713
- toInt(railYStyle.marginTop) + toInt(railYStyle.marginBottom);
10714
- set(this.scrollbarYRail, { display: '' });
10715
- this.railYHeight = null;
10716
- this.railYRatio = null;
10717
-
10718
- this.reach = {
10719
- x:
10720
- element.scrollLeft <= 0
10721
- ? 'start'
10722
- : element.scrollLeft >= this.contentWidth - this.containerWidth
10723
- ? 'end'
10724
- : null,
10725
- y:
10726
- element.scrollTop <= 0
10727
- ? 'start'
10728
- : element.scrollTop >= this.contentHeight - this.containerHeight
10729
- ? 'end'
10730
- : null,
10731
- };
10732
-
10733
- this.isAlive = true;
10734
-
10735
- this.settings.handlers.forEach(function (handlerName) { return handlers[handlerName](this$1); });
10736
-
10737
- this.lastScrollTop = Math.floor(element.scrollTop); // for onScroll only
10738
- this.lastScrollLeft = element.scrollLeft; // for onScroll only
10739
- this.event.bind(this.element, 'scroll', function (e) { return this$1.onScroll(e); });
10740
- updateGeometry(this);
10741
- };
10742
-
10743
- PerfectScrollbar.prototype.update = function update () {
10744
- if (!this.isAlive) {
10745
- return;
10746
- }
10747
-
10748
- // Recalcuate negative scrollLeft adjustment
10749
- this.negativeScrollAdjustment = this.isNegativeScroll
10750
- ? this.element.scrollWidth - this.element.clientWidth
10751
- : 0;
10752
-
10753
- // Recalculate rail margins
10754
- set(this.scrollbarXRail, { display: 'block' });
10755
- set(this.scrollbarYRail, { display: 'block' });
10756
- this.railXMarginWidth =
10757
- toInt(get(this.scrollbarXRail).marginLeft) +
10758
- toInt(get(this.scrollbarXRail).marginRight);
10759
- this.railYMarginHeight =
10760
- toInt(get(this.scrollbarYRail).marginTop) +
10761
- toInt(get(this.scrollbarYRail).marginBottom);
10762
-
10763
- // Hide scrollbars not to affect scrollWidth and scrollHeight
10764
- set(this.scrollbarXRail, { display: 'none' });
10765
- set(this.scrollbarYRail, { display: 'none' });
10766
-
10767
- updateGeometry(this);
10768
-
10769
- processScrollDiff(this, 'top', 0, false, true);
10770
- processScrollDiff(this, 'left', 0, false, true);
10771
-
10772
- set(this.scrollbarXRail, { display: '' });
10773
- set(this.scrollbarYRail, { display: '' });
10774
- };
10775
-
10776
- PerfectScrollbar.prototype.onScroll = function onScroll (e) {
10777
- if (!this.isAlive) {
10778
- return;
10779
- }
10780
-
10781
- updateGeometry(this);
10782
- processScrollDiff(this, 'top', this.element.scrollTop - this.lastScrollTop);
10783
- processScrollDiff(
10784
- this,
10785
- 'left',
10786
- this.element.scrollLeft - this.lastScrollLeft
10787
- );
10788
-
10789
- this.lastScrollTop = Math.floor(this.element.scrollTop);
10790
- this.lastScrollLeft = this.element.scrollLeft;
10791
- };
10792
-
10793
- PerfectScrollbar.prototype.destroy = function destroy () {
10794
- if (!this.isAlive) {
10795
- return;
10796
- }
10797
-
10798
- this.event.unbindAll();
10799
- remove(this.scrollbarX);
10800
- remove(this.scrollbarY);
10801
- remove(this.scrollbarXRail);
10802
- remove(this.scrollbarYRail);
10803
- this.removePsClasses();
10804
-
10805
- // unset elements
10806
- this.element = null;
10807
- this.scrollbarX = null;
10808
- this.scrollbarY = null;
10809
- this.scrollbarXRail = null;
10810
- this.scrollbarYRail = null;
10811
-
10812
- this.isAlive = false;
10813
- };
10814
-
10815
- PerfectScrollbar.prototype.removePsClasses = function removePsClasses () {
10816
- this.element.className = this.element.className
10817
- .split(' ')
10818
- .filter(function (name) { return !name.match(/^ps([-_].+|)$/); })
10819
- .join(' ');
10820
- };
10821
-
10822
- var PerfectScrollbar$1 = {
10823
- name: 'PerfectScrollbar',
10824
- props: {
10825
- options: {
10826
- type: Object,
10827
- required: false,
10828
- default: function () {}
10829
- },
10830
- tag: {
10831
- type: String,
10832
- required: false,
10833
- default: 'div'
10834
- },
10835
- watchOptions: {
10836
- type: Boolean,
10837
- required: false,
10838
- default: false
10839
- }
10840
- },
10841
- data: function data () {
10842
- return {
10843
- ps: null
10844
- }
10845
- },
10846
- watch: {
10847
- watchOptions: function watchOptions (shouldWatch) {
10848
- if (!shouldWatch && this.watcher) {
10849
- this.watcher();
10850
- } else {
10851
- this.createWatcher();
10852
- }
10853
- }
10854
- },
10855
- mounted: function mounted () {
10856
- this.create();
10857
-
10858
- if (this.watchOptions) {
10859
- this.createWatcher();
10860
- }
10861
- },
10862
- updated: function updated () {
10863
- var this$1 = this;
10864
-
10865
- this.$nextTick(function () {
10866
- this$1.update();
10867
- });
10868
- },
10869
- beforeDestroy: function beforeDestroy () {
10870
- this.destroy();
10871
- },
10872
- methods: {
10873
- create: function create () {
10874
- if (!(this.ps && this.$isServer)) {
10875
- this.ps = new PerfectScrollbar(this.$refs.container, this.options);
10876
- }
10877
- },
10878
- createWatcher: function createWatcher () {
10879
- var this$1 = this;
10880
-
10881
- this.watcher = this.$watch('options', function () {
10882
- this$1.destroy();
10883
- this$1.create();
10884
- }, {
10885
- deep: true
10886
- });
10887
- },
10888
- update: function update () {
10889
- if (this.ps) {
10890
- this.ps.update();
10891
- }
10892
- },
10893
- destroy: function destroy () {
10894
- if (this.ps) {
10895
- this.ps.destroy();
10896
- this.ps = null;
10897
- }
10898
- }
10899
- },
10900
- render: function render (h) {
10901
- return h(this.tag,
10902
- {
10903
- ref: 'container',
10904
- class: 'ps',
10905
- on: this.$listeners
10906
- },
10907
- this.$slots.default)
10908
- }
10909
- };
10910
-
10911
- function install (Vue, settings) {
10912
- if (settings) {
10913
- if (settings.name && typeof settings.name === 'string') {
10914
- PerfectScrollbar$1.name = settings.name;
10915
- }
10916
-
10917
- if (settings.options && typeof settings.options === 'object') {
10918
- PerfectScrollbar$1.props.options.default = function () {
10919
- return settings.options
10920
- };
10921
- }
10922
-
10923
- if (settings.tag && typeof settings.tag === 'string') {
10924
- PerfectScrollbar$1.props.tag.default = settings.tag;
10925
- }
10926
-
10927
- if (settings.watchOptions && typeof settings.watchOptions === 'boolean') {
10928
- PerfectScrollbar$1.props.watchOptions = settings.watchOptions;
10929
- }
10930
- }
10931
-
10932
- Vue.component(
10933
- PerfectScrollbar$1.name,
10934
- PerfectScrollbar$1
10935
- );
10936
- }
10937
-
10938
- exports.install = install;
10939
- exports.PerfectScrollbar = PerfectScrollbar$1;
10940
- exports.default = install;
10941
-
10942
- Object.defineProperty(exports, '__esModule', { value: true });
10943
-
10944
- })));
10945
-
10946
-
10947
9436
  /***/ }),
10948
9437
 
10949
9438
  /***/ "a6ff":
@@ -11409,13 +9898,6 @@ collapse.install = function (Vue) {
11409
9898
 
11410
9899
  /***/ }),
11411
9900
 
11412
- /***/ "c0f2":
11413
- /***/ (function(module, exports) {
11414
-
11415
- module.exports = require("vue2-perfect-scrollbar/dist/vue2-perfect-scrollbar.css");
11416
-
11417
- /***/ }),
11418
-
11419
9901
  /***/ "c167":
11420
9902
  /***/ (function(module, exports) {
11421
9903
 
@@ -14082,6 +12564,13 @@ exports.default = {
14082
12564
 
14083
12565
  /***/ }),
14084
12566
 
12567
+ /***/ "f2fe":
12568
+ /***/ (function(module, exports, __webpack_require__) {
12569
+
12570
+ // extracted by mini-css-extract-plugin
12571
+
12572
+ /***/ }),
12573
+
14085
12574
  /***/ "f3ad":
14086
12575
  /***/ (function(module, exports, __webpack_require__) {
14087
12576
 
@@ -15099,6 +13588,13 @@ module.exports = require("parse-svg-path");
15099
13588
 
15100
13589
  /***/ }),
15101
13590
 
13591
+ /***/ "f958":
13592
+ /***/ (function(module, exports, __webpack_require__) {
13593
+
13594
+ // extracted by mini-css-extract-plugin
13595
+
13596
+ /***/ }),
13597
+
15102
13598
  /***/ "f989":
15103
13599
  /***/ (function(module, exports) {
15104
13600
 
@@ -20526,13 +19022,6 @@ module.exports = function calcMarkerColorscale(gd, trace) {
20526
19022
  };
20527
19023
 
20528
19024
 
20529
- /***/ }),
20530
-
20531
- /***/ "09e0":
20532
- /***/ (function(module, exports) {
20533
-
20534
- module.exports = __webpack_require__("5889");
20535
-
20536
19025
  /***/ }),
20537
19026
 
20538
19027
  /***/ "0a5b":
@@ -22353,6 +20842,13 @@ module.exports = function setCursor(el3, csr) {
22353
20842
  };
22354
20843
 
22355
20844
 
20845
+ /***/ }),
20846
+
20847
+ /***/ "0f3a":
20848
+ /***/ (function(module, exports) {
20849
+
20850
+ module.exports = __webpack_require__("2050");
20851
+
22356
20852
  /***/ }),
22357
20853
 
22358
20854
  /***/ "0fe2":
@@ -23945,13 +22441,6 @@ module.exports = function handleAnnotationCommonDefaults(annIn, annOut, fullLayo
23945
22441
  };
23946
22442
 
23947
22443
 
23948
- /***/ }),
23949
-
23950
- /***/ "17f1":
23951
- /***/ (function(module, exports, __webpack_require__) {
23952
-
23953
- // extracted by mini-css-extract-plugin
23954
-
23955
22444
  /***/ }),
23956
22445
 
23957
22446
  /***/ "1876":
@@ -30732,12 +29221,12 @@ function () {
30732
29221
  _classCallCheck(this, Sparccsv);
30733
29222
 
30734
29223
  _defineProperty(this, "downloadCSV", function (args) {
30735
- /* Use like so:
30736
- downloadCSV({
30737
- filename: 'filename.csv',
30738
- data: [{'a': '1', 'b': '2'}],
30739
- columns: ['a','b']
30740
- });
29224
+ /* Use like so:
29225
+ downloadCSV({
29226
+ filename: 'filename.csv',
29227
+ data: [{'a': '1', 'b': '2'}],
29228
+ columns: ['a','b']
29229
+ });
30741
29230
  */
30742
29231
  var filename = args.filename || 'export.csv';
30743
29232
  var csv = Papa.unparse(args.data);
@@ -49023,17 +47512,6 @@ function reposition(gd, buttons, opts, axName, selector) {
49023
47512
  }
49024
47513
 
49025
47514
 
49026
- /***/ }),
49027
-
49028
- /***/ "8921":
49029
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
49030
-
49031
- "use strict";
49032
- /* 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");
49033
- /* 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__);
49034
- /* unused harmony reexport * */
49035
- /* 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);
49036
-
49037
47515
  /***/ }),
49038
47516
 
49039
47517
  /***/ "8b1d":
@@ -58377,6 +56855,17 @@ module.exports = {
58377
56855
  };
58378
56856
 
58379
56857
 
56858
+ /***/ }),
56859
+
56860
+ /***/ "b19e":
56861
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
56862
+
56863
+ "use strict";
56864
+ /* 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");
56865
+ /* 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__);
56866
+ /* unused harmony reexport * */
56867
+ /* 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);
56868
+
58380
56869
  /***/ }),
58381
56870
 
58382
56871
  /***/ "b34d":
@@ -58940,6 +57429,13 @@ exports.applyContainerArrayChanges = function applyContainerArrayChanges(gd, np,
58940
57429
  };
58941
57430
 
58942
57431
 
57432
+ /***/ }),
57433
+
57434
+ /***/ "b46e":
57435
+ /***/ (function(module, exports, __webpack_require__) {
57436
+
57437
+ // extracted by mini-css-extract-plugin
57438
+
58943
57439
  /***/ }),
58944
57440
 
58945
57441
  /***/ "b5e2":
@@ -80203,12 +78699,12 @@ if (typeof window !== 'undefined') {
80203
78699
  // Indicate to webpack that this file can be concatenated
80204
78700
  /* harmony default export */ var setPublicPath = (null);
80205
78701
 
80206
- // 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&
78702
+ // 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&
80207
78703
  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)}
80208
78704
  var staticRenderFns = []
80209
78705
 
80210
78706
 
80211
- // CONCATENATED MODULE: ./src/components/PlotVuer.vue?vue&type=template&id=1c3d0ba6&scoped=true&
78707
+ // CONCATENATED MODULE: ./src/components/PlotVuer.vue?vue&type=template&id=08e10993&scoped=true&
80212
78708
 
80213
78709
  // EXTERNAL MODULE: external "core-js/modules/es.symbol"
80214
78710
  var es_symbol_ = __webpack_require__("6049");
@@ -80462,6 +78958,10 @@ external_vue_default.a.use(popover_default.a);
80462
78958
  return [];
80463
78959
  }
80464
78960
  },
78961
+ layoutInput: {
78962
+ type: Object,
78963
+ default: function _default() {}
78964
+ },
80465
78965
  plotType: {
80466
78966
  type: String,
80467
78967
  default: 'heatmap'
@@ -80573,7 +79073,13 @@ external_vue_default.a.use(popover_default.a);
80573
79073
 
80574
79074
  // Send data to plotly directly if 'plotly-only' is specified
80575
79075
  if (this.plotType === 'plotly-only') {
80576
- custom_plotly.newPlot(this.$refs.container, this.dataInput, this.layout, this.getOptions());
79076
+ if (Object.keys(this.layoutInput).length !== 0) {
79077
+ // check if we have layout input
79078
+ custom_plotly.newPlot(this.$refs.container, this.dataInput, this.layoutInput, this.getOptions());
79079
+ } else {
79080
+ custom_plotly.newPlot(this.$refs.container, this.dataInput, this.layout, this.getOptions());
79081
+ }
79082
+
80577
79083
  return;
80578
79084
  } else {
80579
79085
  // Else we treat the data as if it was in csv format
@@ -80848,11 +79354,11 @@ external_vue_default.a.use(popover_default.a);
80848
79354
  });
80849
79355
  // CONCATENATED MODULE: ./src/components/PlotVuer.vue?vue&type=script&lang=js&
80850
79356
  /* harmony default export */ var components_PlotVuervue_type_script_lang_js_ = (PlotVuervue_type_script_lang_js_);
80851
- // EXTERNAL MODULE: external "element-ui/lib/theme-chalk/index.css?vue&type=style&index=0&id=1c3d0ba6&scoped=true&lang=css&"
80852
- var theme_chalkvue_type_style_index_0_id_1c3d0ba6_scoped_true_lang_css_ = __webpack_require__("09e0");
79357
+ // EXTERNAL MODULE: external "element-ui/lib/theme-chalk/index.css?vue&type=style&index=0&id=08e10993&scoped=true&lang=css&"
79358
+ var theme_chalkvue_type_style_index_0_id_08e10993_scoped_true_lang_css_ = __webpack_require__("0f3a");
80853
79359
 
80854
- // EXTERNAL MODULE: ./src/components/PlotVuer.vue?vue&type=style&index=1&id=1c3d0ba6&scoped=true&lang=css&
80855
- var PlotVuervue_type_style_index_1_id_1c3d0ba6_scoped_true_lang_css_ = __webpack_require__("8921");
79360
+ // EXTERNAL MODULE: ./src/components/PlotVuer.vue?vue&type=style&index=1&id=08e10993&scoped=true&lang=css&
79361
+ var PlotVuervue_type_style_index_1_id_08e10993_scoped_true_lang_css_ = __webpack_require__("b19e");
80856
79362
 
80857
79363
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
80858
79364
  /* globals __VUE_SSR_CONTEXT__ */
@@ -80965,7 +79471,7 @@ var component = normalizeComponent(
80965
79471
  staticRenderFns,
80966
79472
  false,
80967
79473
  null,
80968
- "1c3d0ba6",
79474
+ "08e10993",
80969
79475
  null
80970
79476
 
80971
79477
  )
@@ -83695,12 +82201,12 @@ if (typeof window !== 'undefined') {
83695
82201
  // Indicate to webpack that this file can be concatenated
83696
82202
  /* harmony default export */ var setPublicPath = (null);
83697
82203
 
83698
- // 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&
83699
- 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()])}
82204
+ // 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&
82205
+ 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()])}
83700
82206
  var staticRenderFns = []
83701
82207
 
83702
82208
 
83703
- // CONCATENATED MODULE: ./src/components/SimulationVuer.vue?vue&type=template&id=58f5e448&scoped=true&
82209
+ // CONCATENATED MODULE: ./src/components/SimulationVuer.vue?vue&type=template&id=efe186fe&scoped=true&
83704
82210
 
83705
82211
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/loading.css
83706
82212
  var loading = __webpack_require__("be4f");
@@ -83769,12 +82275,12 @@ var plotvuer_common = __webpack_require__("f998");
83769
82275
  // EXTERNAL MODULE: external "@abi-software/plotvuer/dist/plotvuer.css"
83770
82276
  var plotvuer_css_ = __webpack_require__("d856");
83771
82277
 
83772
- // 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&
83773
- 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)}
83774
- var SimulationVuerInputvue_type_template_id_730c3eff_scoped_true_staticRenderFns = []
82278
+ // 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&
82279
+ 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)}
82280
+ var SimulationVuerInputvue_type_template_id_077bee1f_scoped_true_staticRenderFns = []
83775
82281
 
83776
82282
 
83777
- // CONCATENATED MODULE: ./src/components/SimulationVuerInput.vue?vue&type=template&id=730c3eff&scoped=true&
82283
+ // CONCATENATED MODULE: ./src/components/SimulationVuerInput.vue?vue&type=template&id=077bee1f&scoped=true&
83778
82284
 
83779
82285
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/slider.css
83780
82286
  var slider = __webpack_require__("b5c2");
@@ -83843,7 +82349,7 @@ function evaluateValue(parent, value) {
83843
82349
  var index = -1;
83844
82350
  parent.simulationUiInfo.input.forEach(function (input) {
83845
82351
  ++index;
83846
- value = doEvaluateValue(value, input.id, parent.$refs.input.$children[index].vModel);
82352
+ value = doEvaluateValue(value, input.id, parent.$children[index].vModel);
83847
82353
  });
83848
82354
  return Function("return " + value + ";")();
83849
82355
  }
@@ -83867,6 +82373,14 @@ function initialiseUi(parent) {
83867
82373
  parent.simulationUiInfo.output.plots.forEach(function (outputPlot) {
83868
82374
  ++index;
83869
82375
  parent.layout[index] = {
82376
+ margin: {
82377
+ t: 5,
82378
+ l: 55,
82379
+ r: 55,
82380
+ b: 90,
82381
+ pad: 4
82382
+ },
82383
+ dragmode: "pan",
83870
82384
  xaxis: {
83871
82385
  title: {
83872
82386
  text: outputPlot.xAxisTitle,
@@ -83894,14 +82408,7 @@ function finaliseUi(parent) {
83894
82408
  // Configure the PlotVuer's.
83895
82409
  parent.$refs.output.classList.add("x" + parent.simulationUiInfo.output.plots.length); // Make sure that our UI is up to date.
83896
82410
 
83897
- ui_updateUi(parent); // Make sure that the (vertical) scrollbar's thumb is of the right length.
83898
- // Note: it may indeed be of the incorrect length if we hid some components
83899
- // in updateUi().
83900
-
83901
- parent.$nextTick(function () {
83902
- parent.$refs.input.$el.scroll(0, 1);
83903
- parent.$refs.input.$el.scroll(0, -1);
83904
- });
82411
+ ui_updateUi(parent);
83905
82412
  parent.hasFinalisedUi = true;
83906
82413
  }
83907
82414
  }
@@ -83913,7 +82420,7 @@ function ui_updateUi(parent) {
83913
82420
  var index = -1;
83914
82421
  parent.simulationUiInfo.input.forEach(function (input) {
83915
82422
  ++index;
83916
- parent.$refs.input.$children[index].visible = input.visible === undefined ? true : evaluateValue(parent, input.visible);
82423
+ parent.$children[index].visible = input.visible === undefined ? true : evaluateValue(parent, input.visible);
83917
82424
  });
83918
82425
  });
83919
82426
  }
@@ -83984,14 +82491,14 @@ external_vue_default.a.use(lib_slider_default.a);
83984
82491
  },
83985
82492
  methods: {
83986
82493
  updateUi: function updateUi() {
83987
- ui_updateUi(this.$parent.$parent);
82494
+ ui_updateUi(this.$parent);
83988
82495
  }
83989
82496
  }
83990
82497
  });
83991
82498
  // CONCATENATED MODULE: ./src/components/SimulationVuerInput.vue?vue&type=script&lang=js&
83992
82499
  /* harmony default export */ var components_SimulationVuerInputvue_type_script_lang_js_ = (SimulationVuerInputvue_type_script_lang_js_);
83993
- // EXTERNAL MODULE: ./src/components/SimulationVuerInput.vue?vue&type=style&index=0&id=730c3eff&scoped=true&lang=scss&
83994
- var SimulationVuerInputvue_type_style_index_0_id_730c3eff_scoped_true_lang_scss_ = __webpack_require__("4dd6");
82500
+ // EXTERNAL MODULE: ./src/components/SimulationVuerInput.vue?vue&type=style&index=0&id=077bee1f&scoped=true&lang=scss&
82501
+ var SimulationVuerInputvue_type_style_index_0_id_077bee1f_scoped_true_lang_scss_ = __webpack_require__("ff27");
83995
82502
 
83996
82503
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
83997
82504
  /* globals __VUE_SSR_CONTEXT__ */
@@ -84104,11 +82611,11 @@ function normalizeComponent (
84104
82611
 
84105
82612
  var component = normalizeComponent(
84106
82613
  components_SimulationVuerInputvue_type_script_lang_js_,
84107
- SimulationVuerInputvue_type_template_id_730c3eff_scoped_true_render,
84108
- SimulationVuerInputvue_type_template_id_730c3eff_scoped_true_staticRenderFns,
82614
+ SimulationVuerInputvue_type_template_id_077bee1f_scoped_true_render,
82615
+ SimulationVuerInputvue_type_template_id_077bee1f_scoped_true_staticRenderFns,
84109
82616
  false,
84110
82617
  null,
84111
- "730c3eff",
82618
+ "077bee1f",
84112
82619
  null
84113
82620
 
84114
82621
  )
@@ -84622,13 +83129,6 @@ function validJson(json) {
84622
83129
 
84623
83130
  return true;
84624
83131
  }
84625
- // EXTERNAL MODULE: ./node_modules/vue2-perfect-scrollbar/dist/vue2-perfect-scrollbar.umd.js
84626
- var vue2_perfect_scrollbar_umd = __webpack_require__("a4a1");
84627
- var vue2_perfect_scrollbar_umd_default = /*#__PURE__*/__webpack_require__.n(vue2_perfect_scrollbar_umd);
84628
-
84629
- // EXTERNAL MODULE: external "vue2-perfect-scrollbar/dist/vue2-perfect-scrollbar.css"
84630
- var vue2_perfect_scrollbar_css_ = __webpack_require__("c0f2");
84631
-
84632
83132
  // 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&
84633
83133
 
84634
83134
 
@@ -84682,10 +83182,6 @@ var vue2_perfect_scrollbar_css_ = __webpack_require__("c0f2");
84682
83182
  //
84683
83183
  //
84684
83184
  //
84685
- //
84686
- //
84687
-
84688
-
84689
83185
 
84690
83186
 
84691
83187
 
@@ -84696,7 +83192,6 @@ var vue2_perfect_scrollbar_css_ = __webpack_require__("c0f2");
84696
83192
  external_vue_default.a.use(lib_button_default.a);
84697
83193
  external_vue_default.a.use(lib_divider_default.a);
84698
83194
  external_vue_default.a.use(lib_loading_default.a.directive);
84699
- external_vue_default.a.use(vue2_perfect_scrollbar_umd_default.a);
84700
83195
  /* harmony default export */ var SimulationVuervue_type_script_lang_js_ = ({
84701
83196
  name: "SimulationVuer",
84702
83197
  components: {
@@ -85008,8 +83503,8 @@ external_vue_default.a.use(vue2_perfect_scrollbar_umd_default.a);
85008
83503
  });
85009
83504
  // CONCATENATED MODULE: ./src/components/SimulationVuer.vue?vue&type=script&lang=js&
85010
83505
  /* harmony default export */ var components_SimulationVuervue_type_script_lang_js_ = (SimulationVuervue_type_script_lang_js_);
85011
- // EXTERNAL MODULE: ./src/components/SimulationVuer.vue?vue&type=style&index=0&id=58f5e448&scoped=true&lang=scss&
85012
- var SimulationVuervue_type_style_index_0_id_58f5e448_scoped_true_lang_scss_ = __webpack_require__("6fa8");
83506
+ // EXTERNAL MODULE: ./src/components/SimulationVuer.vue?vue&type=style&index=0&id=efe186fe&scoped=true&lang=scss&
83507
+ var SimulationVuervue_type_style_index_0_id_efe186fe_scoped_true_lang_scss_ = __webpack_require__("1612");
85013
83508
 
85014
83509
  // CONCATENATED MODULE: ./src/components/SimulationVuer.vue
85015
83510
 
@@ -85026,7 +83521,7 @@ var SimulationVuer_component = normalizeComponent(
85026
83521
  staticRenderFns,
85027
83522
  false,
85028
83523
  null,
85029
- "58f5e448",
83524
+ "efe186fe",
85030
83525
  null
85031
83526
 
85032
83527
  )
@@ -85056,6 +83551,17 @@ module.exports = require("core-js/modules/es.string.includes.js");
85056
83551
 
85057
83552
  module.exports = require("core-js/modules/es.string.includes");
85058
83553
 
83554
+ /***/ }),
83555
+
83556
+ /***/ "ff27":
83557
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
83558
+
83559
+ "use strict";
83560
+ /* 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");
83561
+ /* 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__);
83562
+ /* unused harmony reexport * */
83563
+
83564
+
85059
83565
  /***/ }),
85060
83566
 
85061
83567
  /***/ "ff4a":