Skip to content

Commit

Permalink
Move scratch render fonts to peer dependencies since gui will supply it
Browse files Browse the repository at this point in the history
  • Loading branch information
DD Liu committed Apr 7, 2021
1 parent 2a9fb23 commit b0ee90a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
"lodash.omit": "4.5.0",
"minilog": "3.1.0",
"parse-color": "1.0.0",
"prop-types": "^15.5.10",
"scratch-render-fonts": "latest"
"prop-types": "^15.5.10"
},
"peerDependencies": {
"react": "^16",
Expand All @@ -44,7 +43,8 @@
"react-responsive": "^4",
"react-style-proptype": "^3",
"react-tooltip": "^3",
"redux": "^3"
"redux": "^3",
"scratch-render-fonts": "^1.0.0-prerelease.20210401210003"
},
"devDependencies": {
"autoprefixer": "9.7.4",
Expand Down Expand Up @@ -92,6 +92,7 @@
"regenerator-runtime": "^0.13.3",
"rimraf": "^2.6.1",
"scratch-l10n": "3.11.20210308031514",
"scratch-render-fonts": "^1.0.0-prerelease.20210401210003",
"style-loader": "^1.0.0",
"svg-url-loader": "^3.0.0",
"tap": "^14.4.3",
Expand Down
1 change: 1 addition & 0 deletions src/containers/paper-canvas.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ class PaperCanvas extends React.Component {
const paperCanvas = this;
// Pre-process SVG to prevent parsing errors (discussion from #213)
// 1. Remove svg: namespace on elements.
// TODO: remove
svg = svg.split(/<\s*svg:/).join('<');
svg = svg.split(/<\/\s*svg:/).join('</');
// 2. Add root svg namespace if it does not exist.
Expand Down

0 comments on commit b0ee90a

Please sign in to comment.