parent
dbc9ed7124
commit
7cbcb6989c
File diff suppressed because it is too large
Load Diff
37
package.json
37
package.json
|
@ -79,39 +79,37 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/polyfill": "7.12.1",
|
"browser-fs-access": "0.29.5",
|
||||||
"browser-fs-access": "0.25.0",
|
"core-js": "3.22.5",
|
||||||
"core-js": "3.21.1",
|
|
||||||
"elix": "15.0.1",
|
"elix": "15.0.1",
|
||||||
"html2canvas": "1.4.1",
|
"html2canvas": "1.4.1",
|
||||||
"i18next": "21.6.14",
|
"i18next": "21.8.2",
|
||||||
"jspdf": "2.5.1",
|
"jspdf": "2.5.1",
|
||||||
"pathseg": "1.2.1",
|
"pathseg": "1.2.1",
|
||||||
"regenerator-runtime": "0.13.9",
|
"regenerator-runtime": "0.13.9",
|
||||||
"rollup-plugin-polyfill-node": "0.8.0",
|
|
||||||
"svg2pdf.js": "2.2.0"
|
"svg2pdf.js": "2.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "7.17.5",
|
"@babel/core": "7.17.10",
|
||||||
"@babel/preset-env": "7.16.11",
|
"@babel/preset-env": "7.17.10",
|
||||||
"@babel/register": "7.17.0",
|
"@babel/register": "7.17.7",
|
||||||
"@babel/runtime-corejs3": "7.17.2",
|
"@babel/runtime-corejs3": "7.17.9",
|
||||||
"@cypress/code-coverage": "3.9.12",
|
"@cypress/code-coverage": "3.9.12",
|
||||||
"@cypress/fiddle": "1.19.3",
|
"@cypress/fiddle": "1.19.3",
|
||||||
"@rollup/plugin-babel": "5.3.1",
|
"@rollup/plugin-babel": "5.3.1",
|
||||||
"@rollup/plugin-commonjs": "^18",
|
"@rollup/plugin-commonjs": "^18",
|
||||||
"@rollup/plugin-dynamic-import-vars": "1.4.2",
|
"@rollup/plugin-dynamic-import-vars": "1.4.3",
|
||||||
"@rollup/plugin-node-resolve": "13.1.3",
|
"@rollup/plugin-node-resolve": "13.3.0",
|
||||||
"@rollup/plugin-replace": "4.0.0",
|
"@rollup/plugin-replace": "4.0.0",
|
||||||
"@rollup/plugin-url": "6.1.0",
|
"@rollup/plugin-url": "7.0.0",
|
||||||
"@web/dev-server": "0.1.30",
|
"@web/dev-server": "0.1.31",
|
||||||
"@web/dev-server-rollup": "0.3.15",
|
"@web/dev-server-rollup": "0.3.17",
|
||||||
"babel-plugin-transform-object-rest-spread": "7.0.0-beta.3",
|
"babel-plugin-transform-object-rest-spread": "7.0.0-beta.3",
|
||||||
"copyfiles": "2.4.1",
|
"copyfiles": "2.4.1",
|
||||||
"core-js-bundle": "3.21.1",
|
"core-js-bundle": "3.22.5",
|
||||||
"cp-cli": "2.0.0",
|
"cp-cli": "2.0.0",
|
||||||
"cypress": "9.5.1",
|
"cypress": "9.6.1",
|
||||||
"cypress-multi-reporters": "1.5.0",
|
"cypress-multi-reporters": "1.6.0",
|
||||||
"cypress-plugin-snapshots": "1.4.4",
|
"cypress-plugin-snapshots": "1.4.4",
|
||||||
"jamilih": "0.54.0",
|
"jamilih": "0.54.0",
|
||||||
"jsdoc": "3.6.10",
|
"jsdoc": "3.6.10",
|
||||||
|
@ -125,15 +123,14 @@
|
||||||
"remark-cli": "10.0.1",
|
"remark-cli": "10.0.1",
|
||||||
"remark-lint-ordered-list-marker-value": "3.1.1",
|
"remark-lint-ordered-list-marker-value": "3.1.1",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"rollup": "2.70.0",
|
"rollup": "2.73.0",
|
||||||
"rollup-plugin-copy": "3.4.0",
|
"rollup-plugin-copy": "3.4.0",
|
||||||
"rollup-plugin-filesize": "9.1.2",
|
"rollup-plugin-filesize": "9.1.2",
|
||||||
"rollup-plugin-html": "0.2.1",
|
"rollup-plugin-html": "0.2.1",
|
||||||
"rollup-plugin-node-polyfills": "0.2.1",
|
|
||||||
"rollup-plugin-progress": "1.1.2",
|
"rollup-plugin-progress": "1.1.2",
|
||||||
"rollup-plugin-re": "1.0.7",
|
"rollup-plugin-re": "1.0.7",
|
||||||
"rollup-plugin-terser": "7.0.2",
|
"rollup-plugin-terser": "7.0.2",
|
||||||
"standard": "16.0.4",
|
"standard": "17.0.0",
|
||||||
"start-server-and-test": "1.14.0"
|
"start-server-and-test": "1.14.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,9 +9,7 @@ import babel from '@rollup/plugin-babel'
|
||||||
import copy from 'rollup-plugin-copy'
|
import copy from 'rollup-plugin-copy'
|
||||||
import { nodeResolve } from '@rollup/plugin-node-resolve'
|
import { nodeResolve } from '@rollup/plugin-node-resolve'
|
||||||
import commonjs from '@rollup/plugin-commonjs'
|
import commonjs from '@rollup/plugin-commonjs'
|
||||||
import nodePolyfills from 'rollup-plugin-node-polyfills'
|
|
||||||
import url from '@rollup/plugin-url' // for XML/SVG files
|
import url from '@rollup/plugin-url' // for XML/SVG files
|
||||||
// eslint-disable-next-line node/no-extraneous-import
|
|
||||||
import html from 'rollup-plugin-html'
|
import html from 'rollup-plugin-html'
|
||||||
|
|
||||||
import dynamicImportVars from '@rollup/plugin-dynamic-import-vars'
|
import dynamicImportVars from '@rollup/plugin-dynamic-import-vars'
|
||||||
|
@ -107,7 +105,6 @@ const config = [{
|
||||||
commonjs(),
|
commonjs(),
|
||||||
dynamicImportVars({ include: 'src/editor/locale.js' }),
|
dynamicImportVars({ include: 'src/editor/locale.js' }),
|
||||||
babel({ babelHelpers: 'bundled', exclude: [/\/core-js\//] }), // exclude core-js to avoid circular dependencies.
|
babel({ babelHelpers: 'bundled', exclude: [/\/core-js\//] }), // exclude core-js to avoid circular dependencies.
|
||||||
nodePolyfills(),
|
|
||||||
terser({ keep_fnames: true }), // keep_fnames is needed to avoid an error when calling extensions.
|
terser({ keep_fnames: true }), // keep_fnames is needed to avoid an error when calling extensions.
|
||||||
filesize()
|
filesize()
|
||||||
]
|
]
|
||||||
|
@ -145,7 +142,6 @@ extensionDirs.forEach((extensionDir) => {
|
||||||
commonjs({ exclude: `src/editor/extensions/${extensionName}/${extensionName}.js` }),
|
commonjs({ exclude: `src/editor/extensions/${extensionName}/${extensionName}.js` }),
|
||||||
dynamicImportVars({ include: `src/editor/extensions/${extensionName}/${extensionName}.js` }),
|
dynamicImportVars({ include: `src/editor/extensions/${extensionName}/${extensionName}.js` }),
|
||||||
babel({ babelHelpers: 'bundled', exclude: [/\/core-js\//] }),
|
babel({ babelHelpers: 'bundled', exclude: [/\/core-js\//] }),
|
||||||
nodePolyfills(),
|
|
||||||
terser({ keep_fnames: true })
|
terser({ keep_fnames: true })
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -9,18 +9,18 @@
|
||||||
"author": "OptimistikSAS",
|
"author": "OptimistikSAS",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react": "^17.0.2",
|
"react": "^18.1.0",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^18.1.0",
|
||||||
"standardjs": "^1.0.0-alpha"
|
"standard": "^17.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.16.7",
|
"@babel/core": "^7.17.10",
|
||||||
"@babel/preset-react": "^7.16.7",
|
"@babel/preset-react": "^7.16.7",
|
||||||
"@rollup/plugin-babel": "^5.3.0",
|
"@rollup/plugin-babel": "^5.3.1",
|
||||||
"@rollup/plugin-commonjs": "^21.0.1",
|
"@rollup/plugin-commonjs": "^22.0.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.1.3",
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
||||||
"@rollup/plugin-replace": "^3.0.1",
|
"@rollup/plugin-replace": "^4.0.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"rollup": "^2.63.0"
|
"rollup": "^2.73.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -299,7 +299,7 @@ const setBBoxZoomMethod = (val, editorW, editorH) => {
|
||||||
if (bb.width === 0 || bb.height === 0) {
|
if (bb.width === 0 || bb.height === 0) {
|
||||||
const newzoom = bb.zoom ? bb.zoom : zoom * bb.factor
|
const newzoom = bb.zoom ? bb.zoom : zoom * bb.factor
|
||||||
svgCanvas.setZoom(newzoom)
|
svgCanvas.setZoom(newzoom)
|
||||||
return { zoom: zoom, bbox: bb }
|
return { zoom, bbox: bb }
|
||||||
}
|
}
|
||||||
return calcZoom(bb)
|
return calcZoom(bb)
|
||||||
}
|
}
|
||||||
|
|
|
@ -590,7 +590,7 @@ const setSvgString = (xmlString, preventUndo) => {
|
||||||
// update root to the correct size
|
// update root to the correct size
|
||||||
const width = content.getAttribute('width')
|
const width = content.getAttribute('width')
|
||||||
const height = content.getAttribute('height')
|
const height = content.getAttribute('height')
|
||||||
const changes = { width: width, height: height }
|
const changes = { width, height }
|
||||||
batchCmd.addSubCommand(
|
batchCmd.addSubCommand(
|
||||||
new ChangeElementCommand(svgCanvas.getSvgRoot(), changes)
|
new ChangeElementCommand(svgCanvas.getSvgRoot(), changes)
|
||||||
)
|
)
|
||||||
|
@ -977,8 +977,8 @@ const exportPDF = async (
|
||||||
canvas => {
|
canvas => {
|
||||||
const imgData = canvas.toDataURL('image/png')
|
const imgData = canvas.toDataURL('image/png')
|
||||||
const doc = new JsPDF({
|
const doc = new JsPDF({
|
||||||
orientation: orientation,
|
orientation,
|
||||||
unit: unit,
|
unit,
|
||||||
format: [res.w, res.h]
|
format: [res.w, res.h]
|
||||||
})
|
})
|
||||||
const docTitle = svgCanvas.getDocumentTitle()
|
const docTitle = svgCanvas.getDocumentTitle()
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
// eslint-disable-next-line node/no-unpublished-import
|
|
||||||
import { fromRollup } from '@web/dev-server-rollup'
|
import { fromRollup } from '@web/dev-server-rollup'
|
||||||
// eslint-disable-next-line node/no-unpublished-import
|
|
||||||
import rollupCommonjs from '@rollup/plugin-commonjs'
|
import rollupCommonjs from '@rollup/plugin-commonjs'
|
||||||
// eslint-disable-next-line node/no-unpublished-import
|
|
||||||
import rollupHtml from 'rollup-plugin-html'
|
import rollupHtml from 'rollup-plugin-html'
|
||||||
|
|
||||||
const commonjs = fromRollup(rollupCommonjs)
|
const commonjs = fromRollup(rollupCommonjs)
|
||||||
|
|
Loading…
Reference in New Issue