1 line
43 KiB
JSON
1 line
43 KiB
JSON
{"ast":null,"code":"import React, { Component } from 'react';\nimport { classNames } from 'primereact/utils';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar Knob = /*#__PURE__*/function (_Component) {\n _inherits(Knob, _Component);\n\n var _super = _createSuper(Knob);\n\n function Knob(props) {\n var _this;\n\n _classCallCheck(this, Knob);\n\n _this = _super.call(this, props);\n _this.state = {};\n _this.radius = 40;\n _this.midX = 50;\n _this.midY = 50;\n _this.minRadians = 4 * Math.PI / 3;\n _this.maxRadians = -Math.PI / 3;\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onMouseDown = _this.onMouseDown.bind(_assertThisInitialized(_this));\n _this.onMouseUp = _this.onMouseUp.bind(_assertThisInitialized(_this));\n _this.onTouchStart = _this.onTouchStart.bind(_assertThisInitialized(_this));\n _this.onTouchEnd = _this.onTouchEnd.bind(_assertThisInitialized(_this));\n _this.onMouseMove = _this.onMouseMove.bind(_assertThisInitialized(_this));\n _this.onTouchMove = _this.onTouchMove.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Knob, [{\n key: \"updateValue\",\n value: function updateValue(offsetX, offsetY) {\n var dx = offsetX - this.props.size / 2;\n var dy = this.props.size / 2 - offsetY;\n var angle = Math.atan2(dy, dx);\n var start = -Math.PI / 2 - Math.PI / 6;\n this.updateModel(angle, start);\n }\n }, {\n key: \"updateModel\",\n value: function updateModel(angle, start) {\n var mappedValue;\n if (angle > this.maxRadians) mappedValue = this.mapRange(angle, this.minRadians, this.maxRadians, this.props.min, this.props.max);else if (angle < start) mappedValue = this.mapRange(angle + 2 * Math.PI, this.minRadians, this.maxRadians, this.props.min, this.props.max);else return;\n\n if (this.props.onChange) {\n var newValue = Math.round((mappedValue - this.props.min) / this.props.step) * this.props.step + this.props.min;\n this.props.onChange({\n value: newValue\n });\n }\n }\n }, {\n key: \"mapRange\",\n value: function mapRange(x, inMin, inMax, outMin, outMax) {\n return (x - inMin) * (outMax - outMin) / (inMax - inMin) + outMin;\n }\n }, {\n key: \"onClick\",\n value: function onClick(event) {\n if (!this.props.disabled && !this.props.readOnly) {\n this.updateValue(event.nativeEvent.offsetX, event.nativeEvent.offsetY);\n }\n }\n }, {\n key: \"onMouseDown\",\n value: function onMouseDown(event) {\n if (!this.props.disabled && !this.props.readOnly) {\n this.windowMouseMoveListener = this.onMouseMove;\n this.windowMouseUpListener = this.onMouseUp;\n window.addEventListener('mousemove', this.windowMouseMoveListener);\n window.addEventListener('mouseup', this.windowMouseUpListener);\n event.preventDefault();\n }\n }\n }, {\n key: \"onMouseUp\",\n value: function onMouseUp(event) {\n if (!this.props.disabled && !this.props.readOnly) {\n window.removeEventListener('mousemove', this.windowMouseMoveListener);\n window.removeEventListener('mouseup', this.windowMouseUpListener);\n this.windowMouseMoveListener = null;\n this.windowMouseUpListener = null;\n event.preventDefault();\n }\n }\n }, {\n key: \"onTouchStart\",\n value: function onTouchStart(event) {\n if (!this.props.disabled && !this.props.readOnly) {\n this.windowTouchMoveListener = this.onTouchMove;\n this.windowTouchEndListener = this.onTouchEnd;\n window.addEventListener('touchmove', this.windowTouchMoveListener, {\n passive: false,\n cancelable: false\n });\n window.addEventListener('touchend', this.windowTouchEndListener);\n }\n }\n }, {\n key: \"onTouchEnd\",\n value: function onTouchEnd(event) {\n if (!this.props.disabled && !this.props.readOnly) {\n window.removeEventListener('touchmove', this.windowTouchMoveListener);\n window.removeEventListener('touchend', this.windowTouchEndListener);\n this.windowTouchMoveListener = null;\n this.windowTouchEndListener = null;\n }\n }\n }, {\n key: \"onMouseMove\",\n value: function onMouseMove(event) {\n if (!this.props.disabled && !this.props.readOnly) {\n this.updateValue(event.offsetX, event.offsetY);\n event.preventDefault();\n }\n }\n }, {\n key: \"onTouchMove\",\n value: function onTouchMove(event) {\n if (!this.props.disabled && !this.props.readOnly && event.touches.length === 1) {\n var rect = this.element.getBoundingClientRect();\n var touch = event.targetTouches.item(0);\n var offsetX = touch.clientX - rect.left;\n var offsetY = touch.clientY - rect.top;\n this.updateValue(offsetX, offsetY);\n event.preventDefault();\n }\n }\n }, {\n key: \"rangePath\",\n value: function rangePath() {\n return \"M \".concat(this.minX(), \" \").concat(this.minY(), \" A \").concat(this.radius, \" \").concat(this.radius, \" 0 1 1 \").concat(this.maxX(), \" \").concat(this.maxY());\n }\n }, {\n key: \"valuePath\",\n value: function valuePath() {\n return \"M \".concat(this.zeroX(), \" \").concat(this.zeroY(), \" A \").concat(this.radius, \" \").concat(this.radius, \" 0 \").concat(this.largeArc(), \" \").concat(this.sweep(), \" \").concat(this.valueX(), \" \").concat(this.valueY());\n }\n }, {\n key: \"zeroRadians\",\n value: function zeroRadians() {\n if (this.props.min > 0 && this.props.max > 0) return this.mapRange(this.props.min, this.props.min, this.props.max, this.minRadians, this.maxRadians);else return this.mapRange(0, this.props.min, this.props.max, this.minRadians, this.maxRadians);\n }\n }, {\n key: \"valueRadians\",\n value: function valueRadians() {\n return this.mapRange(this.props.value, this.props.min, this.props.max, this.minRadians, this.maxRadians);\n }\n }, {\n key: \"minX\",\n value: function minX() {\n return this.midX + Math.cos(this.minRadians) * this.radius;\n }\n }, {\n key: \"minY\",\n value: function minY() {\n return this.midY - Math.sin(this.minRadians) * this.radius;\n }\n }, {\n key: \"maxX\",\n value: function maxX() {\n return this.midX + Math.cos(this.maxRadians) * this.radius;\n }\n }, {\n key: \"maxY\",\n value: function maxY() {\n return this.midY - Math.sin(this.maxRadians) * this.radius;\n }\n }, {\n key: \"zeroX\",\n value: function zeroX() {\n return this.midX + Math.cos(this.zeroRadians()) * this.radius;\n }\n }, {\n key: \"zeroY\",\n value: function zeroY() {\n return this.midY - Math.sin(this.zeroRadians()) * this.radius;\n }\n }, {\n key: \"valueX\",\n value: function valueX() {\n return this.midX + Math.cos(this.valueRadians()) * this.radius;\n }\n }, {\n key: \"valueY\",\n value: function valueY() {\n return this.midY - Math.sin(this.valueRadians()) * this.radius;\n }\n }, {\n key: \"largeArc\",\n value: function largeArc() {\n return Math.abs(this.zeroRadians() - this.valueRadians()) < Math.PI ? 0 : 1;\n }\n }, {\n key: \"sweep\",\n value: function sweep() {\n return this.valueRadians() > this.zeroRadians() ? 0 : 1;\n }\n }, {\n key: \"valueToDisplay\",\n value: function valueToDisplay() {\n return this.props.valueTemplate.replace(\"{value}\", this.props.value.toString());\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var containerClassName = classNames('p-knob p-component', {\n 'p-disabled': this.props.disabled\n }, this.props.className);\n var text = this.props.showValue && /*#__PURE__*/React.createElement(\"text\", {\n x: 50,\n y: 57,\n textAnchor: 'middle',\n fill: this.props.textColor,\n className: 'p-knob-text',\n name: this.props.name\n }, this.valueToDisplay());\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.props.id,\n className: containerClassName,\n style: this.props.style,\n ref: function ref(el) {\n return _this2.element = el;\n }\n }, /*#__PURE__*/React.createElement(\"svg\", {\n viewBox: \"0 0 100 100\",\n width: this.props.size,\n height: this.props.size,\n onClick: this.onClick,\n onMouseDown: this.onMouseDown,\n onMouseUp: this.onMouseUp,\n onTouchStart: this.onTouchStart,\n onTouchEnd: this.onTouchEnd\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: this.rangePath(),\n strokeWidth: this.props.strokeWidth,\n stroke: this.props.rangeColor,\n className: 'p-knob-range'\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: this.valuePath(),\n strokeWidth: this.props.strokeWidth,\n stroke: this.props.valueColor,\n className: 'p-knob-value'\n }), text));\n }\n }]);\n\n return Knob;\n}(Component);\n\n_defineProperty(Knob, \"defaultProps\", {\n id: null,\n style: null,\n className: null,\n value: null,\n size: 100,\n disabled: false,\n readOnly: false,\n showValue: true,\n step: 1,\n min: 0,\n max: 100,\n strokeWidth: 14,\n name: null,\n valueColor: 'var(--primary-color, Black)',\n rangeColor: 'var(--surface-d, LightGray)',\n textColor: 'var(--text-color-secondary, Black)',\n valueTemplate: '{value}',\n onChange: null\n});\n\nexport { Knob };","map":{"version":3,"names":["React","Component","classNames","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","constructor","value","_typeof","obj","Symbol","iterator","_possibleConstructorReturn","call","_getPrototypeOf","getPrototypeOf","_defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","Reflect","construct","arguments","apply","sham","Proxy","Boolean","valueOf","e","Knob","_Component","_super","_this","state","radius","midX","midY","minRadians","Math","PI","maxRadians","onClick","bind","onMouseDown","onMouseUp","onTouchStart","onTouchEnd","onMouseMove","onTouchMove","updateValue","offsetX","offsetY","dx","size","dy","angle","atan2","start","updateModel","mappedValue","mapRange","min","max","onChange","newValue","round","step","x","inMin","inMax","outMin","outMax","event","disabled","readOnly","nativeEvent","windowMouseMoveListener","windowMouseUpListener","window","addEventListener","preventDefault","removeEventListener","windowTouchMoveListener","windowTouchEndListener","passive","cancelable","touches","rect","element","getBoundingClientRect","touch","targetTouches","item","clientX","left","clientY","top","rangePath","concat","minX","minY","maxX","maxY","valuePath","zeroX","zeroY","largeArc","sweep","valueX","valueY","zeroRadians","valueRadians","cos","sin","abs","valueToDisplay","valueTemplate","replace","toString","render","_this2","containerClassName","className","text","showValue","createElement","y","textAnchor","fill","textColor","name","id","style","ref","el","viewBox","width","height","d","strokeWidth","stroke","rangeColor","valueColor"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/knob/knob.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { classNames } from 'primereact/utils';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar Knob = /*#__PURE__*/function (_Component) {\n _inherits(Knob, _Component);\n\n var _super = _createSuper(Knob);\n\n function Knob(props) {\n var _this;\n\n _classCallCheck(this, Knob);\n\n _this = _super.call(this, props);\n _this.state = {};\n _this.radius = 40;\n _this.midX = 50;\n _this.midY = 50;\n _this.minRadians = 4 * Math.PI / 3;\n _this.maxRadians = -Math.PI / 3;\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onMouseDown = _this.onMouseDown.bind(_assertThisInitialized(_this));\n _this.onMouseUp = _this.onMouseUp.bind(_assertThisInitialized(_this));\n _this.onTouchStart = _this.onTouchStart.bind(_assertThisInitialized(_this));\n _this.onTouchEnd = _this.onTouchEnd.bind(_assertThisInitialized(_this));\n _this.onMouseMove = _this.onMouseMove.bind(_assertThisInitialized(_this));\n _this.onTouchMove = _this.onTouchMove.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Knob, [{\n key: \"updateValue\",\n value: function updateValue(offsetX, offsetY) {\n var dx = offsetX - this.props.size / 2;\n var dy = this.props.size / 2 - offsetY;\n var angle = Math.atan2(dy, dx);\n var start = -Math.PI / 2 - Math.PI / 6;\n this.updateModel(angle, start);\n }\n }, {\n key: \"updateModel\",\n value: function updateModel(angle, start) {\n var mappedValue;\n if (angle > this.maxRadians) mappedValue = this.mapRange(angle, this.minRadians, this.maxRadians, this.props.min, this.props.max);else if (angle < start) mappedValue = this.mapRange(angle + 2 * Math.PI, this.minRadians, this.maxRadians, this.props.min, this.props.max);else return;\n\n if (this.props.onChange) {\n var newValue = Math.round((mappedValue - this.props.min) / this.props.step) * this.props.step + this.props.min;\n this.props.onChange({\n value: newValue\n });\n }\n }\n }, {\n key: \"mapRange\",\n value: function mapRange(x, inMin, inMax, outMin, outMax) {\n return (x - inMin) * (outMax - outMin) / (inMax - inMin) + outMin;\n }\n }, {\n key: \"onClick\",\n value: function onClick(event) {\n if (!this.props.disabled && !this.props.readOnly) {\n this.updateValue(event.nativeEvent.offsetX, event.nativeEvent.offsetY);\n }\n }\n }, {\n key: \"onMouseDown\",\n value: function onMouseDown(event) {\n if (!this.props.disabled && !this.props.readOnly) {\n this.windowMouseMoveListener = this.onMouseMove;\n this.windowMouseUpListener = this.onMouseUp;\n window.addEventListener('mousemove', this.windowMouseMoveListener);\n window.addEventListener('mouseup', this.windowMouseUpListener);\n event.preventDefault();\n }\n }\n }, {\n key: \"onMouseUp\",\n value: function onMouseUp(event) {\n if (!this.props.disabled && !this.props.readOnly) {\n window.removeEventListener('mousemove', this.windowMouseMoveListener);\n window.removeEventListener('mouseup', this.windowMouseUpListener);\n this.windowMouseMoveListener = null;\n this.windowMouseUpListener = null;\n event.preventDefault();\n }\n }\n }, {\n key: \"onTouchStart\",\n value: function onTouchStart(event) {\n if (!this.props.disabled && !this.props.readOnly) {\n this.windowTouchMoveListener = this.onTouchMove;\n this.windowTouchEndListener = this.onTouchEnd;\n window.addEventListener('touchmove', this.windowTouchMoveListener, {\n passive: false,\n cancelable: false\n });\n window.addEventListener('touchend', this.windowTouchEndListener);\n }\n }\n }, {\n key: \"onTouchEnd\",\n value: function onTouchEnd(event) {\n if (!this.props.disabled && !this.props.readOnly) {\n window.removeEventListener('touchmove', this.windowTouchMoveListener);\n window.removeEventListener('touchend', this.windowTouchEndListener);\n this.windowTouchMoveListener = null;\n this.windowTouchEndListener = null;\n }\n }\n }, {\n key: \"onMouseMove\",\n value: function onMouseMove(event) {\n if (!this.props.disabled && !this.props.readOnly) {\n this.updateValue(event.offsetX, event.offsetY);\n event.preventDefault();\n }\n }\n }, {\n key: \"onTouchMove\",\n value: function onTouchMove(event) {\n if (!this.props.disabled && !this.props.readOnly && event.touches.length === 1) {\n var rect = this.element.getBoundingClientRect();\n var touch = event.targetTouches.item(0);\n var offsetX = touch.clientX - rect.left;\n var offsetY = touch.clientY - rect.top;\n this.updateValue(offsetX, offsetY);\n event.preventDefault();\n }\n }\n }, {\n key: \"rangePath\",\n value: function rangePath() {\n return \"M \".concat(this.minX(), \" \").concat(this.minY(), \" A \").concat(this.radius, \" \").concat(this.radius, \" 0 1 1 \").concat(this.maxX(), \" \").concat(this.maxY());\n }\n }, {\n key: \"valuePath\",\n value: function valuePath() {\n return \"M \".concat(this.zeroX(), \" \").concat(this.zeroY(), \" A \").concat(this.radius, \" \").concat(this.radius, \" 0 \").concat(this.largeArc(), \" \").concat(this.sweep(), \" \").concat(this.valueX(), \" \").concat(this.valueY());\n }\n }, {\n key: \"zeroRadians\",\n value: function zeroRadians() {\n if (this.props.min > 0 && this.props.max > 0) return this.mapRange(this.props.min, this.props.min, this.props.max, this.minRadians, this.maxRadians);else return this.mapRange(0, this.props.min, this.props.max, this.minRadians, this.maxRadians);\n }\n }, {\n key: \"valueRadians\",\n value: function valueRadians() {\n return this.mapRange(this.props.value, this.props.min, this.props.max, this.minRadians, this.maxRadians);\n }\n }, {\n key: \"minX\",\n value: function minX() {\n return this.midX + Math.cos(this.minRadians) * this.radius;\n }\n }, {\n key: \"minY\",\n value: function minY() {\n return this.midY - Math.sin(this.minRadians) * this.radius;\n }\n }, {\n key: \"maxX\",\n value: function maxX() {\n return this.midX + Math.cos(this.maxRadians) * this.radius;\n }\n }, {\n key: \"maxY\",\n value: function maxY() {\n return this.midY - Math.sin(this.maxRadians) * this.radius;\n }\n }, {\n key: \"zeroX\",\n value: function zeroX() {\n return this.midX + Math.cos(this.zeroRadians()) * this.radius;\n }\n }, {\n key: \"zeroY\",\n value: function zeroY() {\n return this.midY - Math.sin(this.zeroRadians()) * this.radius;\n }\n }, {\n key: \"valueX\",\n value: function valueX() {\n return this.midX + Math.cos(this.valueRadians()) * this.radius;\n }\n }, {\n key: \"valueY\",\n value: function valueY() {\n return this.midY - Math.sin(this.valueRadians()) * this.radius;\n }\n }, {\n key: \"largeArc\",\n value: function largeArc() {\n return Math.abs(this.zeroRadians() - this.valueRadians()) < Math.PI ? 0 : 1;\n }\n }, {\n key: \"sweep\",\n value: function sweep() {\n return this.valueRadians() > this.zeroRadians() ? 0 : 1;\n }\n }, {\n key: \"valueToDisplay\",\n value: function valueToDisplay() {\n return this.props.valueTemplate.replace(\"{value}\", this.props.value.toString());\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var containerClassName = classNames('p-knob p-component', {\n 'p-disabled': this.props.disabled\n }, this.props.className);\n var text = this.props.showValue && /*#__PURE__*/React.createElement(\"text\", {\n x: 50,\n y: 57,\n textAnchor: 'middle',\n fill: this.props.textColor,\n className: 'p-knob-text',\n name: this.props.name\n }, this.valueToDisplay());\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.props.id,\n className: containerClassName,\n style: this.props.style,\n ref: function ref(el) {\n return _this2.element = el;\n }\n }, /*#__PURE__*/React.createElement(\"svg\", {\n viewBox: \"0 0 100 100\",\n width: this.props.size,\n height: this.props.size,\n onClick: this.onClick,\n onMouseDown: this.onMouseDown,\n onMouseUp: this.onMouseUp,\n onTouchStart: this.onTouchStart,\n onTouchEnd: this.onTouchEnd\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: this.rangePath(),\n strokeWidth: this.props.strokeWidth,\n stroke: this.props.rangeColor,\n className: 'p-knob-range'\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: this.valuePath(),\n strokeWidth: this.props.strokeWidth,\n stroke: this.props.valueColor,\n className: 'p-knob-value'\n }), text));\n }\n }]);\n\n return Knob;\n}(Component);\n\n_defineProperty(Knob, \"defaultProps\", {\n id: null,\n style: null,\n className: null,\n value: null,\n size: 100,\n disabled: false,\n readOnly: false,\n showValue: true,\n step: 1,\n min: 0,\n max: 100,\n strokeWidth: 14,\n name: null,\n valueColor: 'var(--primary-color, Black)',\n rangeColor: 'var(--surface-d, LightGray)',\n textColor: 'var(--text-color-secondary, Black)',\n valueTemplate: '{value}',\n onChange: null\n});\n\nexport { Knob };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,UAAT,QAA2B,kBAA3B;;AAEA,SAASC,eAAT,C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