@antimatter-audio/antimatter-ui 10.5.0 → 10.6.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/ModMatrix/ModMatrixCell.d.ts.map +1 -1
- package/dist/hooks/useSlider.d.ts +4 -2
- package/dist/hooks/useSlider.d.ts.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/src/advanced/ModMatrix/ModMatrixCell.d.ts.map +1 -1
- package/dist/src/hooks/useSlider.d.ts +4 -2
- package/dist/src/hooks/useSlider.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModMatrixCell.d.ts","sourceRoot":"","sources":["../../../src/advanced/ModMatrix/ModMatrixCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,iBAAS,aAAa,CAAC,EACrB,QAAQ,EACR,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,
|
|
1
|
+
{"version":3,"file":"ModMatrixCell.d.ts","sourceRoot":"","sources":["../../../src/advanced/ModMatrix/ModMatrixCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,iBAAS,aAAa,CAAC,EACrB,QAAQ,EACR,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,qBAwCA;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { JuceSliderProperties } from '../core/Slider/types';
|
|
2
2
|
import { Orientation } from 'common/types';
|
|
3
|
-
declare const useSlider: ({ id, label, displayValInHeader, mockProperties, isRandomizable, mockInitialNormalisedValue, onChange, }: {
|
|
3
|
+
declare const useSlider: ({ id, label, displayValInHeader, mockProperties, isRandomizable, orientation, dragOrientation, mockInitialNormalisedValue, onChange, }: {
|
|
4
4
|
id: string;
|
|
5
5
|
label?: string;
|
|
6
6
|
displayValInHeader?: boolean;
|
|
7
7
|
mockProperties?: JuceSliderProperties;
|
|
8
8
|
isRandomizable?: boolean;
|
|
9
|
+
orientation?: Orientation;
|
|
10
|
+
dragOrientation?: Orientation;
|
|
9
11
|
mockInitialNormalisedValue?: number;
|
|
10
12
|
onChange?: (newValue: any) => any;
|
|
11
13
|
}) => {
|
|
12
14
|
setNormalisedState: (newValue: number) => void;
|
|
13
15
|
setScaledState: (newValue: number) => void;
|
|
14
16
|
onMouseEnter: () => void;
|
|
15
|
-
bindBarSliderDrag: (
|
|
17
|
+
bindBarSliderDrag: () => import("@use-gesture/react/dist/declarations/src/types").ReactDOMAttributes;
|
|
16
18
|
bindDrag: (...args: any[]) => import("@use-gesture/react/dist/declarations/src/types").ReactDOMAttributes;
|
|
17
19
|
normalisedValue: number;
|
|
18
20
|
scaledValue: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSlider.d.ts","sourceRoot":"","sources":["../../src/hooks/useSlider.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAc,MAAM,sBAAsB,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,QAAA,MAAM,SAAS,GAAI,
|
|
1
|
+
{"version":3,"file":"useSlider.d.ts","sourceRoot":"","sources":["../../src/hooks/useSlider.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAc,MAAM,sBAAsB,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,QAAA,MAAM,SAAS,GAAI,wIAehB;IACD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,GAAG,CAAC;CACnC;mCAyGuC,MAAM;+BASV,MAAM;;;;;;;CA+JzC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1438,7 +1438,7 @@ var useSlider = function(param) {
|
|
|
1438
1438
|
end: 15000,
|
|
1439
1439
|
interval: 0.1,
|
|
1440
1440
|
skew: 0.7
|
|
1441
|
-
} : _param_mockProperties, _param_isRandomizable = param.isRandomizable, isRandomizable = _param_isRandomizable === void 0 ? false : _param_isRandomizable, _param_mockInitialNormalisedValue = param.mockInitialNormalisedValue, mockInitialNormalisedValue = _param_mockInitialNormalisedValue === void 0 ? 0.0 : _param_mockInitialNormalisedValue, onChange = param.onChange;
|
|
1441
|
+
} : _param_mockProperties, _param_isRandomizable = param.isRandomizable, isRandomizable = _param_isRandomizable === void 0 ? false : _param_isRandomizable, _param_orientation = param.orientation, orientation = _param_orientation === void 0 ? Orientation.vertical : _param_orientation, _param_dragOrientation = param.dragOrientation, dragOrientation = _param_dragOrientation === void 0 ? Orientation.vertical : _param_dragOrientation, _param_mockInitialNormalisedValue = param.mockInitialNormalisedValue, mockInitialNormalisedValue = _param_mockInitialNormalisedValue === void 0 ? 0.0 : _param_mockInitialNormalisedValue, onChange = param.onChange;
|
|
1442
1442
|
// const sliderState: JuceSlider = Juce.getSliderState(id);
|
|
1443
1443
|
// if isLocalhost is true, the front end app is running outside of JUCE in a browser.
|
|
1444
1444
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
@@ -1585,7 +1585,6 @@ var useSlider = function(param) {
|
|
|
1585
1585
|
preventDefault: true
|
|
1586
1586
|
});
|
|
1587
1587
|
var bindBarSliderDrag = function() {
|
|
1588
|
-
var orientation = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Orientation.vertical;
|
|
1589
1588
|
var drag = useDrag(function(param) {
|
|
1590
1589
|
var down = param.down, event = param.event, first = param.first, last = param.last;
|
|
1591
1590
|
var _event_target;
|
|
@@ -1625,6 +1624,8 @@ var useSlider = function(param) {
|
|
|
1625
1624
|
var newValue;
|
|
1626
1625
|
if (orientation === Orientation.vertical) {
|
|
1627
1626
|
newValue = 1 - y / rect.height;
|
|
1627
|
+
} else if (orientation === Orientation.horizontal && dragOrientation === Orientation.vertical) {
|
|
1628
|
+
newValue = 1 - y / rect.width;
|
|
1628
1629
|
} else {
|
|
1629
1630
|
newValue = x / rect.width;
|
|
1630
1631
|
}
|
|
@@ -3631,7 +3632,7 @@ function ModuleHeader(param) {
|
|
|
3631
3632
|
}, "Advanced")))));
|
|
3632
3633
|
}
|
|
3633
3634
|
|
|
3634
|
-
var css_248z$1 = ".ModMatrix {\n color: var(--color-text);\n font-size: var(--text-ms);\n}\n\n.ModMatrixCell {\n background: #252429;\n position: relative;\n
|
|
3635
|
+
var css_248z$1 = ".ModMatrix {\n color: var(--color-text);\n font-size: var(--text-ms);\n}\n\n.ModMatrixCell {\n background: #252429;\n position: relative;\n}\n\n.ModMatrixToggleCell {\n cursor: pointer;\n}\n\n.ModMatrixComboboxCell {\n background: #252429;\n cursor: pointer;\n}\n\n.ModMatrixComboboxItems {\n position: absolute;\n z-index: 50;\n bottom: -151px;\n left: 0px;\n height: 150px;\n width: 100%;\n background: var(--color-gray-500);\n color: var(--color-text);\n font-family: var(--font-leagueSpartan);\n overflow-y: auto;\n overflow-x: hidden;\n cursor: pointer;\n}\n\n.ModMatrixComboboxItem:hover,\n.ModMatrixComboboxItem:active,\n.ModMatrixComboboxItem[data-selected] {\n background: var(--color-gray-600);\n}\n\n.ModMatrixComboboxItem {\n padding: var(--spacing-md) var(--spacing-lg);\n width: 100%;\n}\n.ModMatrixComboboxButton {\n cursor: pointer;\n}\n";
|
|
3635
3636
|
styleInject(css_248z$1);
|
|
3636
3637
|
|
|
3637
3638
|
var targetColors = [
|
|
@@ -4056,7 +4057,9 @@ function ModMatrixCell(param) {
|
|
|
4056
4057
|
var _SingleBarViz_polarity;
|
|
4057
4058
|
var _useSlider = useSlider({
|
|
4058
4059
|
id: modifier,
|
|
4059
|
-
displayValInHeader: false
|
|
4060
|
+
displayValInHeader: false,
|
|
4061
|
+
orientation: Orientation.horizontal,
|
|
4062
|
+
dragOrientation: Orientation.vertical
|
|
4060
4063
|
}), bindBarSliderDrag = _useSlider.bindBarSliderDrag, normalisedValue = _useSlider.normalisedValue;
|
|
4061
4064
|
var scaledNormalisedValue = normalisedValue * 100;
|
|
4062
4065
|
return /*#__PURE__*/ React__default.createElement(Box, _object_spread$2({
|
|
@@ -4069,7 +4072,7 @@ function ModMatrixCell(param) {
|
|
|
4069
4072
|
pointerEvents: 'all'
|
|
4070
4073
|
}, style),
|
|
4071
4074
|
height: '2.5rem'
|
|
4072
|
-
}, bindBarSliderDrag(
|
|
4075
|
+
}, bindBarSliderDrag()), /*#__PURE__*/ React__default.createElement(Box, {
|
|
4073
4076
|
flex: "1",
|
|
4074
4077
|
style: {
|
|
4075
4078
|
pointerEvents: 'none'
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,MAAM,GAAG,GAAG,GAAG,EAAE;AAChC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ;;AAE7B,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO;;AAExD,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACtE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU;;AAEzB,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC;AAC/C,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC7B;AACA,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC3B;;AAEA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG;AAClC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AACnD;AACA
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,MAAM,GAAG,GAAG,GAAG,EAAE;AAChC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ;;AAE7B,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO;;AAExD,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACtE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU;;AAEzB,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC;AAC/C,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC7B;AACA,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC3B;;AAEA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG;AAClC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CA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AK,GACN,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,
|
|
1
|
+
{"version":3,"file":"ModMatrixCell.d.ts","sourceRoot":"","sources":["../../../../src/advanced/ModMatrix/ModMatrixCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,iBAAS,aAAa,CAAC,EACrB,QAAQ,EACR,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,qBAwCA;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { JuceSliderProperties } from '../core/Slider/types';
|
|
2
2
|
import { Orientation } from 'common/types';
|
|
3
|
-
declare const useSlider: ({ id, label, displayValInHeader, mockProperties, isRandomizable, mockInitialNormalisedValue, onChange, }: {
|
|
3
|
+
declare const useSlider: ({ id, label, displayValInHeader, mockProperties, isRandomizable, orientation, dragOrientation, mockInitialNormalisedValue, onChange, }: {
|
|
4
4
|
id: string;
|
|
5
5
|
label?: string;
|
|
6
6
|
displayValInHeader?: boolean;
|
|
7
7
|
mockProperties?: JuceSliderProperties;
|
|
8
8
|
isRandomizable?: boolean;
|
|
9
|
+
orientation?: Orientation;
|
|
10
|
+
dragOrientation?: Orientation;
|
|
9
11
|
mockInitialNormalisedValue?: number;
|
|
10
12
|
onChange?: (newValue: any) => any;
|
|
11
13
|
}) => {
|
|
12
14
|
setNormalisedState: (newValue: number) => void;
|
|
13
15
|
setScaledState: (newValue: number) => void;
|
|
14
16
|
onMouseEnter: () => void;
|
|
15
|
-
bindBarSliderDrag: (
|
|
17
|
+
bindBarSliderDrag: () => import("@use-gesture/react/dist/declarations/src/types").ReactDOMAttributes;
|
|
16
18
|
bindDrag: (...args: any[]) => import("@use-gesture/react/dist/declarations/src/types").ReactDOMAttributes;
|
|
17
19
|
normalisedValue: number;
|
|
18
20
|
scaledValue: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSlider.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSlider.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAc,MAAM,sBAAsB,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,QAAA,MAAM,SAAS,GAAI,
|
|
1
|
+
{"version":3,"file":"useSlider.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSlider.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAc,MAAM,sBAAsB,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,QAAA,MAAM,SAAS,GAAI,wIAehB;IACD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,GAAG,CAAC;CACnC;mCAyGuC,MAAM;+BASV,MAAM;;;;;;;CA+JzC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|