在这种配置下,我只能将svg.js与angular 8一起使用
package.json
"@svgdotjs/svg.draggable.js": "^3.0.2",
"@svgdotjs/svg.filter.js": "3.0.6",
"@svgdotjs/svg.js": "3.0.12", //not 3.0.13
"@svgdotjs/svg.panzoom.js": "^2.0.3",
...
"devDependencies": {
"@angular-devkit/build-angular": "0.800.1", //not 0.800.2 !!!
"@angular/cli": "8.0.1",
...
组件
import { SVG, G, Pattern, Text, TextPath, Image, Svg } from '@svgdotjs/svg.js'
import '@svgdotjs/svg.filter.js'
import '@svgdotjs/svg.panzoom.js'
import '@svgdotjs/svg.draggable.js'
node_modules
svg.js master from 24.05.2019 !!!!!
我想使用svg.js和angular的最新官方软件包(!)。