moodle_local_treestudyplan/amd/build/vue-color-picker-wheel.min.js.map

1 line
46 KiB
Plaintext
Raw Normal View History

{"version":3,"file":"vue-color-picker-wheel.min.js","sources":["../src/vue-color-picker-wheel.js"],"sourcesContent":[" /* eslint-disable */\n/********************************************************************************\nMIT License\n\nCopyright (c) 2018 Stijlbreuk\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n********************************************************************************/\nfunction isIE () {\n var userAgent = window.navigator.userAgent;\n return /MSIE|Trident/.test(userAgent);\n}\n\n//\n\nvar DEFAULT_WIDTH_HEIGHT = 300;\nvar DEFAULT_START_COLOR = '#000000';\n\nvar script = {\n name: 'color-picker',\n props: {\n width: {\n required: false,\n type: Number,\n default: DEFAULT_WIDTH_HEIGHT\n },\n height: {\n required: false,\n type: Number,\n default: DEFAULT_WIDTH_HEIGHT\n },\n disabled: {\n required: false,\n type: Boolean,\n default: false\n },\n startColor: {\n required: false,\n type: String,\n },\n value: {\n required: false,\n type: String\n }\n },\n mounted: function mounted() {\n /**\n * @deprecated since: 0.4.0, remove in: 1.0.0, https://github.com/stijlbreuk/vue-color-picker-wheel/issues/6\n */\n if (this.hasCamelCaseColorChangeListener) {\n console.warn(\"Using the colorChange event is deprecated since version 0.4.0. It will be deleted in version 1.0.0. 'v-model' or the kebab-case variant 'color-change' should be used.\");\n }\n this.initWidget();\n this.setColor(this.value || this.startColor || DEFAULT_START_COLOR);\n },\n data: function data() {\n return {\n debug: false,\n dragging: false,\n circleDrag: false,\n color: '',\n rgb: '',\n hsl: '',\n radius: '',\n square: '',\n mid: '',\n markerSize: '',\n ctxMask: '',\n ctxOverlay: '',\n cnvMask: '',\n cnvOverlay: '',\n offset: {\n left: '',\n top: ''\n }\n };\n },\n watch: {\n value: function value(newVal, oldVal) {\n if (newVal !== oldVal) {\n this.setColor(newVal);\n }\n }\n },\n computed: {\n /**\n * @deprecated since: 0.4.0, remove in: 1.0.0, https://github.com/stijlbreuk/vue-color-picker-wheel/issues/6\n */\n hasCamelCaseColorChangeListener: function hasCamelCaseColorChangeListener() {\n return this.$listeners && this.$listeners.colorChange;\n },\n solidStyle: function solidStyle() {\n return {\n 'background-color': this.pack(this.HSLToRGB([this.hsl[0], 1, 0.5])),\n width: ((this.square * 2 - 1) + \"px\"),\n height: ((this.square * 2 - 1) + \"px\"),\n left: (