@antimatter-audio/antimatter-ui 14.4.1 → 14.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced/ModuleFooter/InputModTab.d.ts +4 -0
- package/dist/advanced/ModuleFooter/InputModTab.d.ts.map +1 -0
- package/dist/advanced/ModuleFooter/ModuleFooter.d.ts.map +1 -1
- package/dist/core/Chart/BarChart.d.ts +16 -0
- package/dist/core/Chart/BarChart.d.ts.map +1 -0
- package/dist/core/Chart/Chart.d.ts +24 -4
- package/dist/core/Chart/Chart.d.ts.map +1 -1
- package/dist/core/Chart/LineChart.d.ts +16 -0
- package/dist/core/Chart/LineChart.d.ts.map +1 -0
- package/dist/core/Chart/StackedChart.d.ts +17 -0
- package/dist/core/Chart/StackedChart.d.ts.map +1 -0
- package/dist/index.js +467 -232
- package/dist/index.js.map +1 -1
- package/dist/src/advanced/ModuleFooter/InputModTab.d.ts +4 -0
- package/dist/src/advanced/ModuleFooter/InputModTab.d.ts.map +1 -0
- package/dist/src/advanced/ModuleFooter/ModuleFooter.d.ts.map +1 -1
- package/dist/src/core/Chart/BarChart.d.ts +16 -0
- package/dist/src/core/Chart/BarChart.d.ts.map +1 -0
- package/dist/src/core/Chart/Chart.d.ts +24 -4
- package/dist/src/core/Chart/Chart.d.ts.map +1 -1
- package/dist/src/core/Chart/LineChart.d.ts +16 -0
- package/dist/src/core/Chart/LineChart.d.ts.map +1 -0
- package/dist/src/core/Chart/StackedChart.d.ts +17 -0
- package/dist/src/core/Chart/StackedChart.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { TabGroup, TabList, Tab, Listbox, ListboxButton, ListboxOptions, Listbox
|
|
|
5
5
|
import * as Juce from 'juce-framework-frontend';
|
|
6
6
|
import { useGesture } from '@use-gesture/react';
|
|
7
7
|
import * as d3 from 'd3';
|
|
8
|
-
import { line, curveBasis, area, scaleLinear } from 'd3';
|
|
8
|
+
import { line, curveBasis, area, scaleLinear, stack, scaleOrdinal } from 'd3';
|
|
9
9
|
|
|
10
10
|
function styleInject(css, ref) {
|
|
11
11
|
if ( ref === void 0 ) ref = {};
|
|
@@ -177,13 +177,13 @@ function useObservable(param) {
|
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
function _array_like_to_array$
|
|
180
|
+
function _array_like_to_array$m(arr, len) {
|
|
181
181
|
if (len == null || len > arr.length) len = arr.length;
|
|
182
182
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
183
183
|
return arr2;
|
|
184
184
|
}
|
|
185
185
|
function _array_without_holes$3(arr) {
|
|
186
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
186
|
+
if (Array.isArray(arr)) return _array_like_to_array$m(arr);
|
|
187
187
|
}
|
|
188
188
|
function _iterable_to_array$3(iter) {
|
|
189
189
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -192,15 +192,15 @@ function _non_iterable_spread$3() {
|
|
|
192
192
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
193
193
|
}
|
|
194
194
|
function _to_consumable_array$3(arr) {
|
|
195
|
-
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$
|
|
195
|
+
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$m(arr) || _non_iterable_spread$3();
|
|
196
196
|
}
|
|
197
|
-
function _unsupported_iterable_to_array$
|
|
197
|
+
function _unsupported_iterable_to_array$m(o, minLen) {
|
|
198
198
|
if (!o) return;
|
|
199
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
199
|
+
if (typeof o === "string") return _array_like_to_array$m(o, minLen);
|
|
200
200
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
201
201
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
202
202
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
203
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
203
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$m(o, minLen);
|
|
204
204
|
}
|
|
205
205
|
// export const roundUpToTwoDecimals = (val: number) => Math.ceil(val * 100) / 100;
|
|
206
206
|
// mocks the `normalisedToScaledValue` internal method from JUCE
|
|
@@ -351,16 +351,16 @@ function throttle(mainFunction, delay) {
|
|
|
351
351
|
};
|
|
352
352
|
}
|
|
353
353
|
|
|
354
|
-
function _array_like_to_array$
|
|
354
|
+
function _array_like_to_array$l(arr, len) {
|
|
355
355
|
if (len == null || len > arr.length) len = arr.length;
|
|
356
356
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
357
357
|
return arr2;
|
|
358
358
|
}
|
|
359
|
-
function _array_with_holes$
|
|
359
|
+
function _array_with_holes$k(arr) {
|
|
360
360
|
if (Array.isArray(arr)) return arr;
|
|
361
361
|
}
|
|
362
362
|
function _array_without_holes$2(arr) {
|
|
363
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
363
|
+
if (Array.isArray(arr)) return _array_like_to_array$l(arr);
|
|
364
364
|
}
|
|
365
365
|
function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
366
366
|
try {
|
|
@@ -407,7 +407,7 @@ function _define_property$m(obj, key, value) {
|
|
|
407
407
|
function _iterable_to_array$2(iter) {
|
|
408
408
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
409
409
|
}
|
|
410
|
-
function _iterable_to_array_limit$
|
|
410
|
+
function _iterable_to_array_limit$k(arr, i) {
|
|
411
411
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
412
412
|
if (_i == null) return;
|
|
413
413
|
var _arr = [];
|
|
@@ -431,7 +431,7 @@ function _iterable_to_array_limit$j(arr, i) {
|
|
|
431
431
|
}
|
|
432
432
|
return _arr;
|
|
433
433
|
}
|
|
434
|
-
function _non_iterable_rest$
|
|
434
|
+
function _non_iterable_rest$k() {
|
|
435
435
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
436
436
|
}
|
|
437
437
|
function _non_iterable_spread$2() {
|
|
@@ -471,19 +471,19 @@ function _object_spread_props$4(target, source) {
|
|
|
471
471
|
}
|
|
472
472
|
return target;
|
|
473
473
|
}
|
|
474
|
-
function _sliced_to_array$
|
|
475
|
-
return _array_with_holes$
|
|
474
|
+
function _sliced_to_array$k(arr, i) {
|
|
475
|
+
return _array_with_holes$k(arr) || _iterable_to_array_limit$k(arr, i) || _unsupported_iterable_to_array$l(arr, i) || _non_iterable_rest$k();
|
|
476
476
|
}
|
|
477
477
|
function _to_consumable_array$2(arr) {
|
|
478
|
-
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$
|
|
478
|
+
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$l(arr) || _non_iterable_spread$2();
|
|
479
479
|
}
|
|
480
|
-
function _unsupported_iterable_to_array$
|
|
480
|
+
function _unsupported_iterable_to_array$l(o, minLen) {
|
|
481
481
|
if (!o) return;
|
|
482
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
482
|
+
if (typeof o === "string") return _array_like_to_array$l(o, minLen);
|
|
483
483
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
484
484
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
485
485
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
486
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
486
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$l(o, minLen);
|
|
487
487
|
}
|
|
488
488
|
function _ts_generator$4(thisArg, body) {
|
|
489
489
|
var f, y, t, _ = {
|
|
@@ -725,7 +725,7 @@ function useGlobalContext(selector) {
|
|
|
725
725
|
// Context provider
|
|
726
726
|
function GlobalContextProvider(param) {
|
|
727
727
|
var children = param.children;
|
|
728
|
-
var _useReducer = _sliced_to_array$
|
|
728
|
+
var _useReducer = _sliced_to_array$k(useReducer(reducer, defaultGlobalStateValue), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
729
729
|
var highlightedItemChanged = useCallback(function(highlightedItem) {
|
|
730
730
|
dispatch({
|
|
731
731
|
type: 'HIGHLIGHTED_ITEM_CHANGED',
|
|
@@ -993,12 +993,12 @@ function GlobalContextProvider(param) {
|
|
|
993
993
|
}, children);
|
|
994
994
|
}
|
|
995
995
|
|
|
996
|
-
function _array_like_to_array$
|
|
996
|
+
function _array_like_to_array$k(arr, len) {
|
|
997
997
|
if (len == null || len > arr.length) len = arr.length;
|
|
998
998
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
999
999
|
return arr2;
|
|
1000
1000
|
}
|
|
1001
|
-
function _array_with_holes$
|
|
1001
|
+
function _array_with_holes$j(arr) {
|
|
1002
1002
|
if (Array.isArray(arr)) return arr;
|
|
1003
1003
|
}
|
|
1004
1004
|
function _define_property$l(obj, key, value) {
|
|
@@ -1014,7 +1014,7 @@ function _define_property$l(obj, key, value) {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
return obj;
|
|
1016
1016
|
}
|
|
1017
|
-
function _iterable_to_array_limit$
|
|
1017
|
+
function _iterable_to_array_limit$j(arr, i) {
|
|
1018
1018
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
1019
1019
|
if (_i == null) return;
|
|
1020
1020
|
var _arr = [];
|
|
@@ -1038,7 +1038,7 @@ function _iterable_to_array_limit$i(arr, i) {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
return _arr;
|
|
1040
1040
|
}
|
|
1041
|
-
function _non_iterable_rest$
|
|
1041
|
+
function _non_iterable_rest$j() {
|
|
1042
1042
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1043
1043
|
}
|
|
1044
1044
|
function _object_spread$k(target) {
|
|
@@ -1056,16 +1056,16 @@ function _object_spread$k(target) {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
return target;
|
|
1058
1058
|
}
|
|
1059
|
-
function _sliced_to_array$
|
|
1060
|
-
return _array_with_holes$
|
|
1059
|
+
function _sliced_to_array$j(arr, i) {
|
|
1060
|
+
return _array_with_holes$j(arr) || _iterable_to_array_limit$j(arr, i) || _unsupported_iterable_to_array$k(arr, i) || _non_iterable_rest$j();
|
|
1061
1061
|
}
|
|
1062
|
-
function _unsupported_iterable_to_array$
|
|
1062
|
+
function _unsupported_iterable_to_array$k(o, minLen) {
|
|
1063
1063
|
if (!o) return;
|
|
1064
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1064
|
+
if (typeof o === "string") return _array_like_to_array$k(o, minLen);
|
|
1065
1065
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1066
1066
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1067
1067
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1068
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1068
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$k(o, minLen);
|
|
1069
1069
|
}
|
|
1070
1070
|
function Button(param) {
|
|
1071
1071
|
var disabled = param.disabled, text = param.text, id = param.id, className = param.className, style = param.style, onClick = param.onClick, children = param.children, _param_padding = param.padding, padding = _param_padding === void 0 ? [
|
|
@@ -1073,7 +1073,7 @@ function Button(param) {
|
|
|
1073
1073
|
] : _param_padding, _param_margin = param.margin, margin = _param_margin === void 0 ? [
|
|
1074
1074
|
Spacing.none
|
|
1075
1075
|
] : _param_margin, _param_type = param.type, type = _param_type === void 0 ? ButtonType.latch : _param_type, size = param.size;
|
|
1076
|
-
var _React_useState = _sliced_to_array$
|
|
1076
|
+
var _React_useState = _sliced_to_array$j(React__default.useState(false), 2), isSelected = _React_useState[0], setIsSelected = _React_useState[1];
|
|
1077
1077
|
var buttonState = Juce.getToggleState(id);
|
|
1078
1078
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
1079
1079
|
var setModSlotRowTargetAsPreview = useGlobalContext().setModSlotRowTargetAsPreview;
|
|
@@ -1852,15 +1852,15 @@ IconButton.icon = Icons;
|
|
|
1852
1852
|
IconButton.padding = Spacing;
|
|
1853
1853
|
IconButton.margin = Spacing;
|
|
1854
1854
|
|
|
1855
|
-
function _array_like_to_array$
|
|
1855
|
+
function _array_like_to_array$j(arr, len) {
|
|
1856
1856
|
if (len == null || len > arr.length) len = arr.length;
|
|
1857
1857
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1858
1858
|
return arr2;
|
|
1859
1859
|
}
|
|
1860
|
-
function _array_with_holes$
|
|
1860
|
+
function _array_with_holes$i(arr) {
|
|
1861
1861
|
if (Array.isArray(arr)) return arr;
|
|
1862
1862
|
}
|
|
1863
|
-
function _iterable_to_array_limit$
|
|
1863
|
+
function _iterable_to_array_limit$i(arr, i) {
|
|
1864
1864
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
1865
1865
|
if (_i == null) return;
|
|
1866
1866
|
var _arr = [];
|
|
@@ -1884,27 +1884,27 @@ function _iterable_to_array_limit$h(arr, i) {
|
|
|
1884
1884
|
}
|
|
1885
1885
|
return _arr;
|
|
1886
1886
|
}
|
|
1887
|
-
function _non_iterable_rest$
|
|
1887
|
+
function _non_iterable_rest$i() {
|
|
1888
1888
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1889
1889
|
}
|
|
1890
|
-
function _sliced_to_array$
|
|
1891
|
-
return _array_with_holes$
|
|
1890
|
+
function _sliced_to_array$i(arr, i) {
|
|
1891
|
+
return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$j(arr, i) || _non_iterable_rest$i();
|
|
1892
1892
|
}
|
|
1893
|
-
function _unsupported_iterable_to_array$
|
|
1893
|
+
function _unsupported_iterable_to_array$j(o, minLen) {
|
|
1894
1894
|
if (!o) return;
|
|
1895
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1895
|
+
if (typeof o === "string") return _array_like_to_array$j(o, minLen);
|
|
1896
1896
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1897
1897
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1898
1898
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1899
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1899
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$j(o, minLen);
|
|
1900
1900
|
}
|
|
1901
1901
|
var useDropdown = function(param) {
|
|
1902
1902
|
var id = param.id, // TODO: Is there a better way to handle mod matrix dropdowns?
|
|
1903
1903
|
rowId = param.rowId, label = param.label, _param_items = param.items, items = _param_items === void 0 ? [] : _param_items, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, filter = param.filter, onChange = param.onChange, _param_displayValInHeader = param.displayValInHeader, displayValInHeader = _param_displayValInHeader === void 0 ? true : _param_displayValInHeader;
|
|
1904
1904
|
var _properties_choices;
|
|
1905
1905
|
var comboBoxState = Juce.getComboBoxState(id);
|
|
1906
|
-
var _useState = _sliced_to_array$
|
|
1907
|
-
var _useState1 = _sliced_to_array$
|
|
1906
|
+
var _useState = _sliced_to_array$i(useState(comboBoxState.getChoiceIndex()), 2), index = _useState[0], setIndex = _useState[1];
|
|
1907
|
+
var _useState1 = _sliced_to_array$i(useState(comboBoxState.properties), 2), properties = _useState1[0], setProperties = _useState1[1];
|
|
1908
1908
|
var _useGlobalContext = useGlobalContext(), highlightedItemChanged = _useGlobalContext.highlightedItemChanged, setModSlotRowTargetAsPreview = _useGlobalContext.setModSlotRowTargetAsPreview;
|
|
1909
1909
|
var choices = items.length ? items : (properties === null || properties === void 0 ? void 0 : (_properties_choices = properties.choices) === null || _properties_choices === void 0 ? void 0 : _properties_choices.length) ? properties === null || properties === void 0 ? void 0 : properties.choices : [];
|
|
1910
1910
|
var filteredChoices = filter ? choices === null || choices === void 0 ? void 0 : choices.filter(function(item) {
|
|
@@ -2000,15 +2000,15 @@ var useDropdown = function(param) {
|
|
|
2000
2000
|
};
|
|
2001
2001
|
};
|
|
2002
2002
|
|
|
2003
|
-
function _array_like_to_array$
|
|
2003
|
+
function _array_like_to_array$i(arr, len) {
|
|
2004
2004
|
if (len == null || len > arr.length) len = arr.length;
|
|
2005
2005
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2006
2006
|
return arr2;
|
|
2007
2007
|
}
|
|
2008
|
-
function _array_with_holes$
|
|
2008
|
+
function _array_with_holes$h(arr) {
|
|
2009
2009
|
if (Array.isArray(arr)) return arr;
|
|
2010
2010
|
}
|
|
2011
|
-
function _iterable_to_array_limit$
|
|
2011
|
+
function _iterable_to_array_limit$h(arr, i) {
|
|
2012
2012
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2013
2013
|
if (_i == null) return;
|
|
2014
2014
|
var _arr = [];
|
|
@@ -2032,19 +2032,19 @@ function _iterable_to_array_limit$g(arr, i) {
|
|
|
2032
2032
|
}
|
|
2033
2033
|
return _arr;
|
|
2034
2034
|
}
|
|
2035
|
-
function _non_iterable_rest$
|
|
2035
|
+
function _non_iterable_rest$h() {
|
|
2036
2036
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2037
2037
|
}
|
|
2038
|
-
function _sliced_to_array$
|
|
2039
|
-
return _array_with_holes$
|
|
2038
|
+
function _sliced_to_array$h(arr, i) {
|
|
2039
|
+
return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$h();
|
|
2040
2040
|
}
|
|
2041
|
-
function _unsupported_iterable_to_array$
|
|
2041
|
+
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
2042
2042
|
if (!o) return;
|
|
2043
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2043
|
+
if (typeof o === "string") return _array_like_to_array$i(o, minLen);
|
|
2044
2044
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2045
2045
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2046
2046
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2047
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2047
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$i(o, minLen);
|
|
2048
2048
|
}
|
|
2049
2049
|
function Tabs(param) {
|
|
2050
2050
|
var items = param.items, _param_id = param.id, id = _param_id === void 0 ? '' : _param_id, className = param.className, _param_padding = param.padding, padding = _param_padding === void 0 ? [
|
|
@@ -2052,7 +2052,7 @@ function Tabs(param) {
|
|
|
2052
2052
|
] : _param_padding, _param_margin = param.margin, margin = _param_margin === void 0 ? [
|
|
2053
2053
|
Spacing.none
|
|
2054
2054
|
] : _param_margin, _param_gap = param.gap, gap = _param_gap === void 0 ? Spacing.small : _param_gap, width = param.width, height = param.height, tabWidth = param.tabWidth, tabHeight = param.tabHeight, _param_orientation = param.orientation, orientation = _param_orientation === void 0 ? Orientation.horizontal : _param_orientation, _param_justifyContent = param.justifyContent, justifyContent = _param_justifyContent === void 0 ? JustifyContent$1.stretch : _param_justifyContent, _param_alignItems = param.alignItems, alignItems = _param_alignItems === void 0 ? AlignItems$1.stretch : _param_alignItems, _param_color = param.color, color = _param_color === void 0 ? 'var(--bg-lv11)' : _param_color, _param_selectedColor = param.selectedColor, selectedColor = _param_selectedColor === void 0 ? 'var(--color-brand)' : _param_selectedColor, _param_backgroundColor = param.backgroundColor, backgroundColor = _param_backgroundColor === void 0 ? 'transparent' : _param_backgroundColor, _param_fontSize = param.fontSize, fontSize = _param_fontSize === void 0 ? FontSizes.small : _param_fontSize, selectedBackgroundColor = param.selectedBackgroundColor, icons = param.icons, onChange = param.onChange;
|
|
2055
|
-
var _useState = _sliced_to_array$
|
|
2055
|
+
var _useState = _sliced_to_array$h(useState(0), 2), selectedIndex = _useState[0], setSelectedIndex = _useState[1];
|
|
2056
2056
|
var _useDropdown = useDropdown({
|
|
2057
2057
|
id: id,
|
|
2058
2058
|
onChange: onChange
|
|
@@ -2276,12 +2276,12 @@ function Dropdown(param) {
|
|
|
2276
2276
|
var css_248z$9 = ".TextInput {\n pointer-events: auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.TextInput::-moz-selection {\n background: transparent;\n}\n.TextInput::selection {\n background: transparent;\n}\n\n.TextInput:disabled {\n -webkit-user-select: none;\n user-select: none;\n}\n\n.isActive .TextInput {\n -webkit-user-select: auto;\n -moz-user-select: auto;\n -ms-user-select: auto;\n user-select: auto;\n}\n";
|
|
2277
2277
|
styleInject(css_248z$9);
|
|
2278
2278
|
|
|
2279
|
-
function _array_like_to_array$
|
|
2279
|
+
function _array_like_to_array$h(arr, len) {
|
|
2280
2280
|
if (len == null || len > arr.length) len = arr.length;
|
|
2281
2281
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2282
2282
|
return arr2;
|
|
2283
2283
|
}
|
|
2284
|
-
function _array_with_holes$
|
|
2284
|
+
function _array_with_holes$g(arr) {
|
|
2285
2285
|
if (Array.isArray(arr)) return arr;
|
|
2286
2286
|
}
|
|
2287
2287
|
function _define_property$f(obj, key, value) {
|
|
@@ -2297,7 +2297,7 @@ function _define_property$f(obj, key, value) {
|
|
|
2297
2297
|
}
|
|
2298
2298
|
return obj;
|
|
2299
2299
|
}
|
|
2300
|
-
function _iterable_to_array_limit$
|
|
2300
|
+
function _iterable_to_array_limit$g(arr, i) {
|
|
2301
2301
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2302
2302
|
if (_i == null) return;
|
|
2303
2303
|
var _arr = [];
|
|
@@ -2321,7 +2321,7 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
2321
2321
|
}
|
|
2322
2322
|
return _arr;
|
|
2323
2323
|
}
|
|
2324
|
-
function _non_iterable_rest$
|
|
2324
|
+
function _non_iterable_rest$g() {
|
|
2325
2325
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2326
2326
|
}
|
|
2327
2327
|
function _object_spread$e(target) {
|
|
@@ -2339,16 +2339,16 @@ function _object_spread$e(target) {
|
|
|
2339
2339
|
}
|
|
2340
2340
|
return target;
|
|
2341
2341
|
}
|
|
2342
|
-
function _sliced_to_array$
|
|
2343
|
-
return _array_with_holes$
|
|
2342
|
+
function _sliced_to_array$g(arr, i) {
|
|
2343
|
+
return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$h(arr, i) || _non_iterable_rest$g();
|
|
2344
2344
|
}
|
|
2345
|
-
function _unsupported_iterable_to_array$
|
|
2345
|
+
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
2346
2346
|
if (!o) return;
|
|
2347
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2347
|
+
if (typeof o === "string") return _array_like_to_array$h(o, minLen);
|
|
2348
2348
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2349
2349
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2350
2350
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2351
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2351
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$h(o, minLen);
|
|
2352
2352
|
}
|
|
2353
2353
|
// import { decimalToPercent, percentToDecimal } from '../../common/utils';
|
|
2354
2354
|
// import debounce from 'lodash.debounce';
|
|
@@ -2360,9 +2360,9 @@ var InputTypes = /*#__PURE__*/ function(InputTypes) {
|
|
|
2360
2360
|
function Input(param) {
|
|
2361
2361
|
var onComplete = param.onComplete, value = param.value; param.min; param.max; var _param_fontSize = param.fontSize, fontSize = _param_fontSize === void 0 ? FontSizes.xSmall : _param_fontSize, style = param.style, className = param.className, isDisabled = param.isDisabled, id = param.id, _param_textColor = param.textColor, textColor = _param_textColor === void 0 ? 'var(--color-text)' : _param_textColor, _param_textAlign = param.textAlign, textAlign = _param_textAlign === void 0 ? TextAlign.center : _param_textAlign;
|
|
2362
2362
|
var _inputRef_current;
|
|
2363
|
-
var _useState = _sliced_to_array$
|
|
2363
|
+
var _useState = _sliced_to_array$g(useState(value), 2), internalValue = _useState[0], setInternalValue = _useState[1];
|
|
2364
2364
|
// const [hasError, setHasError] = useState<boolean>(false);
|
|
2365
|
-
var _useState1 = _sliced_to_array$
|
|
2365
|
+
var _useState1 = _sliced_to_array$g(useState(false), 2), isHighlighted = _useState1[0], setIsHighlighted = _useState1[1];
|
|
2366
2366
|
var valueRef = useRef(null);
|
|
2367
2367
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
2368
2368
|
// Sets up listeners to handle changes on the backend
|
|
@@ -2546,15 +2546,15 @@ var GradientStyles = /*#__PURE__*/ function(GradientStyles) {
|
|
|
2546
2546
|
return GradientStyles;
|
|
2547
2547
|
}({});
|
|
2548
2548
|
|
|
2549
|
-
function _array_like_to_array$
|
|
2549
|
+
function _array_like_to_array$g(arr, len) {
|
|
2550
2550
|
if (len == null || len > arr.length) len = arr.length;
|
|
2551
2551
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2552
2552
|
return arr2;
|
|
2553
2553
|
}
|
|
2554
|
-
function _array_with_holes$
|
|
2554
|
+
function _array_with_holes$f(arr) {
|
|
2555
2555
|
if (Array.isArray(arr)) return arr;
|
|
2556
2556
|
}
|
|
2557
|
-
function _iterable_to_array_limit$
|
|
2557
|
+
function _iterable_to_array_limit$f(arr, i) {
|
|
2558
2558
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2559
2559
|
if (_i == null) return;
|
|
2560
2560
|
var _arr = [];
|
|
@@ -2578,19 +2578,19 @@ function _iterable_to_array_limit$e(arr, i) {
|
|
|
2578
2578
|
}
|
|
2579
2579
|
return _arr;
|
|
2580
2580
|
}
|
|
2581
|
-
function _non_iterable_rest$
|
|
2581
|
+
function _non_iterable_rest$f() {
|
|
2582
2582
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2583
2583
|
}
|
|
2584
|
-
function _sliced_to_array$
|
|
2585
|
-
return _array_with_holes$
|
|
2584
|
+
function _sliced_to_array$f(arr, i) {
|
|
2585
|
+
return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$f();
|
|
2586
2586
|
}
|
|
2587
|
-
function _unsupported_iterable_to_array$
|
|
2587
|
+
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
2588
2588
|
if (!o) return;
|
|
2589
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2589
|
+
if (typeof o === "string") return _array_like_to_array$g(o, minLen);
|
|
2590
2590
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2591
2591
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2592
2592
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2593
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2593
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
|
|
2594
2594
|
}
|
|
2595
2595
|
// 20.0f, 15000.0f, 0.1f, 0.7f),800.0f
|
|
2596
2596
|
// ValueType rangeStart, ValueType rangeEnd, ValueType intervalValue, ValueType skewFactor, bool useSymmetricSkew=false)
|
|
@@ -2613,9 +2613,9 @@ var useSlider = function(param) {
|
|
|
2613
2613
|
* AudioProcessorParameter::getValue() (C++).
|
|
2614
2614
|
*/ // See https://github.com/juce-framework/JUCE/blob/51d11a2be6d5c97ccf12b4e5e827006e19f0555a/modules/juce_gui_extra/native/javascript/index.js#L230C1-L238C6
|
|
2615
2615
|
// NOTE: We can think of this as a percentage value, in 0 to 1 format
|
|
2616
|
-
var _useState = _sliced_to_array$
|
|
2616
|
+
var _useState = _sliced_to_array$f(useState(0), 2), scaledValue = _useState[0], setScaledValue = _useState[1];
|
|
2617
2617
|
// const [normalisedValue, setNormalisedValue] = useState(0);
|
|
2618
|
-
var _useState1 = _sliced_to_array$
|
|
2618
|
+
var _useState1 = _sliced_to_array$f(useState(), 2), properties = _useState1[0], setProperties = _useState1[1];
|
|
2619
2619
|
var scaledValueRef = useRef(null);
|
|
2620
2620
|
var normalisedValueRef = useRef(null);
|
|
2621
2621
|
var sliderState = Juce.getSliderState(id);
|
|
@@ -2858,15 +2858,15 @@ styleInject(css_248z$8);
|
|
|
2858
2858
|
var css_248z$7 = "";
|
|
2859
2859
|
styleInject(css_248z$7);
|
|
2860
2860
|
|
|
2861
|
-
function _array_like_to_array$
|
|
2861
|
+
function _array_like_to_array$f(arr, len) {
|
|
2862
2862
|
if (len == null || len > arr.length) len = arr.length;
|
|
2863
2863
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2864
2864
|
return arr2;
|
|
2865
2865
|
}
|
|
2866
|
-
function _array_with_holes$
|
|
2866
|
+
function _array_with_holes$e(arr) {
|
|
2867
2867
|
if (Array.isArray(arr)) return arr;
|
|
2868
2868
|
}
|
|
2869
|
-
function _iterable_to_array_limit$
|
|
2869
|
+
function _iterable_to_array_limit$e(arr, i) {
|
|
2870
2870
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2871
2871
|
if (_i == null) return;
|
|
2872
2872
|
var _arr = [];
|
|
@@ -2890,19 +2890,19 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
2890
2890
|
}
|
|
2891
2891
|
return _arr;
|
|
2892
2892
|
}
|
|
2893
|
-
function _non_iterable_rest$
|
|
2893
|
+
function _non_iterable_rest$e() {
|
|
2894
2894
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2895
2895
|
}
|
|
2896
|
-
function _sliced_to_array$
|
|
2897
|
-
return _array_with_holes$
|
|
2896
|
+
function _sliced_to_array$e(arr, i) {
|
|
2897
|
+
return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$f(arr, i) || _non_iterable_rest$e();
|
|
2898
2898
|
}
|
|
2899
|
-
function _unsupported_iterable_to_array$
|
|
2899
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
2900
2900
|
if (!o) return;
|
|
2901
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2901
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
2902
2902
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2903
2903
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2904
2904
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2905
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2905
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
|
|
2906
2906
|
}
|
|
2907
2907
|
function ControlGroup(param) {
|
|
2908
2908
|
var id = param.id, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, className = param.className, onChangeActiveState = param.onChangeActiveState, children = param.children, width = param.width;
|
|
@@ -2912,7 +2912,7 @@ function ControlGroup(param) {
|
|
|
2912
2912
|
// <Input id={id-input}></Input>
|
|
2913
2913
|
// </ControlGroup>
|
|
2914
2914
|
var groupId = "".concat(id, "-control-group");
|
|
2915
|
-
var _useState = _sliced_to_array$
|
|
2915
|
+
var _useState = _sliced_to_array$e(useState(false), 2), isActive = _useState[0], setIsActive = _useState[1];
|
|
2916
2916
|
var sliderState = Juce.getSliderState(id);
|
|
2917
2917
|
var clickListener = function(event) {
|
|
2918
2918
|
if (!isDisabled) {
|
|
@@ -3373,15 +3373,15 @@ function PositioningWrapper(param) {
|
|
|
3373
3373
|
}, positionedElement ? positionedElement : null));
|
|
3374
3374
|
}
|
|
3375
3375
|
|
|
3376
|
-
function _array_like_to_array$
|
|
3376
|
+
function _array_like_to_array$e(arr, len) {
|
|
3377
3377
|
if (len == null || len > arr.length) len = arr.length;
|
|
3378
3378
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3379
3379
|
return arr2;
|
|
3380
3380
|
}
|
|
3381
|
-
function _array_with_holes$
|
|
3381
|
+
function _array_with_holes$d(arr) {
|
|
3382
3382
|
if (Array.isArray(arr)) return arr;
|
|
3383
3383
|
}
|
|
3384
|
-
function _iterable_to_array_limit$
|
|
3384
|
+
function _iterable_to_array_limit$d(arr, i) {
|
|
3385
3385
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3386
3386
|
if (_i == null) return;
|
|
3387
3387
|
var _arr = [];
|
|
@@ -3405,19 +3405,19 @@ function _iterable_to_array_limit$c(arr, i) {
|
|
|
3405
3405
|
}
|
|
3406
3406
|
return _arr;
|
|
3407
3407
|
}
|
|
3408
|
-
function _non_iterable_rest$
|
|
3408
|
+
function _non_iterable_rest$d() {
|
|
3409
3409
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3410
3410
|
}
|
|
3411
|
-
function _sliced_to_array$
|
|
3412
|
-
return _array_with_holes$
|
|
3411
|
+
function _sliced_to_array$d(arr, i) {
|
|
3412
|
+
return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$d();
|
|
3413
3413
|
}
|
|
3414
|
-
function _unsupported_iterable_to_array$
|
|
3414
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
3415
3415
|
if (!o) return;
|
|
3416
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3416
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
3417
3417
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3418
3418
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3419
3419
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3420
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3420
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
3421
3421
|
}
|
|
3422
3422
|
// 20.0f, 15000.0f, 0.1f, 0.7f),800.0f
|
|
3423
3423
|
// ValueType rangeStart, ValueType rangeEnd, ValueType intervalValue, ValueType skewFactor, bool useSymmetricSkew=false)
|
|
@@ -3431,7 +3431,7 @@ var useIndicator = function(param) {
|
|
|
3431
3431
|
var id = param.id, _param_dataSource = param.dataSource, dataSource = _param_dataSource === void 0 ? "buttonAttachment" : _param_dataSource;
|
|
3432
3432
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
3433
3433
|
// This value should be a range from 0 to 1
|
|
3434
|
-
var _useState = _sliced_to_array$
|
|
3434
|
+
var _useState = _sliced_to_array$d(useState(0), 2), brightness = _useState[0], setBrightness = _useState[1];
|
|
3435
3435
|
var updateState = function() {
|
|
3436
3436
|
if (!isLocalhost && dataSource === "buttonAttachment") {
|
|
3437
3437
|
var _Juce_getToggleState;
|
|
@@ -3841,15 +3841,15 @@ Slider$1.sliderType = SliderType;
|
|
|
3841
3841
|
Slider$1.polarity = Polarity;
|
|
3842
3842
|
Slider$1.orientation = Orientation;
|
|
3843
3843
|
|
|
3844
|
-
function _array_like_to_array$
|
|
3844
|
+
function _array_like_to_array$d(arr, len) {
|
|
3845
3845
|
if (len == null || len > arr.length) len = arr.length;
|
|
3846
3846
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3847
3847
|
return arr2;
|
|
3848
3848
|
}
|
|
3849
|
-
function _array_with_holes$
|
|
3849
|
+
function _array_with_holes$c(arr) {
|
|
3850
3850
|
if (Array.isArray(arr)) return arr;
|
|
3851
3851
|
}
|
|
3852
|
-
function _iterable_to_array_limit$
|
|
3852
|
+
function _iterable_to_array_limit$c(arr, i) {
|
|
3853
3853
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3854
3854
|
if (_i == null) return;
|
|
3855
3855
|
var _arr = [];
|
|
@@ -3873,26 +3873,26 @@ function _iterable_to_array_limit$b(arr, i) {
|
|
|
3873
3873
|
}
|
|
3874
3874
|
return _arr;
|
|
3875
3875
|
}
|
|
3876
|
-
function _non_iterable_rest$
|
|
3876
|
+
function _non_iterable_rest$c() {
|
|
3877
3877
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3878
3878
|
}
|
|
3879
|
-
function _sliced_to_array$
|
|
3880
|
-
return _array_with_holes$
|
|
3879
|
+
function _sliced_to_array$c(arr, i) {
|
|
3880
|
+
return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$d(arr, i) || _non_iterable_rest$c();
|
|
3881
3881
|
}
|
|
3882
|
-
function _unsupported_iterable_to_array$
|
|
3882
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
3883
3883
|
if (!o) return;
|
|
3884
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3884
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
3885
3885
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3886
3886
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3887
3887
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3888
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3888
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
3889
3889
|
}
|
|
3890
3890
|
var useCombobox = function(param) {
|
|
3891
3891
|
var id = param.id, label = param.label, filter = param.filter; param.onChange; var _param_displayValInHeader = param.displayValInHeader, displayValInHeader = _param_displayValInHeader === void 0 ? true : _param_displayValInHeader, isDisabled = param.isDisabled;
|
|
3892
3892
|
var _Object_values, _properties_choices;
|
|
3893
3893
|
var comboBoxState = Juce.getComboBoxState(id);
|
|
3894
|
-
var _useState = _sliced_to_array$
|
|
3895
|
-
var _useState1 = _sliced_to_array$
|
|
3894
|
+
var _useState = _sliced_to_array$c(useState(comboBoxState === null || comboBoxState === void 0 ? void 0 : comboBoxState.properties), 2), properties = _useState[0], setProperties = _useState[1];
|
|
3895
|
+
var _useState1 = _sliced_to_array$c(useState(0), 2), index = _useState1[0], setIndex = _useState1[1];
|
|
3896
3896
|
var prevIndex = useRef(null);
|
|
3897
3897
|
var nextIndex = useRef(null);
|
|
3898
3898
|
var prevDragDirection = useRef(null);
|
|
@@ -4403,12 +4403,12 @@ function LinePlot(param) {
|
|
|
4403
4403
|
var css_248z$5 = ".Oscilloscope {\n background: #0EAC8B;\n box-shadow: inset 0 0 20px #086350;\n height: 200px;\n };";
|
|
4404
4404
|
styleInject(css_248z$5);
|
|
4405
4405
|
|
|
4406
|
-
function _array_like_to_array$
|
|
4406
|
+
function _array_like_to_array$c(arr, len) {
|
|
4407
4407
|
if (len == null || len > arr.length) len = arr.length;
|
|
4408
4408
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4409
4409
|
return arr2;
|
|
4410
4410
|
}
|
|
4411
|
-
function _array_with_holes$
|
|
4411
|
+
function _array_with_holes$b(arr) {
|
|
4412
4412
|
if (Array.isArray(arr)) return arr;
|
|
4413
4413
|
}
|
|
4414
4414
|
function _define_property$7(obj, key, value) {
|
|
@@ -4424,7 +4424,7 @@ function _define_property$7(obj, key, value) {
|
|
|
4424
4424
|
}
|
|
4425
4425
|
return obj;
|
|
4426
4426
|
}
|
|
4427
|
-
function _iterable_to_array_limit$
|
|
4427
|
+
function _iterable_to_array_limit$b(arr, i) {
|
|
4428
4428
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
4429
4429
|
if (_i == null) return;
|
|
4430
4430
|
var _arr = [];
|
|
@@ -4448,7 +4448,7 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
4448
4448
|
}
|
|
4449
4449
|
return _arr;
|
|
4450
4450
|
}
|
|
4451
|
-
function _non_iterable_rest$
|
|
4451
|
+
function _non_iterable_rest$b() {
|
|
4452
4452
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4453
4453
|
}
|
|
4454
4454
|
function _object_spread$7(target) {
|
|
@@ -4466,20 +4466,20 @@ function _object_spread$7(target) {
|
|
|
4466
4466
|
}
|
|
4467
4467
|
return target;
|
|
4468
4468
|
}
|
|
4469
|
-
function _sliced_to_array$
|
|
4470
|
-
return _array_with_holes$
|
|
4469
|
+
function _sliced_to_array$b(arr, i) {
|
|
4470
|
+
return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$b();
|
|
4471
4471
|
}
|
|
4472
|
-
function _unsupported_iterable_to_array$
|
|
4472
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
4473
4473
|
if (!o) return;
|
|
4474
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4474
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
4475
4475
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4476
4476
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4477
4477
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4478
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
4478
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
4479
4479
|
}
|
|
4480
4480
|
function Oscilloscope(param) {
|
|
4481
4481
|
var width = param.width, height = param.height, className = param.className, style = param.style, id = param.id;
|
|
4482
|
-
var _useState = _sliced_to_array$
|
|
4482
|
+
var _useState = _sliced_to_array$b(useState([]), 2), viewData = _useState[0], setViewData = _useState[1];
|
|
4483
4483
|
var cycleLength = useRef(0);
|
|
4484
4484
|
useEffect(function() {
|
|
4485
4485
|
//@ts-expect-error
|
|
@@ -4523,12 +4523,12 @@ styleInject(css_248z$4);
|
|
|
4523
4523
|
var css_248z$3 = ".PresetManagerContainer {\n width: 100%;\n height: 100%;\n background-color: var(--bg-lv1);\n color: var(--color-text);\n}\n\n.PresetManagerButton {\n width: 100%;\n height: 100%;\n max-width: 300px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: relative;\n cursor: pointer;\n font-family: var(--font-leagueSpartan);\n}\n.PresetManagerButtonLabel {\n cursor: pointer;\n text-align: center;\n font-family: var(--font-leagueSpartan);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 225px;\n display: inline-block;\n vertical-align: middle;\n height: 1rem;\n line-height: 1.25;\n /* position: relative; */\n &:hover,\n &:active {\n background: var(--color-gray-900);\n }\n /* &.isDirty {\n &::after {\n content: '*';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n }\n } */\n}\n\n.PresetManagerButtonLabelContainer.isDirty::after {\n content: '*';\n position: absolute;\n height: 1rem;\n width: 1rem;\n right: -0.75rem;\n top: 0;\n}\n\n.PresetManagerButtonLabelOuterContainer {\n position: relative;\n width: auto;\n}\n\n[data-headlessui-state='open active'] .PresetManagerButtonLabel {\n background: var(--color-gray-900);\n}\n.PresetManagerPanel {\n position: absolute;\n font-family: var(--font-leagueSpartan);\n right: 0px;\n left: 0px;\n width: 100%;\n max-width: 400px !important;\n color: var(--color-text);\n background: var(--bg-lv5);\n}\n\n.PresetManagerPanel:focus,\n.PresetManagerPanel:focus-visible {\n outline: none;\n}\n\n.PresetManagerListItem {\n cursor: pointer;\n background: var(--color-gray-800);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n width: 100%;\n}\n\n.PresetManagerListItem:hover,\n.PresetManagerListItem.isSelected {\n background: var(--bg-selected);\n}\n\n.PresetManagerListItemText {\n display: inline-block;\n vertical-align: middle;\n height: 1.5rem;\n line-height: 1.75;\n}\n";
|
|
4524
4524
|
styleInject(css_248z$3);
|
|
4525
4525
|
|
|
4526
|
-
function _array_like_to_array$
|
|
4526
|
+
function _array_like_to_array$b(arr, len) {
|
|
4527
4527
|
if (len == null || len > arr.length) len = arr.length;
|
|
4528
4528
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4529
4529
|
return arr2;
|
|
4530
4530
|
}
|
|
4531
|
-
function _array_with_holes$
|
|
4531
|
+
function _array_with_holes$a(arr) {
|
|
4532
4532
|
if (Array.isArray(arr)) return arr;
|
|
4533
4533
|
}
|
|
4534
4534
|
function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -4560,7 +4560,7 @@ function _async_to_generator$3(fn) {
|
|
|
4560
4560
|
});
|
|
4561
4561
|
};
|
|
4562
4562
|
}
|
|
4563
|
-
function _iterable_to_array_limit$
|
|
4563
|
+
function _iterable_to_array_limit$a(arr, i) {
|
|
4564
4564
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
4565
4565
|
if (_i == null) return;
|
|
4566
4566
|
var _arr = [];
|
|
@@ -4584,23 +4584,23 @@ function _iterable_to_array_limit$9(arr, i) {
|
|
|
4584
4584
|
}
|
|
4585
4585
|
return _arr;
|
|
4586
4586
|
}
|
|
4587
|
-
function _non_iterable_rest$
|
|
4587
|
+
function _non_iterable_rest$a() {
|
|
4588
4588
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4589
4589
|
}
|
|
4590
4590
|
function _object_destructuring_empty(o) {
|
|
4591
4591
|
if (o === null || o === void 0) throw new TypeError("Cannot destructure " + o);
|
|
4592
4592
|
return o;
|
|
4593
4593
|
}
|
|
4594
|
-
function _sliced_to_array$
|
|
4595
|
-
return _array_with_holes$
|
|
4594
|
+
function _sliced_to_array$a(arr, i) {
|
|
4595
|
+
return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$a();
|
|
4596
4596
|
}
|
|
4597
|
-
function _unsupported_iterable_to_array$
|
|
4597
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
4598
4598
|
if (!o) return;
|
|
4599
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4599
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
4600
4600
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4601
4601
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4602
4602
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4603
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
4603
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
4604
4604
|
}
|
|
4605
4605
|
function _ts_generator$3(thisArg, body) {
|
|
4606
4606
|
var f, y, t, _ = {
|
|
@@ -4695,16 +4695,16 @@ function _ts_generator$3(thisArg, body) {
|
|
|
4695
4695
|
}
|
|
4696
4696
|
function PresetManager(param) {
|
|
4697
4697
|
_object_destructuring_empty(param);
|
|
4698
|
-
var _useState = _sliced_to_array$
|
|
4699
|
-
var _useState1 = _sliced_to_array$
|
|
4698
|
+
var _useState = _sliced_to_array$a(useState([]), 2), presetList = _useState[0], setPresetList = _useState[1];
|
|
4699
|
+
var _useState1 = _sliced_to_array$a(useState(false), 2); _useState1[0]; var setIsSaving = _useState1[1];
|
|
4700
4700
|
var savePresetFunc = Juce.getNativeFunction('savePreset');
|
|
4701
4701
|
var loadPresetFunc = Juce.getNativeFunction('loadPreset');
|
|
4702
4702
|
var getAllPresetsFunc = Juce.getNativeFunction('getAllPresets');
|
|
4703
4703
|
var getCurrentPresetFunc = Juce.getNativeFunction('getCurrentPreset');
|
|
4704
4704
|
var isDirtyFunc = Juce.getNativeFunction('canUndo');
|
|
4705
|
-
var _useState2 = _sliced_to_array$
|
|
4705
|
+
var _useState2 = _sliced_to_array$a(useState(), 2), selectedPreset = _useState2[0], setSelectedPreset = _useState2[1];
|
|
4706
4706
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
4707
|
-
var _useState3 = _sliced_to_array$
|
|
4707
|
+
var _useState3 = _sliced_to_array$a(useState(false), 2), isDirty = _useState3[0], setIsDirty = _useState3[1];
|
|
4708
4708
|
useEffect(function() {
|
|
4709
4709
|
if (!isLocalhost) {
|
|
4710
4710
|
var isDirtyListenerId = //@ts-expect-error
|
|
@@ -4982,12 +4982,12 @@ function PresetManager(param) {
|
|
|
4982
4982
|
}))))));
|
|
4983
4983
|
}
|
|
4984
4984
|
|
|
4985
|
-
function _array_like_to_array$
|
|
4985
|
+
function _array_like_to_array$a(arr, len) {
|
|
4986
4986
|
if (len == null || len > arr.length) len = arr.length;
|
|
4987
4987
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4988
4988
|
return arr2;
|
|
4989
4989
|
}
|
|
4990
|
-
function _array_with_holes$
|
|
4990
|
+
function _array_with_holes$9(arr) {
|
|
4991
4991
|
if (Array.isArray(arr)) return arr;
|
|
4992
4992
|
}
|
|
4993
4993
|
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -5032,7 +5032,7 @@ function _define_property$6(obj, key, value) {
|
|
|
5032
5032
|
}
|
|
5033
5033
|
return obj;
|
|
5034
5034
|
}
|
|
5035
|
-
function _iterable_to_array_limit$
|
|
5035
|
+
function _iterable_to_array_limit$9(arr, i) {
|
|
5036
5036
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
5037
5037
|
if (_i == null) return;
|
|
5038
5038
|
var _arr = [];
|
|
@@ -5056,7 +5056,7 @@ function _iterable_to_array_limit$8(arr, i) {
|
|
|
5056
5056
|
}
|
|
5057
5057
|
return _arr;
|
|
5058
5058
|
}
|
|
5059
|
-
function _non_iterable_rest$
|
|
5059
|
+
function _non_iterable_rest$9() {
|
|
5060
5060
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5061
5061
|
}
|
|
5062
5062
|
function _object_spread$6(target) {
|
|
@@ -5074,16 +5074,16 @@ function _object_spread$6(target) {
|
|
|
5074
5074
|
}
|
|
5075
5075
|
return target;
|
|
5076
5076
|
}
|
|
5077
|
-
function _sliced_to_array$
|
|
5078
|
-
return _array_with_holes$
|
|
5077
|
+
function _sliced_to_array$9(arr, i) {
|
|
5078
|
+
return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$9();
|
|
5079
5079
|
}
|
|
5080
|
-
function _unsupported_iterable_to_array$
|
|
5080
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
5081
5081
|
if (!o) return;
|
|
5082
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5082
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
5083
5083
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5084
5084
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5085
5085
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5086
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5086
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
5087
5087
|
}
|
|
5088
5088
|
function _ts_generator$2(thisArg, body) {
|
|
5089
5089
|
var f, y, t, _ = {
|
|
@@ -5266,8 +5266,8 @@ function ModuleHeader(param) {
|
|
|
5266
5266
|
}, [
|
|
5267
5267
|
window
|
|
5268
5268
|
]);
|
|
5269
|
-
var _useState = _sliced_to_array$
|
|
5270
|
-
var _useState1 = _sliced_to_array$
|
|
5269
|
+
var _useState = _sliced_to_array$9(useState(false), 2), canUndo = _useState[0], setCanUndo = _useState[1];
|
|
5270
|
+
var _useState1 = _sliced_to_array$9(useState(false), 2), canRedo = _useState1[0], setCanRedo = _useState1[1];
|
|
5271
5271
|
var handleUndo = function() {
|
|
5272
5272
|
undo();
|
|
5273
5273
|
};
|
|
@@ -5520,12 +5520,12 @@ var targetColors = [
|
|
|
5520
5520
|
var ComboboxCellWidth = '217px';
|
|
5521
5521
|
var DeleteButtonCellWidth = '50px';
|
|
5522
5522
|
|
|
5523
|
-
function _array_like_to_array$
|
|
5523
|
+
function _array_like_to_array$9(arr, len) {
|
|
5524
5524
|
if (len == null || len > arr.length) len = arr.length;
|
|
5525
5525
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5526
5526
|
return arr2;
|
|
5527
5527
|
}
|
|
5528
|
-
function _array_with_holes$
|
|
5528
|
+
function _array_with_holes$8(arr) {
|
|
5529
5529
|
if (Array.isArray(arr)) return arr;
|
|
5530
5530
|
}
|
|
5531
5531
|
function _define_property$5(obj, key, value) {
|
|
@@ -5541,7 +5541,7 @@ function _define_property$5(obj, key, value) {
|
|
|
5541
5541
|
}
|
|
5542
5542
|
return obj;
|
|
5543
5543
|
}
|
|
5544
|
-
function _iterable_to_array_limit$
|
|
5544
|
+
function _iterable_to_array_limit$8(arr, i) {
|
|
5545
5545
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
5546
5546
|
if (_i == null) return;
|
|
5547
5547
|
var _arr = [];
|
|
@@ -5565,7 +5565,7 @@ function _iterable_to_array_limit$7(arr, i) {
|
|
|
5565
5565
|
}
|
|
5566
5566
|
return _arr;
|
|
5567
5567
|
}
|
|
5568
|
-
function _non_iterable_rest$
|
|
5568
|
+
function _non_iterable_rest$8() {
|
|
5569
5569
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5570
5570
|
}
|
|
5571
5571
|
function _object_spread$5(target) {
|
|
@@ -5583,20 +5583,20 @@ function _object_spread$5(target) {
|
|
|
5583
5583
|
}
|
|
5584
5584
|
return target;
|
|
5585
5585
|
}
|
|
5586
|
-
function _sliced_to_array$
|
|
5587
|
-
return _array_with_holes$
|
|
5586
|
+
function _sliced_to_array$8(arr, i) {
|
|
5587
|
+
return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$8();
|
|
5588
5588
|
}
|
|
5589
|
-
function _unsupported_iterable_to_array$
|
|
5589
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
5590
5590
|
if (!o) return;
|
|
5591
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5591
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
5592
5592
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5593
5593
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5594
5594
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5595
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5595
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
5596
5596
|
}
|
|
5597
5597
|
function ModMatrixComboboxCell(param) {
|
|
5598
5598
|
var rowId = param.rowId, key = param.key, color = param.color, style = param.style;
|
|
5599
|
-
var _useState = _sliced_to_array$
|
|
5599
|
+
var _useState = _sliced_to_array$8(useState(''), 2), filterString = _useState[0], setFilterString = _useState[1];
|
|
5600
5600
|
var _useGlobalContext = useGlobalContext(), updateModSlotRowTarget = _useGlobalContext.updateModSlotRowTarget, setModSlotRowTargetAsPreview = _useGlobalContext.setModSlotRowTargetAsPreview, clearModSlotPreview = _useGlobalContext.clearModSlotPreview, setNewModSlotPreview = _useGlobalContext.setNewModSlotPreview, _useGlobalContext_globalState = _useGlobalContext.globalState, modSlotPreview = _useGlobalContext_globalState.modSlotPreview, automatableParamLabels = _useGlobalContext_globalState.automatableParamLabels;
|
|
5601
5601
|
var _useCombobox = useCombobox({
|
|
5602
5602
|
id: rowId,
|
|
@@ -5797,12 +5797,12 @@ function SingleBarViz(param) {
|
|
|
5797
5797
|
}
|
|
5798
5798
|
SingleBarViz.polarity = Polarity;
|
|
5799
5799
|
|
|
5800
|
-
function _array_like_to_array$
|
|
5800
|
+
function _array_like_to_array$8(arr, len) {
|
|
5801
5801
|
if (len == null || len > arr.length) len = arr.length;
|
|
5802
5802
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5803
5803
|
return arr2;
|
|
5804
5804
|
}
|
|
5805
|
-
function _array_with_holes$
|
|
5805
|
+
function _array_with_holes$7(arr) {
|
|
5806
5806
|
if (Array.isArray(arr)) return arr;
|
|
5807
5807
|
}
|
|
5808
5808
|
function _define_property$2(obj, key, value) {
|
|
@@ -5818,7 +5818,7 @@ function _define_property$2(obj, key, value) {
|
|
|
5818
5818
|
}
|
|
5819
5819
|
return obj;
|
|
5820
5820
|
}
|
|
5821
|
-
function _iterable_to_array_limit$
|
|
5821
|
+
function _iterable_to_array_limit$7(arr, i) {
|
|
5822
5822
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
5823
5823
|
if (_i == null) return;
|
|
5824
5824
|
var _arr = [];
|
|
@@ -5842,7 +5842,7 @@ function _iterable_to_array_limit$6(arr, i) {
|
|
|
5842
5842
|
}
|
|
5843
5843
|
return _arr;
|
|
5844
5844
|
}
|
|
5845
|
-
function _non_iterable_rest$
|
|
5845
|
+
function _non_iterable_rest$7() {
|
|
5846
5846
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5847
5847
|
}
|
|
5848
5848
|
function _object_spread$2(target) {
|
|
@@ -5879,22 +5879,22 @@ function _object_spread_props(target, source) {
|
|
|
5879
5879
|
}
|
|
5880
5880
|
return target;
|
|
5881
5881
|
}
|
|
5882
|
-
function _sliced_to_array$
|
|
5883
|
-
return _array_with_holes$
|
|
5882
|
+
function _sliced_to_array$7(arr, i) {
|
|
5883
|
+
return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$7();
|
|
5884
5884
|
}
|
|
5885
|
-
function _unsupported_iterable_to_array$
|
|
5885
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
5886
5886
|
if (!o) return;
|
|
5887
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5887
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
5888
5888
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5889
5889
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5890
5890
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5891
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5891
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
5892
5892
|
}
|
|
5893
5893
|
function ModMatrixCell(param) {
|
|
5894
5894
|
var modifier = param.modifier, rowId = param.rowId, isDisabled = param.isDisabled, color = param.color, style = param.style;
|
|
5895
5895
|
var _SingleBarViz_polarity;
|
|
5896
5896
|
var _useGlobalContext = useGlobalContext(), setDefaultParameter = _useGlobalContext.setDefaultParameter, saveModSlotPreviewRowTargetToBackend = _useGlobalContext.saveModSlotPreviewRowTargetToBackend;
|
|
5897
|
-
var _useState = _sliced_to_array$
|
|
5897
|
+
var _useState = _sliced_to_array$7(useState(false), 2); _useState[0]; var setIsActive = _useState[1];
|
|
5898
5898
|
var _useSlider = useSlider({
|
|
5899
5899
|
id: modifier,
|
|
5900
5900
|
rowId: rowId,
|
|
@@ -6037,16 +6037,16 @@ function ModMatrixRow(param) {
|
|
|
6037
6037
|
})));
|
|
6038
6038
|
}
|
|
6039
6039
|
|
|
6040
|
-
function _array_like_to_array$
|
|
6040
|
+
function _array_like_to_array$7(arr, len) {
|
|
6041
6041
|
if (len == null || len > arr.length) len = arr.length;
|
|
6042
6042
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6043
6043
|
return arr2;
|
|
6044
6044
|
}
|
|
6045
|
-
function _array_with_holes$
|
|
6045
|
+
function _array_with_holes$6(arr) {
|
|
6046
6046
|
if (Array.isArray(arr)) return arr;
|
|
6047
6047
|
}
|
|
6048
6048
|
function _array_without_holes$1(arr) {
|
|
6049
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
6049
|
+
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
6050
6050
|
}
|
|
6051
6051
|
function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
6052
6052
|
try {
|
|
@@ -6093,7 +6093,7 @@ function _define_property$1(obj, key, value) {
|
|
|
6093
6093
|
function _iterable_to_array$1(iter) {
|
|
6094
6094
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
6095
6095
|
}
|
|
6096
|
-
function _iterable_to_array_limit$
|
|
6096
|
+
function _iterable_to_array_limit$6(arr, i) {
|
|
6097
6097
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6098
6098
|
if (_i == null) return;
|
|
6099
6099
|
var _arr = [];
|
|
@@ -6117,7 +6117,7 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
6117
6117
|
}
|
|
6118
6118
|
return _arr;
|
|
6119
6119
|
}
|
|
6120
|
-
function _non_iterable_rest$
|
|
6120
|
+
function _non_iterable_rest$6() {
|
|
6121
6121
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6122
6122
|
}
|
|
6123
6123
|
function _non_iterable_spread$1() {
|
|
@@ -6138,19 +6138,19 @@ function _object_spread$1(target) {
|
|
|
6138
6138
|
}
|
|
6139
6139
|
return target;
|
|
6140
6140
|
}
|
|
6141
|
-
function _sliced_to_array$
|
|
6142
|
-
return _array_with_holes$
|
|
6141
|
+
function _sliced_to_array$6(arr, i) {
|
|
6142
|
+
return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$6();
|
|
6143
6143
|
}
|
|
6144
6144
|
function _to_consumable_array$1(arr) {
|
|
6145
|
-
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$
|
|
6145
|
+
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread$1();
|
|
6146
6146
|
}
|
|
6147
|
-
function _unsupported_iterable_to_array$
|
|
6147
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
6148
6148
|
if (!o) return;
|
|
6149
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6149
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
6150
6150
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6151
6151
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6152
6152
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6153
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6153
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
6154
6154
|
}
|
|
6155
6155
|
function _ts_generator$1(thisArg, body) {
|
|
6156
6156
|
var f, y, t, _ = {
|
|
@@ -6249,7 +6249,7 @@ function ModMatrix(param) {
|
|
|
6249
6249
|
var getAutomatableParamsListFunc = Juce.getNativeFunction('getAutomatableParamsList');
|
|
6250
6250
|
var getAllModSlotsFunc = Juce.getNativeFunction('getAllModSlots');
|
|
6251
6251
|
var getModSlotParamsFunc = Juce.getNativeFunction('getModSlotParams');
|
|
6252
|
-
var _useState = _sliced_to_array$
|
|
6252
|
+
var _useState = _sliced_to_array$6(useState([]), 2), displayedModSlots = _useState[0], setDisplayedModSlots = _useState[1];
|
|
6253
6253
|
var _useGlobalContext = useGlobalContext(), automatableParamsListReceived = _useGlobalContext.automatableParamsListReceived, automatableParamLabelsReceived = _useGlobalContext.automatableParamLabelsReceived, modSlotsReceived = _useGlobalContext.modSlotsReceived, modSlotRowTargetsReceived = _useGlobalContext.modSlotRowTargetsReceived, setNewModSlotPreview = _useGlobalContext.setNewModSlotPreview, modSlotParamsListReceived = _useGlobalContext.modSlotParamsListReceived, modSlotParamLabelsReceived = _useGlobalContext.modSlotParamLabelsReceived, _useGlobalContext_globalState = _useGlobalContext.globalState, modSlotParamLabels = _useGlobalContext_globalState.modSlotParamLabels, modSlotTargets = _useGlobalContext_globalState.modSlotTargets, modSlotIds = _useGlobalContext_globalState.modSlotIds, modSlotPreview = _useGlobalContext_globalState.modSlotPreview;
|
|
6254
6254
|
// Empty state preview row
|
|
6255
6255
|
useEffect(function() {
|
|
@@ -6411,13 +6411,13 @@ var WaveTypes = /*#__PURE__*/ function(WaveTypes) {
|
|
|
6411
6411
|
return WaveTypes;
|
|
6412
6412
|
}({});
|
|
6413
6413
|
|
|
6414
|
-
function _array_like_to_array$
|
|
6414
|
+
function _array_like_to_array$6(arr, len) {
|
|
6415
6415
|
if (len == null || len > arr.length) len = arr.length;
|
|
6416
6416
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6417
6417
|
return arr2;
|
|
6418
6418
|
}
|
|
6419
6419
|
function _array_without_holes(arr) {
|
|
6420
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
6420
|
+
if (Array.isArray(arr)) return _array_like_to_array$6(arr);
|
|
6421
6421
|
}
|
|
6422
6422
|
function _iterable_to_array(iter) {
|
|
6423
6423
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -6426,15 +6426,15 @@ function _non_iterable_spread() {
|
|
|
6426
6426
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6427
6427
|
}
|
|
6428
6428
|
function _to_consumable_array(arr) {
|
|
6429
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$
|
|
6429
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$6(arr) || _non_iterable_spread();
|
|
6430
6430
|
}
|
|
6431
|
-
function _unsupported_iterable_to_array$
|
|
6431
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
6432
6432
|
if (!o) return;
|
|
6433
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6433
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
6434
6434
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6435
6435
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6436
6436
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6437
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6437
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
6438
6438
|
}
|
|
6439
6439
|
var getPointArray = function(param) {
|
|
6440
6440
|
var waveType = param.waveType, hz = param.hz, phaseValue = param.phaseValue, _param_pulseWidth = param.pulseWidth, pulseWidth = _param_pulseWidth === void 0 ? 1 : _param_pulseWidth, _param_ampValue = param.ampValue, ampValue = _param_ampValue === void 0 ? 0.5 : _param_ampValue, _param_randValue = param.randValue, randValue = _param_randValue === void 0 ? 1 : _param_randValue, _param_maxArrayLength = param.maxArrayLength, maxArrayLength = _param_maxArrayLength;
|
|
@@ -6716,7 +6716,7 @@ function Ticks(param) {
|
|
|
6716
6716
|
})) : null);
|
|
6717
6717
|
}
|
|
6718
6718
|
|
|
6719
|
-
function
|
|
6719
|
+
function LineChart(param) {
|
|
6720
6720
|
var data = param.data, width = param.width, height = param.height; param.margin; var strokeColor = param.strokeColor, fillColor = param.fillColor, fillGradient = param.fillGradient;
|
|
6721
6721
|
// const innerHeight = height - margin * 2;
|
|
6722
6722
|
// const innerWidth = width - margin * 2;
|
|
@@ -6759,17 +6759,17 @@ function Chart(param) {
|
|
|
6759
6759
|
yScale: yScale
|
|
6760
6760
|
})));
|
|
6761
6761
|
}
|
|
6762
|
-
|
|
6762
|
+
LineChart.fillGradient = GradientStyles;
|
|
6763
6763
|
|
|
6764
|
-
function _array_like_to_array$
|
|
6764
|
+
function _array_like_to_array$5(arr, len) {
|
|
6765
6765
|
if (len == null || len > arr.length) len = arr.length;
|
|
6766
6766
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6767
6767
|
return arr2;
|
|
6768
6768
|
}
|
|
6769
|
-
function _array_with_holes$
|
|
6769
|
+
function _array_with_holes$5(arr) {
|
|
6770
6770
|
if (Array.isArray(arr)) return arr;
|
|
6771
6771
|
}
|
|
6772
|
-
function _iterable_to_array_limit$
|
|
6772
|
+
function _iterable_to_array_limit$5(arr, i) {
|
|
6773
6773
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6774
6774
|
if (_i == null) return;
|
|
6775
6775
|
var _arr = [];
|
|
@@ -6793,41 +6793,41 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
6793
6793
|
}
|
|
6794
6794
|
return _arr;
|
|
6795
6795
|
}
|
|
6796
|
-
function _non_iterable_rest$
|
|
6796
|
+
function _non_iterable_rest$5() {
|
|
6797
6797
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6798
6798
|
}
|
|
6799
|
-
function _sliced_to_array$
|
|
6800
|
-
return _array_with_holes$
|
|
6799
|
+
function _sliced_to_array$5(arr, i) {
|
|
6800
|
+
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$5(arr, i) || _non_iterable_rest$5();
|
|
6801
6801
|
}
|
|
6802
|
-
function _unsupported_iterable_to_array$
|
|
6802
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
6803
6803
|
if (!o) return;
|
|
6804
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6804
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
6805
6805
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6806
6806
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6807
6807
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6808
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6808
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
6809
6809
|
}
|
|
6810
6810
|
function LFOVisualizer(param) {
|
|
6811
6811
|
var id = param.id, _param_width = param.width, width = _param_width === void 0 ? 365 : _param_width, _param_height = param.height, height = _param_height === void 0 ? 160 : _param_height;
|
|
6812
6812
|
// const svgRef = useRef(null);
|
|
6813
6813
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
6814
|
-
var _useState = _sliced_to_array$
|
|
6815
|
-
var _useState1 = _sliced_to_array$
|
|
6816
|
-
var _useState2 = _sliced_to_array$
|
|
6814
|
+
var _useState = _sliced_to_array$5(useState(0), 2), waveValue = _useState[0], setWaveValue = _useState[1];
|
|
6815
|
+
var _useState1 = _sliced_to_array$5(useState(0), 2), hzValue = _useState1[0], setHzValue = _useState1[1];
|
|
6816
|
+
var _useState2 = _sliced_to_array$5(useState(0), 2), hzHiValue = _useState2[0], setHzHiValue = _useState2[1];
|
|
6817
6817
|
//@ts-expect-error
|
|
6818
|
-
var _useState3 = _sliced_to_array$
|
|
6819
|
-
var _useState4 = _sliced_to_array$
|
|
6818
|
+
var _useState3 = _sliced_to_array$5(useState(0), 2); _useState3[0]; var setSyncRateValue = _useState3[1];
|
|
6819
|
+
var _useState4 = _sliced_to_array$5(useState(0), 2), syncTypeValue = _useState4[0], setSyncTypeValue = _useState4[1];
|
|
6820
6820
|
//@ts-expect-error
|
|
6821
|
-
var _useState5 = _sliced_to_array$
|
|
6821
|
+
var _useState5 = _sliced_to_array$5(useState(0), 2); _useState5[0]; var setSixteenthsValue = _useState5[1];
|
|
6822
6822
|
//@ts-expect-error
|
|
6823
|
-
var _useState6 = _sliced_to_array$
|
|
6823
|
+
var _useState6 = _sliced_to_array$5(useState(0), 2); _useState6[0]; var setThirdsValue = _useState6[1];
|
|
6824
6824
|
//@ts-expect-error
|
|
6825
|
-
var _useState7 = _sliced_to_array$
|
|
6826
|
-
var _useState8 = _sliced_to_array$
|
|
6827
|
-
var _useState9 = _sliced_to_array$
|
|
6828
|
-
var _useState10 = _sliced_to_array$
|
|
6829
|
-
var _useState11 = _sliced_to_array$
|
|
6830
|
-
var _useState12 = _sliced_to_array$
|
|
6825
|
+
var _useState7 = _sliced_to_array$5(useState(0), 2); _useState7[0]; var setSyncOffsetValue = _useState7[1];
|
|
6826
|
+
var _useState8 = _sliced_to_array$5(useState(0), 2), phaseValue = _useState8[0], setPhaseValue = _useState8[1];
|
|
6827
|
+
var _useState9 = _sliced_to_array$5(useState(0), 2), widthValue = _useState9[0], setWidthValue = _useState9[1];
|
|
6828
|
+
var _useState10 = _sliced_to_array$5(useState(0), 2), ampValue = _useState10[0], setAmpValue = _useState10[1];
|
|
6829
|
+
var _useState11 = _sliced_to_array$5(useState(0), 2), randValue = _useState11[0], setRandValue = _useState11[1];
|
|
6830
|
+
var _useState12 = _sliced_to_array$5(useState([]), 2), points = _useState12[0], setPoints = _useState12[1];
|
|
6831
6831
|
// const [numLoops, setNumLoops] = useState(1);
|
|
6832
6832
|
var maxArrayLength = 512;
|
|
6833
6833
|
// useEffect(() => {
|
|
@@ -7116,24 +7116,24 @@ function LFOVisualizer(param) {
|
|
|
7116
7116
|
overflow: 'hidden',
|
|
7117
7117
|
width: width
|
|
7118
7118
|
}
|
|
7119
|
-
}, /*#__PURE__*/ React__default.createElement(
|
|
7119
|
+
}, /*#__PURE__*/ React__default.createElement(LineChart, {
|
|
7120
7120
|
data: points,
|
|
7121
7121
|
margin: 0,
|
|
7122
7122
|
width: width,
|
|
7123
7123
|
height: height,
|
|
7124
|
-
fillGradient:
|
|
7124
|
+
fillGradient: LineChart.fillGradient.unicolor
|
|
7125
7125
|
})));
|
|
7126
7126
|
}
|
|
7127
7127
|
|
|
7128
|
-
function _array_like_to_array$
|
|
7128
|
+
function _array_like_to_array$4(arr, len) {
|
|
7129
7129
|
if (len == null || len > arr.length) len = arr.length;
|
|
7130
7130
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7131
7131
|
return arr2;
|
|
7132
7132
|
}
|
|
7133
|
-
function _array_with_holes$
|
|
7133
|
+
function _array_with_holes$4(arr) {
|
|
7134
7134
|
if (Array.isArray(arr)) return arr;
|
|
7135
7135
|
}
|
|
7136
|
-
function _iterable_to_array_limit$
|
|
7136
|
+
function _iterable_to_array_limit$4(arr, i) {
|
|
7137
7137
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7138
7138
|
if (_i == null) return;
|
|
7139
7139
|
var _arr = [];
|
|
@@ -7157,23 +7157,23 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
7157
7157
|
}
|
|
7158
7158
|
return _arr;
|
|
7159
7159
|
}
|
|
7160
|
-
function _non_iterable_rest$
|
|
7160
|
+
function _non_iterable_rest$4() {
|
|
7161
7161
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7162
7162
|
}
|
|
7163
|
-
function _sliced_to_array$
|
|
7164
|
-
return _array_with_holes$
|
|
7163
|
+
function _sliced_to_array$4(arr, i) {
|
|
7164
|
+
return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$4();
|
|
7165
7165
|
}
|
|
7166
|
-
function _unsupported_iterable_to_array$
|
|
7166
|
+
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
7167
7167
|
if (!o) return;
|
|
7168
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7168
|
+
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
7169
7169
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7170
7170
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7171
7171
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7172
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7172
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
|
|
7173
7173
|
}
|
|
7174
7174
|
function LFOBox(param) {
|
|
7175
7175
|
var id = param.id;
|
|
7176
|
-
var _useState = _sliced_to_array$
|
|
7176
|
+
var _useState = _sliced_to_array$4(useState(0), 2), syncType = _useState[0], setSyncType = _useState[1];
|
|
7177
7177
|
useEffect(function() {
|
|
7178
7178
|
var _Juce_getComboBoxState;
|
|
7179
7179
|
var syncType = (_Juce_getComboBoxState = Juce.getComboBoxState("LFO".concat(id, "_SyncType"))) === null || _Juce_getComboBoxState === void 0 ? void 0 : _Juce_getComboBoxState.getChoiceIndex();
|
|
@@ -7363,15 +7363,15 @@ function LFOTab() {
|
|
|
7363
7363
|
}));
|
|
7364
7364
|
}
|
|
7365
7365
|
|
|
7366
|
-
function _array_like_to_array$
|
|
7366
|
+
function _array_like_to_array$3(arr, len) {
|
|
7367
7367
|
if (len == null || len > arr.length) len = arr.length;
|
|
7368
7368
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7369
7369
|
return arr2;
|
|
7370
7370
|
}
|
|
7371
|
-
function _array_with_holes$
|
|
7371
|
+
function _array_with_holes$3(arr) {
|
|
7372
7372
|
if (Array.isArray(arr)) return arr;
|
|
7373
7373
|
}
|
|
7374
|
-
function _iterable_to_array_limit$
|
|
7374
|
+
function _iterable_to_array_limit$3(arr, i) {
|
|
7375
7375
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7376
7376
|
if (_i == null) return;
|
|
7377
7377
|
var _arr = [];
|
|
@@ -7395,24 +7395,24 @@ function _iterable_to_array_limit$2(arr, i) {
|
|
|
7395
7395
|
}
|
|
7396
7396
|
return _arr;
|
|
7397
7397
|
}
|
|
7398
|
-
function _non_iterable_rest$
|
|
7398
|
+
function _non_iterable_rest$3() {
|
|
7399
7399
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7400
7400
|
}
|
|
7401
|
-
function _sliced_to_array$
|
|
7402
|
-
return _array_with_holes$
|
|
7401
|
+
function _sliced_to_array$3(arr, i) {
|
|
7402
|
+
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$3(arr, i) || _non_iterable_rest$3();
|
|
7403
7403
|
}
|
|
7404
|
-
function _unsupported_iterable_to_array$
|
|
7404
|
+
function _unsupported_iterable_to_array$3(o, minLen) {
|
|
7405
7405
|
if (!o) return;
|
|
7406
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7406
|
+
if (typeof o === "string") return _array_like_to_array$3(o, minLen);
|
|
7407
7407
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7408
7408
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7409
7409
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7410
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7410
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
|
|
7411
7411
|
}
|
|
7412
7412
|
function StepSequencer(param) {
|
|
7413
7413
|
var seqId = param.seqId, _param_numSteps = param.numSteps, numSteps = _param_numSteps === void 0 ? 16 : _param_numSteps;
|
|
7414
7414
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
7415
|
-
var _useState = _sliced_to_array$
|
|
7415
|
+
var _useState = _sliced_to_array$3(useState(1), 2), currentSeqStep = _useState[0], setCurrentSeqStep = _useState[1];
|
|
7416
7416
|
var steps = new Array(numSteps).fill(0);
|
|
7417
7417
|
// const currentElementRef = useRef<string>(null);
|
|
7418
7418
|
// const isMouseDownRef = useRef<boolean>(false);
|
|
@@ -7493,15 +7493,15 @@ function StepSequencer(param) {
|
|
|
7493
7493
|
}));
|
|
7494
7494
|
}
|
|
7495
7495
|
|
|
7496
|
-
function _array_like_to_array$
|
|
7496
|
+
function _array_like_to_array$2(arr, len) {
|
|
7497
7497
|
if (len == null || len > arr.length) len = arr.length;
|
|
7498
7498
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7499
7499
|
return arr2;
|
|
7500
7500
|
}
|
|
7501
|
-
function _array_with_holes$
|
|
7501
|
+
function _array_with_holes$2(arr) {
|
|
7502
7502
|
if (Array.isArray(arr)) return arr;
|
|
7503
7503
|
}
|
|
7504
|
-
function _iterable_to_array_limit$
|
|
7504
|
+
function _iterable_to_array_limit$2(arr, i) {
|
|
7505
7505
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7506
7506
|
if (_i == null) return;
|
|
7507
7507
|
var _arr = [];
|
|
@@ -7525,23 +7525,23 @@ function _iterable_to_array_limit$1(arr, i) {
|
|
|
7525
7525
|
}
|
|
7526
7526
|
return _arr;
|
|
7527
7527
|
}
|
|
7528
|
-
function _non_iterable_rest$
|
|
7528
|
+
function _non_iterable_rest$2() {
|
|
7529
7529
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7530
7530
|
}
|
|
7531
|
-
function _sliced_to_array$
|
|
7532
|
-
return _array_with_holes$
|
|
7531
|
+
function _sliced_to_array$2(arr, i) {
|
|
7532
|
+
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
|
|
7533
7533
|
}
|
|
7534
|
-
function _unsupported_iterable_to_array$
|
|
7534
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
7535
7535
|
if (!o) return;
|
|
7536
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7536
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
7537
7537
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7538
7538
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7539
7539
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7540
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7540
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
7541
7541
|
}
|
|
7542
7542
|
function SeqTab$1(param) {
|
|
7543
7543
|
var seqId = param.seqId;
|
|
7544
|
-
var _useState = _sliced_to_array$
|
|
7544
|
+
var _useState = _sliced_to_array$2(useState(0), 2), syncType = _useState[0], setSyncType = _useState[1];
|
|
7545
7545
|
useEffect(function() {
|
|
7546
7546
|
var _Juce_getSliderState;
|
|
7547
7547
|
var syncType = (_Juce_getSliderState = Juce.getSliderState("seq".concat(seqId, "_syncType"))) === null || _Juce_getSliderState === void 0 ? void 0 : _Juce_getSliderState.scaledValue;
|
|
@@ -7716,6 +7716,241 @@ function SeqTab() {
|
|
|
7716
7716
|
}));
|
|
7717
7717
|
}
|
|
7718
7718
|
|
|
7719
|
+
// import Ticks from './Ticks';
|
|
7720
|
+
function StackedChart(param) {
|
|
7721
|
+
var value = param.value, width = param.width, height = param.height, _param_backgroundColor = param.backgroundColor, backgroundColor = _param_backgroundColor === void 0 ? 'var(--bg-lv2)' : _param_backgroundColor; param.colors;
|
|
7722
|
+
var _stack_keys, _Object, _stack;
|
|
7723
|
+
var thresholds = {
|
|
7724
|
+
med: 0.75,
|
|
7725
|
+
high: 0.9,
|
|
7726
|
+
max: 1
|
|
7727
|
+
};
|
|
7728
|
+
// const [dataArray, setDataArray] = useState<Array<Array<number>>>([]);
|
|
7729
|
+
var getBands = function(data) {
|
|
7730
|
+
return [
|
|
7731
|
+
{
|
|
7732
|
+
low: Math.min(data, thresholds.med),
|
|
7733
|
+
med: Math.min(Math.max(data - thresholds.med, 0), thresholds.high - thresholds.med),
|
|
7734
|
+
high: Math.min(Math.max(data - thresholds.high, 0), thresholds.max - thresholds.high)
|
|
7735
|
+
}
|
|
7736
|
+
];
|
|
7737
|
+
};
|
|
7738
|
+
var bands = getBands(value);
|
|
7739
|
+
var series = (_stack = stack()) === null || _stack === void 0 ? void 0 : (_stack_keys = _stack.keys((_Object = Object) === null || _Object === void 0 ? void 0 : _Object.keys(bands[0]))) === null || _stack_keys === void 0 ? void 0 : _stack_keys(bands);
|
|
7740
|
+
// const keys = Object?.keys(bands[0]);
|
|
7741
|
+
// apples, bananas, cherries, …
|
|
7742
|
+
// .value(([, group], key) => group.get(key).sales)
|
|
7743
|
+
// (d3.index(data, d => d.date, d => d.fruit));
|
|
7744
|
+
console.log(bands, series, 'SERES');
|
|
7745
|
+
var xScale = scaleLinear().range([
|
|
7746
|
+
0,
|
|
7747
|
+
width
|
|
7748
|
+
]);
|
|
7749
|
+
// console.log(xScale('1'), 'xScale()');
|
|
7750
|
+
var yScale = scaleLinear().domain([
|
|
7751
|
+
0,
|
|
7752
|
+
1
|
|
7753
|
+
]).range([
|
|
7754
|
+
height,
|
|
7755
|
+
0
|
|
7756
|
+
]);
|
|
7757
|
+
var color = scaleOrdinal().domain(series.map(function(d, i) {
|
|
7758
|
+
return "".concat(i);
|
|
7759
|
+
})).range([
|
|
7760
|
+
'green',
|
|
7761
|
+
'orange',
|
|
7762
|
+
'red'
|
|
7763
|
+
]).unknown('#ccc');
|
|
7764
|
+
// useEffect(() => {
|
|
7765
|
+
// setDataArray(getBands(data));
|
|
7766
|
+
// }, [data]);
|
|
7767
|
+
// const xScale = width && scaleLinear().domain([0, 1]).range([0, width]);
|
|
7768
|
+
// //@ts-expect-error
|
|
7769
|
+
// const yScale =
|
|
7770
|
+
// height &&
|
|
7771
|
+
// scaleLinear()
|
|
7772
|
+
// .domain([0, 1])
|
|
7773
|
+
// .range([height - 5, 5]);
|
|
7774
|
+
return /*#__PURE__*/ React__default.createElement("svg", {
|
|
7775
|
+
width: width,
|
|
7776
|
+
height: height
|
|
7777
|
+
}, /*#__PURE__*/ React__default.createElement("g", null, /*#__PURE__*/ React__default.createElement("rect", {
|
|
7778
|
+
width: width,
|
|
7779
|
+
height: height,
|
|
7780
|
+
fill: backgroundColor
|
|
7781
|
+
})), /*#__PURE__*/ React__default.createElement("g", null, series.map(function(item, i) {
|
|
7782
|
+
console.log(item, item[0][1] - item[0][0], 'itmememememddd');
|
|
7783
|
+
return /*#__PURE__*/ React__default.createElement("rect", {
|
|
7784
|
+
//@ts-expect-error
|
|
7785
|
+
fill: color("".concat(i)),
|
|
7786
|
+
transform: "translate(0, 100) scale(1, -1)",
|
|
7787
|
+
// x={item?.[i]?.[0]}
|
|
7788
|
+
// x1={item?.[i]?.[0]}
|
|
7789
|
+
// y={item?.[i]?.[1]}
|
|
7790
|
+
// y1={item?.[i]?.[1]}
|
|
7791
|
+
// .attr("height", d => y(d[0]) - y(d[1]))
|
|
7792
|
+
// .attr("width", x.bandwidth())
|
|
7793
|
+
// height={area}
|
|
7794
|
+
// .attr("height", d => y(d[0]) - y(d[1]))
|
|
7795
|
+
width: width,
|
|
7796
|
+
height: yScale(1 - (item[0][1] - item[0][0])),
|
|
7797
|
+
x: function(d) {
|
|
7798
|
+
return xScale(0);
|
|
7799
|
+
}(),
|
|
7800
|
+
y: function(d) {
|
|
7801
|
+
console.log(d, 'DDDDDDDD))))))____');
|
|
7802
|
+
return yScale(1 - d[i][0][0]);
|
|
7803
|
+
}(series)
|
|
7804
|
+
});
|
|
7805
|
+
})));
|
|
7806
|
+
}
|
|
7807
|
+
StackedChart.fillGradient = GradientStyles;
|
|
7808
|
+
|
|
7809
|
+
var ChartTypes = /*#__PURE__*/ function(ChartTypes) {
|
|
7810
|
+
ChartTypes["stacked"] = "stacked";
|
|
7811
|
+
ChartTypes["line"] = "line";
|
|
7812
|
+
return ChartTypes;
|
|
7813
|
+
}(ChartTypes || {});
|
|
7814
|
+
function Chart(param) {
|
|
7815
|
+
var _param_chartType = param.chartType, chartType = _param_chartType === void 0 ? "line" : _param_chartType, data = param.data, width = param.width, height = param.height, _param_margin = param.margin, margin = _param_margin === void 0 ? 5 : _param_margin, value = param.value, strokeColor = param.strokeColor, fillColor = param.fillColor, fillGradient = param.fillGradient, stackedChartColors = param.stackedChartColors;
|
|
7816
|
+
return /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, chartType === "line" ? /*#__PURE__*/ React__default.createElement(LineChart, {
|
|
7817
|
+
data: data || [],
|
|
7818
|
+
width: width,
|
|
7819
|
+
height: height,
|
|
7820
|
+
margin: margin,
|
|
7821
|
+
strokeColor: strokeColor,
|
|
7822
|
+
fillColor: fillColor,
|
|
7823
|
+
fillGradient: fillGradient
|
|
7824
|
+
}) : null, chartType === "stacked" ? /*#__PURE__*/ React__default.createElement(StackedChart, {
|
|
7825
|
+
value: value || 0,
|
|
7826
|
+
width: width,
|
|
7827
|
+
height: height,
|
|
7828
|
+
colors: stackedChartColors
|
|
7829
|
+
}) : null);
|
|
7830
|
+
}
|
|
7831
|
+
Chart.fillGradient = GradientStyles;
|
|
7832
|
+
Chart.chartType = ChartTypes;
|
|
7833
|
+
|
|
7834
|
+
function _array_like_to_array$1(arr, len) {
|
|
7835
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
7836
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7837
|
+
return arr2;
|
|
7838
|
+
}
|
|
7839
|
+
function _array_with_holes$1(arr) {
|
|
7840
|
+
if (Array.isArray(arr)) return arr;
|
|
7841
|
+
}
|
|
7842
|
+
function _iterable_to_array_limit$1(arr, i) {
|
|
7843
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7844
|
+
if (_i == null) return;
|
|
7845
|
+
var _arr = [];
|
|
7846
|
+
var _n = true;
|
|
7847
|
+
var _d = false;
|
|
7848
|
+
var _s, _e;
|
|
7849
|
+
try {
|
|
7850
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
7851
|
+
_arr.push(_s.value);
|
|
7852
|
+
if (i && _arr.length === i) break;
|
|
7853
|
+
}
|
|
7854
|
+
} catch (err) {
|
|
7855
|
+
_d = true;
|
|
7856
|
+
_e = err;
|
|
7857
|
+
} finally{
|
|
7858
|
+
try {
|
|
7859
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
7860
|
+
} finally{
|
|
7861
|
+
if (_d) throw _e;
|
|
7862
|
+
}
|
|
7863
|
+
}
|
|
7864
|
+
return _arr;
|
|
7865
|
+
}
|
|
7866
|
+
function _non_iterable_rest$1() {
|
|
7867
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7868
|
+
}
|
|
7869
|
+
function _sliced_to_array$1(arr, i) {
|
|
7870
|
+
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
|
|
7871
|
+
}
|
|
7872
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
7873
|
+
if (!o) return;
|
|
7874
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
7875
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7876
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7877
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7878
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
7879
|
+
}
|
|
7880
|
+
function InputModTab$1() {
|
|
7881
|
+
var _useState = _sliced_to_array$1(useState(0), 2), val = _useState[0], setVal = _useState[1];
|
|
7882
|
+
var numbers = [
|
|
7883
|
+
0.1,
|
|
7884
|
+
0.15,
|
|
7885
|
+
0.2,
|
|
7886
|
+
0.3,
|
|
7887
|
+
0.4,
|
|
7888
|
+
0.4,
|
|
7889
|
+
0.4,
|
|
7890
|
+
0.5,
|
|
7891
|
+
0.95,
|
|
7892
|
+
0.8,
|
|
7893
|
+
0.7,
|
|
7894
|
+
0.7,
|
|
7895
|
+
0.8,
|
|
7896
|
+
0.95,
|
|
7897
|
+
0.95,
|
|
7898
|
+
0.8,
|
|
7899
|
+
0.75,
|
|
7900
|
+
0.6
|
|
7901
|
+
];
|
|
7902
|
+
useEffect(function() {
|
|
7903
|
+
var index = 0;
|
|
7904
|
+
setInterval(function() {
|
|
7905
|
+
setVal(numbers[index]);
|
|
7906
|
+
if (index < numbers.length) {
|
|
7907
|
+
index += 1;
|
|
7908
|
+
} else {
|
|
7909
|
+
index = 0;
|
|
7910
|
+
}
|
|
7911
|
+
}, 50);
|
|
7912
|
+
console.log(val, 'vallll');
|
|
7913
|
+
});
|
|
7914
|
+
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
7915
|
+
className: "InputModTab",
|
|
7916
|
+
gap: Box.gap.xLarge,
|
|
7917
|
+
fullHeight: true,
|
|
7918
|
+
// alignItems={Box.alignItems.flexStart}
|
|
7919
|
+
padding: [
|
|
7920
|
+
Box.padding.medium
|
|
7921
|
+
]
|
|
7922
|
+
}, /*#__PURE__*/ React__default.createElement(Box, {
|
|
7923
|
+
width: Box.width.auto,
|
|
7924
|
+
padding: [
|
|
7925
|
+
Box.padding.medium
|
|
7926
|
+
]
|
|
7927
|
+
}, /*#__PURE__*/ React__default.createElement(Slider, {
|
|
7928
|
+
id: "inputLevel",
|
|
7929
|
+
label: "Input level",
|
|
7930
|
+
indicatorLineColor: "var(--color-brand)",
|
|
7931
|
+
knobStrokeColor: "var(--color-brand)",
|
|
7932
|
+
trackColor: "var(--color-brand-900)",
|
|
7933
|
+
trackWidth: 3,
|
|
7934
|
+
indicatorLineGradient: Slider.gradientStyles.unicolor,
|
|
7935
|
+
markerShape: Slider.markerShape.rectangle
|
|
7936
|
+
})), /*#__PURE__*/ React__default.createElement(Box, {
|
|
7937
|
+
width: Box.width.auto,
|
|
7938
|
+
padding: [
|
|
7939
|
+
Box.padding.medium
|
|
7940
|
+
]
|
|
7941
|
+
}, /*#__PURE__*/ React__default.createElement(Chart, {
|
|
7942
|
+
chartType: Chart.chartType.stacked,
|
|
7943
|
+
width: 15,
|
|
7944
|
+
height: 100,
|
|
7945
|
+
value: val
|
|
7946
|
+
}), /*#__PURE__*/ React__default.createElement(Chart, {
|
|
7947
|
+
chartType: Chart.chartType.stacked,
|
|
7948
|
+
width: 15,
|
|
7949
|
+
height: 100,
|
|
7950
|
+
value: val
|
|
7951
|
+
})));
|
|
7952
|
+
}
|
|
7953
|
+
|
|
7719
7954
|
var css_248z = ".ModuleFooter-tabs {\n overflow-y: auto;\n overflow-x: hidden;\n max-height: 340px;\n}\n";
|
|
7720
7955
|
styleInject(css_248z);
|
|
7721
7956
|
|
|
@@ -7925,7 +8160,7 @@ var ModMatrixTab = function() {
|
|
|
7925
8160
|
return /*#__PURE__*/ React__default.createElement(ModMatrix, null);
|
|
7926
8161
|
};
|
|
7927
8162
|
var InputModTab = function() {
|
|
7928
|
-
return /*#__PURE__*/ React__default.createElement(
|
|
8163
|
+
return /*#__PURE__*/ React__default.createElement(InputModTab$1, null);
|
|
7929
8164
|
};
|
|
7930
8165
|
var SequencerTab = function() {
|
|
7931
8166
|
return /*#__PURE__*/ React__default.createElement(SeqTab, null);
|