{"_id":"@antscorp/image-editor","_rev":"6-f50f4b23c679da0f8c0970fd25006363","name":"@antscorp/image-editor","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@antscorp/image-editor","version":"1.0.0","keywords":[],"author":{"name":"thanghn"},"license":"MIT","_id":"@antscorp/image-editor@1.0.0","maintainers":[{"name":"phongdang707","email":"phongdang707@gmail.com"},{"name":"ngocthangh","email":"ngocthanguit@gmail.com"},{"name":"datle0497","email":"datle0497@gmail.com"},{"name":"vinlt.antsomi","email":"vinlt@antsomi.com"},{"name":"dotuan9x","email":"dotuan9x@gmail.com"},{"name":"khanhhv","email":"khanhhv@antsomi.com"},{"name":"sangndd-antsomi","email":"sangndd@antsomi.com"}],"dist":{"shasum":"45a5e2d2ed04ccd1b621db002574f91a5ea0ae37","tarball":"https://registry.npmjs.org/@antscorp/image-editor/-/image-editor-1.0.0.tgz","fileCount":579,"integrity":"sha512-/mZzeUuBaXXxwHYCF6cHq93zaACIdJ5t8zZ9e6EoYVYctC/vG85JK1OzEmsw2Be39zp07h2FUiArGPDa3PBv6A==","signatures":[{"sig":"MEYCIQDCypKk4szGIb9JKx4wK70zxwGt0Z0SIkQxq/kExWzJEgIhAOVA+K8dMbiNKk/9GjE+WPaTLCm05W8rv8srEuVHeqaQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15664475},"main":"dist/tui-image-editor.js","scripts":{"build":"lerna run build","build:vue":"lerna run --scope @toast-ui/vue-image-editor build","build:react":"lerna run --scope @toast-ui/react-image-editor build","build:image-editor":"lerna run --scope tui-image-editor build"},"_npmUser":{"name":"ngocthangh","email":"ngocthanguit@gmail.com"},"repository":{"url":"@antscorp/image-editor","type":"git"},"workspaces":["apps/*"],"description":"ImageEditor re-built from tui-image-editor 3.0.2","directories":{},"licenseText":"\nThe MIT License\n\nCopyright (c) 2019 NHN Cloud Corp.\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\nall copies 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\nTHE SOFTWARE.\n","dependencies":{"@babel/runtime-corejs3":"^7.15.4"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.0.6","lerna":"^4.0.0","eslint":"^7.32.0","mkdirp":"^1.0.4","webpack":"^5.52.0","prettier":"^2.0.5","svgstore":"*","css-loader":"^6.2.0","file-saver":"^2.0.5","node-fetch":"^3.0.0","typescript":"^3.2.2","vue-loader":"^15.9.8","@babel/core":"^7.15.0","webpack-cli":"^4.8.0","babel-loader":"^8.2.2","stylus-loader":"^6.1.0","webpack-merge":"^5.8.0","@storybook/cli":"^5.1.11","@storybook/react":"^6.3.12","jest-canvas-mock":"^2.3.1","@babel/preset-env":"^7.15.0","eslint-config-tui":"^4.2.0","eslint-plugin-vue":"^7.17.0","vue-eslint-parser":"^7.10.0","eslint-plugin-jest":"^24.4.0","webpack-dev-server":"^4.2.0","@babel/preset-react":"^7.14.5","eslint-plugin-react":"^7.25.1","@babel/eslint-parser":"^7.15.0","jest-esm-transformer":"^1.0.0","eslint-webpack-plugin":"^3.0.1","terser-webpack-plugin":"^5.2.3","vue-template-compiler":"^2.6.14","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","mini-css-extract-plugin":"^2.2.2","@storybook/builder-webpack5":"^6.3.10","@storybook/manager-webpack5":"^6.3.10","css-minimizer-webpack-plugin":"^3.0.2","@babel/plugin-transform-runtime":"^7.15.0"},"_npmOperationalInternal":{"tmp":"tmp/image-editor_1.0.0_1688361049110_0.9542985720388848","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@antscorp/image-editor","version":"1.0.1","keywords":["nhn","nhn cloud","tui","component","image","editor","canvas","fabric"],"author":{"name":"NHN Cloud. FE Development Lab","email":"dl_javascript@nhn.com"},"license":"MIT","_id":"@antscorp/image-editor@1.0.1","maintainers":[{"name":"phongdang707","email":"phongdang707@gmail.com"},{"name":"ngocthangh","email":"ngocthanguit@gmail.com"},{"name":"datle0497","email":"datle0497@gmail.com"},{"name":"vinlt.antsomi","email":"vinlt@antsomi.com"},{"name":"dotuan9x","email":"dotuan9x@gmail.com"},{"name":"khanhhv","email":"khanhhv@antsomi.com"},{"name":"sangndd-antsomi","email":"sangndd@antsomi.com"}],"homepage":"https://github.com/nhn/tui.image-editor","bugs":{"url":"https://github.com/nhn/tui.image-editor/issues"},"dist":{"shasum":"8d2104de9207e806ae96b7a07861eb8e83d207fc","tarball":"https://registry.npmjs.org/@antscorp/image-editor/-/image-editor-1.0.1.tgz","fileCount":398,"integrity":"sha512-Fn1nIK6KggqfqZOjHxrMWxsi3BCB/jxTN+LFJf3nY/j4wxvVYSBc882Y+oV9NEidLTXAhiR1ZqfJXb/eR54q7A==","signatures":[{"sig":"MEYCIQC84idoIpGYLQUip2xly/J45a6cSLp4qp9aKIIG+jfv3AIhAOKRiF8kTubpiMi3ePdURcSx43o+8EybQ79PDDlsPU3D","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3358673},"main":"dist/tui-image-editor.js","scripts":{"doc":"tuidoc","test":"jest --forceExit --detectOpenHandles","build":"npm run build:clean && npm run build:svg && npm run build:prod && npm run build:minify && node tsBannerGenerator.js","serve":"webpack serve","doc:dev":"tuidoc --serv","build:svg":"node makesvg.js","build:prod":"webpack","test:types":"tsc --project tests/types","build:clean":"rm -rf ./dist","publish:cdn":"node scripts/publishToCDN.js","build:minify":"webpack --env minify","update:wrapper":"node scripts/updateWrapper.js"},"_npmUser":{"name":"ngocthangh","email":"ngocthanguit@gmail.com"},"repository":{"url":"https://github.com/nhn/tui.image-editor.git","type":"git"},"description":"TOAST UI ImageEditor 3.15.3","directories":{},"browserslist":["last 2 versions","not ie <= 9"],"dependencies":{"fabric":"^4.2.0","tui-code-snippet":"^2.3.3","tui-color-picker":"^2.2.6"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/image-editor_1.0.1_1688367322413_0.40553642403346135","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@antscorp/image-editor","version":"1.0.2","keywords":[],"author":{"name":"NHN Cloud. FE Development Lab","email":"dl_javascript@nhn.com"},"license":"MIT","_id":"@antscorp/image-editor@1.0.2","maintainers":[{"name":"phongdang707","email":"phongdang707@gmail.com"},{"name":"ngocthangh","email":"ngocthanguit@gmail.com"},{"name":"datle0497","email":"datle0497@gmail.com"},{"name":"vinlt.antsomi","email":"vinlt@antsomi.com"},{"name":"dotuan9x","email":"dotuan9x@gmail.com"},{"name":"khanhhv","email":"khanhhv@antsomi.com"},{"name":"sangndd-antsomi","email":"sangndd@antsomi.com"}],"homepage":"https://github.com/nhn/tui.image-editor","bugs":{"url":"https://github.com/nhn/tui.image-editor/issues"},"dist":{"shasum":"9d537c2a243d717c8b33e7aed8834d1c0235963a","tarball":"https://registry.npmjs.org/@antscorp/image-editor/-/image-editor-1.0.2.tgz","fileCount":398,"integrity":"sha512-ewR4utqydmWue4dW7AJUoeK59nMr4MQkjYbRoLInfxrlk3JKnYHWMq15+XU+sw+aK4KWK3E8qpQODSIHOfeh0A==","signatures":[{"sig":"MEUCIAshCmgLcrwkXh/g67C+UfOYEFBGjf/estvZMDf6LvIcAiEAyXmcm9Vd1S+vYLHSKCmD+HBHY+DbIZgczqy9FstmZ+8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3358557},"main":"dist/tui-image-editor.js","scripts":{"doc":"tuidoc","test":"jest --forceExit --detectOpenHandles","build":"npm run build:clean && npm run build:svg && npm run build:prod && npm run build:minify && node tsBannerGenerator.js","serve":"webpack serve","doc:dev":"tuidoc --serv","build:svg":"node makesvg.js","build:prod":"webpack","test:types":"tsc --project tests/types","build:clean":"rm -rf ./dist","publish:cdn":"node scripts/publishToCDN.js","build:minify":"webpack --env minify","update:wrapper":"node scripts/updateWrapper.js"},"_npmUser":{"name":"ngocthangh","email":"ngocthanguit@gmail.com"},"repository":{"url":"https://github.com/nhn/tui.image-editor.git","type":"git"},"description":"TOAST UI ImageEditor 3.15.3","directories":{},"browserslist":["last 2 versions","not ie <= 9"],"dependencies":{"fabric":"^4.2.0","tui-code-snippet":"^2.3.3","tui-color-picker":"^2.2.6"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/image-editor_1.0.2_1688369130814_0.4807278152397432","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-07-03T05:10:49.000Z","modified":"2024-11-12T11:03:58.475Z","1.0.0":"2023-07-03T05:10:49.431Z","1.0.1":"2023-07-03T06:55:22.670Z","1.0.2":"2023-07-03T07:25:31.084Z"},"bugs":{"url":"https://github.com/nhn/tui.image-editor/issues"},"author":{"name":"NHN Cloud. FE Development Lab","email":"dl_javascript@nhn.com"},"license":"MIT","homepage":"https://github.com/nhn/tui.image-editor","keywords":[],"repository":{"url":"https://github.com/nhn/tui.image-editor.git","type":"git"},"description":"TOAST UI ImageEditor 3.15.3","maintainers":[{"email":"lenguyenhoangkhang2@gmail.com","name":"hoangkhang887"},{"email":"cuong.cn0103@gmail.com","name":"cuongcn"},{"email":"ngocthanguit@gmail.com","name":"ngocthangh"},{"email":"datle0497@gmail.com","name":"datle0497"},{"email":"vinlt@antsomi.com","name":"vinlt.antsomi"},{"email":"khanhhv@antsomi.com","name":"khanhhv"},{"email":"sangndd@antsomi.com","name":"sangndd-antsomi"}],"readme":"# ![Toast UI ImageEditor](https://user-images.githubusercontent.com/35218826/40895380-0b9f4cd6-67ea-11e8-982f-18121daa3a04.png)\n\n> Full featured image editor using HTML5 Canvas. It's easy to use and provides powerful filters.\n\n[![npm version](https://img.shields.io/npm/v/tui-image-editor.svg)](https://www.npmjs.com/package/tui-image-editor)\n\n## 🚩 Table of Contents\n\n- [Collect statistics on the use of open source](#Collect-statistics-on-the-use-of-open-source)\n- [Install](#-install)\n  - [Via Package Manager](#via-package-manager)\n  - [Via Contents Delivery Network (CDN)](#via-contents-delivery-network-cdn)\n  - [Download Source Files](#download-source-files)\n- [Usage](#-usage)\n  - [HTML](#html)\n  - [JavaScript](#javascript)\n  - [Menu svg icon setting](#menu-svg-icon-setting)\n  - [TypeScript](#typescript)\n\n## Collect statistics on the use of open source\n\nTOAST UI ImageEditor applies Google Analytics (GA) to collect statistics on the use of open source, in order to identify how widely TOAST UI ImageEditor is used throughout the world. It also serves as important index to determine the future course of projects. location.hostname (e.g. > “ui.toast.com\") is to be collected and the sole purpose is nothing but to measure statistics on the usage. To disable GA, use the following `usageStatistics` option when creating the instance.\n\n```js\nconst options = {\n  //...\n  usageStatistics: false,\n};\n\nconst imageEditor = new tui.ImageEditor('#tui-image-editor-container', options);\n```\n\nOr, include [`tui-code-snippet`](https://github.com/nhn/tui.code-snippet)(**v1.4.0** or **later**) and then immediately write the options as follows:\n\n```js\ntui.usageStatistics = false;\n```\n\n## 💾 Install\n\nThe TOAST UI products can be installed by using the package manager or downloading the source directly.\nHowever, we highly recommend using the package manager.\n\n### Via Package Manager\n\nYou can find TOAST UI products via [npm](https://www.npmjs.com/) and [bower](https://bower.io/) package managers.\nInstall by using the commands provided by each package manager.\nWhen using npm, be sure [Node.js](https://nodejs.org) is installed in the environment.\n\n#### npm\n\n##### 1. ImageEditor installation\n\n```sh\n$ npm install --save tui-image-editor # Latest version\n$ npm install --save tui-image-editor@<version> # Specific version\n```\n\n##### 2. If the installation of the `fabric.js` dependency module does not go smoothly\n\nTo solve the problem, you need to refer to [Some Steps](https://github.com/fabricjs/fabric.js#install-with-npm) to solve the problem.\n\n#### bower\n\n```sh\n$ bower install tui-image-editor # Latest version\n$ bower install tui-image-editor#<tag> # Specific version\n```\n\n### Via Contents Delivery Network (CDN)\n\nTOAST UI products are available over the CDN powered by [NHN Cloud](https://www.toast.com).\n\nYou can use the CDN as below.\n\n```html\n<link\n  rel=\"stylesheet\"\n  href=\"https://uicdn.toast.com/tui-image-editor/latest/tui-image-editor.css\"\n/>\n<script src=\"https://uicdn.toast.com/tui-image-editor/latest/tui-image-editor.js\"></script>\n```\n\nIf you want to use a specific version, use the tag name instead of `latest` in the URL.\n\nThe CDN directory has the following structure.\n\n```\ntui-image-editor/\n├─ latest/\n│  ├─ tui-image-editor.js\n│  ├─ tui-image-editor.min.js\n│  └─ tui-image-editor.css\n├─ v3.1.0/\n│  ├─ ...\n```\n\n### Download Source Files\n\n- [Download bundle files from `dist` folder](https://github.com/nhn/tui.image-editor/tree/production/dist)\n- [Download all sources for each version](https://github.com/nhn/tui.image-editor/releases)\n\n## 🔨 Usage\n\n### HTML\n\nAdd the container element where TOAST UI ImageEditor will be created.\n\n```html\n<body>\n  ...\n  <div id=\"tui-image-editor\"></div>\n  ...\n</body>\n```\n\n### javascript\n\nAdd dependencies & initialize ImageEditor class with given element to make an image editor.\n\n```javascript\nconst ImageEditor = require('tui-image-editor');\nconst FileSaver = require('file-saver'); //to download edited image to local. Use after npm install file-saver\nconst blackTheme = require('./js/theme/black-theme.js');\nconst locale_ru_RU = {\n  // override default English locale to your custom\n  Crop: 'Обзрезать',\n  'Delete-all': 'Удалить всё',\n  // etc...\n};\nconst instance = new ImageEditor(document.querySelector('#tui-image-editor'), {\n  includeUI: {\n    loadImage: {\n      path: 'img/sampleImage.jpg',\n      name: 'SampleImage',\n    },\n    locale: locale_ru_RU,\n    theme: blackTheme, // or whiteTheme\n    initMenu: 'filter',\n    menuBarPosition: 'bottom',\n  },\n  cssMaxWidth: 700,\n  cssMaxHeight: 500,\n  selectionStyle: {\n    cornerSize: 20,\n    rotatingPointOffset: 70,\n  },\n});\n```\n\nOr\n\n```javascript\nconst ImageEditor = require('tui-image-editor');\nconst instance = new ImageEditor(document.querySelector('#tui-image-editor'), {\n  cssMaxWidth: 700,\n  cssMaxHeight: 500,\n  selectionStyle: {\n    cornerSize: 20,\n    rotatingPointOffset: 70,\n  },\n});\n```\n\n### Menu svg icon setting\n\n#### There are two ways to set icons.\n\n1. **Use default svg built** into imageEditor without setting svg file path (Features added since version v3.9.0).\n2. There is a way to use the **actual physical svg file** and **set the file location manually**.\n\nCan find more details in [this document](https://github.com/nhn/tui.image-editor/blob/master/docs/Basic-Tutorial.md#4-menu-submenu-svg-icon-setting).\n\n### TypeScript\n\nIf you use TypeScript, You must `import module = require('module')` on importing.\n[`export =` and `import = require()`](https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require)\n\n```typescript\nimport ImageEditor = require('tui-image-editor');\nconst FileSaver = require('file-saver'); //to download edited image to local. Use after npm install file-saver\n\nconst instance = new ImageEditor(document.querySelector('#tui-image-editor'), {\n  cssMaxWidth: 700,\n  cssMaxHeight: 500,\n  selectionStyle: {\n    cornerSize: 20,\n    rotatingPointOffset: 70,\n  },\n});\n```\n\nSee [details](https://nhn.github.io/tui.image-editor/latest) for additional information.\n","readmeFilename":"README.md"}