-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
toastui-vue-image-editor.js.map
1 lines (1 loc) 路 15.8 KB
/
toastui-vue-image-editor.js.map
1
{"version":3,"sources":["webpack://toastui/webpack/universalModuleDefinition","webpack://toastui/webpack/bootstrap","webpack://toastui/external {\"commonjs\":\"tui-image-editor\",\"commonjs2\":\"tui-image-editor\",\"amd\":\"tui-image-editor\",\"root\":[\"tui\",\"ImageEditor\"]}","webpack://toastui/./src/ImageEditor.vue?9d98","webpack://toastui/src/ImageEditor.vue","webpack://toastui/./src/ImageEditor.vue","webpack://toastui/./node_modules/vue-loader/lib/runtime/componentNormalizer.js"],"names":["root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__0__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","render","_h","this","$createElement","_self","_c","ref","staticStyle","width","height","_withStripped","includeUI","initMenu","cssMaxWidth","cssMaxHeight","component","scriptExports","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","props","includeUi","type","Boolean","default","editorDefaultOptions","mounted","assign","includeUIOptions","editorInstance","addEventListener","destroyed","keys","$listeners","forEach","destroy","methods","getRootElement","$refs","tuiImageEditor","invoke","methodName","result","func","getMethod","obj","isInstance","instance","first","rest","length","parseDotMethodName","firstDotIdx","firstMethodName","substring","restMethodName","__file"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,qBACR,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,oBAAqBJ,GACH,iB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S,EACTzE,KAAKmE,UAAUC,EAAKI,GAGtBJ,GAETM,mBAzCJ,SAyCA,GACM,IAAN,iBACA,IACA,KAOM,OALIC,GAAe,IACjBC,EAAkBZ,EAAWa,UAAU,EAAGF,GAC1CG,EAAiBd,EAAWa,UAAUF,EAAc,EAAGX,EAAWS,SAG7D,CACLF,MAAOK,EACPJ,KAAMM,MCxFZhF,EFAoB,IEEpB,EACA,KACA,KACA,MAuBFe,EAAUS,QAAQyD,OAAS,sBACZ,MAAAlE,E","file":"toastui-vue-image-editor.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"tui-image-editor\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"tui-image-editor\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"toastui\"] = factory(require(\"tui-image-editor\"));\n\telse\n\t\troot[\"toastui\"] = factory(root[\"tui\"][\"ImageEditor\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__0__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", {\n ref: \"tuiImageEditor\",\n staticStyle: { width: \"100%\", height: \"100%\" }\n })\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","<template>\n <div ref=\"tuiImageEditor\" style=\"width: 100%; height: 100%\"></div>\n</template>\n<script>\nimport ImageEditor from 'tui-image-editor';\n\nconst includeUIOptions = {\n includeUI: {\n initMenu: 'filter',\n },\n};\nconst editorDefaultOptions = {\n cssMaxWidth: 700,\n cssMaxHeight: 500,\n};\nexport default {\n name: 'TuiImageEditor',\n props: {\n includeUi: {\n type: Boolean,\n default: true,\n },\n options: {\n type: Object,\n default() {\n return editorDefaultOptions;\n },\n },\n },\n mounted() {\n let options = editorDefaultOptions;\n if (this.includeUi) {\n options = Object.assign(includeUIOptions, this.options);\n }\n this.editorInstance = new ImageEditor(this.$refs.tuiImageEditor, options);\n this.addEventListener();\n },\n destroyed() {\n Object.keys(this.$listeners).forEach((eventName) => {\n this.editorInstance.off(eventName);\n });\n this.editorInstance.destroy();\n this.editorInstance = null;\n },\n methods: {\n addEventListener() {\n Object.keys(this.$listeners).forEach((eventName) => {\n this.editorInstance.on(eventName, (...args) => this.$emit(eventName, ...args));\n });\n },\n getRootElement() {\n return this.$refs.tuiImageEditor;\n },\n invoke(methodName, ...args) {\n let result = null;\n if (this.editorInstance[methodName]) {\n result = this.editorInstance[methodName](...args);\n } else if (methodName.indexOf('.') > -1) {\n const func = this.getMethod(this.editorInstance, methodName);\n\n if (typeof func === 'function') {\n result = func(...args);\n }\n }\n\n return result;\n },\n getMethod(instance, methodName) {\n const { first, rest } = this.parseDotMethodName(methodName);\n const isInstance = instance.constructor.name !== 'Object';\n const type = typeof instance[first];\n let obj;\n\n if (isInstance && type === 'function') {\n obj = instance[first].bind(instance);\n } else {\n obj = instance[first];\n }\n\n if (rest.length > 0) {\n return this.getMethod(obj, rest);\n }\n\n return obj;\n },\n parseDotMethodName(methodName) {\n const firstDotIdx = methodName.indexOf('.');\n let firstMethodName = methodName;\n let restMethodName = '';\n\n if (firstDotIdx > -1) {\n firstMethodName = methodName.substring(0, firstDotIdx);\n restMethodName = methodName.substring(firstDotIdx + 1, methodName.length);\n }\n\n return {\n first: firstMethodName,\n rest: restMethodName,\n };\n },\n },\n};\n</script>\n","import { render, staticRenderFns } from \"./ImageEditor.vue?vue&type=template&id=7ed2a33f&\"\nimport script from \"./ImageEditor.vue?vue&type=script&lang=js&\"\nexport * from \"./ImageEditor.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/Users/nhn/workspace/tui.image-editor/apps/vue-image-editor/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('7ed2a33f')) {\n api.createRecord('7ed2a33f', component.options)\n } else {\n api.reload('7ed2a33f', component.options)\n }\n module.hot.accept(\"./ImageEditor.vue?vue&type=template&id=7ed2a33f&\", function () {\n api.rerender('7ed2a33f', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/ImageEditor.vue\"\nexport default component.exports","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n"],"sourceRoot":""}