@svgedit/svgcanvas 7.2.1 → 7.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +8 -0
- package/core/coords.js +3 -3
- package/core/elem-get-set.js +80 -90
- package/core/event.js +5 -5
- package/core/math.js +90 -52
- package/core/path-actions.js +2 -2
- package/core/path.js +2 -2
- package/core/recalculate.js +8 -9
- package/core/select.js +3 -3
- package/core/selected-elem.js +6 -5
- package/core/selection.js +3 -2
- package/core/svg-exec.js +29 -39
- package/core/undo.js +5 -5
- package/core/utilities.js +449 -354
- package/dist/svgcanvas.js +4925 -6334
- package/dist/svgcanvas.js.map +1 -1
- package/package.json +1 -1
- package/publish.md +6 -0
- package/rollup.config.mjs +4 -9
- package/dist/svgcanvas.esm.js +0 -55680
- package/dist/svgcanvas.esm.js.map +0 -1
package/package.json
CHANGED
package/publish.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
## To publish this package
|
|
2
|
+
1. update the version number in package.json
|
|
3
|
+
2. run 'npm install' to update the corresponding package-lock.json
|
|
4
|
+
3. update the CHANGES.md
|
|
5
|
+
4. run 'npm publish' (that will automate the build)
|
|
6
|
+
5. create a commit with above changes called 'release x.y.z'
|
package/rollup.config.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This rollup script is run by the command:
|
|
3
3
|
// 'npm run build'
|
|
4
4
|
|
|
5
|
-
import rimraf from 'rimraf'
|
|
5
|
+
import { rimraf } from 'rimraf'
|
|
6
6
|
import babel from '@rollup/plugin-babel'
|
|
7
7
|
import { nodeResolve } from '@rollup/plugin-node-resolve'
|
|
8
8
|
import commonjs from '@rollup/plugin-commonjs'
|
|
@@ -10,23 +10,18 @@ import commonjs from '@rollup/plugin-commonjs'
|
|
|
10
10
|
import filesize from 'rollup-plugin-filesize'
|
|
11
11
|
|
|
12
12
|
// remove existing distribution
|
|
13
|
-
rimraf('./dist'
|
|
13
|
+
await rimraf('./dist')
|
|
14
|
+
console.info('recreating dist')
|
|
14
15
|
|
|
15
16
|
// config for svgedit core module
|
|
16
17
|
const config = [{
|
|
17
18
|
input: ['./svgcanvas.js'],
|
|
18
19
|
output: [
|
|
19
20
|
{
|
|
21
|
+
format: 'es',
|
|
20
22
|
inlineDynamicImports: true,
|
|
21
23
|
sourcemap: true,
|
|
22
|
-
format: 'cjs',
|
|
23
24
|
file: 'dist/svgcanvas.js'
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
inlineDynamicImports: true,
|
|
27
|
-
sourcemap: true,
|
|
28
|
-
file: 'dist/svgcanvas.esm.js',
|
|
29
|
-
format: 'esm'
|
|
30
25
|
}
|
|
31
26
|
],
|
|
32
27
|
plugins: [
|