Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gorangajic/react-svg-morph
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e148602c5560ee444523774115a20c2508829d01
Choose a base ref
...
head repository: gorangajic/react-svg-morph
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 304a046b5706ac9735a3a8b1e494311c123c139d
Choose a head ref
  • 5 commits
  • 2 files changed
  • 2 contributors

Commits on Nov 24, 2017

  1. Update package.json

    HairyRabbit authored Nov 24, 2017

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    marsam Mario Rodas
    Copy the full SHA
    95fd7e8 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    marsam Mario Rodas
    Copy the full SHA
    21c316b View commit details
  3. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    marsam Mario Rodas
    Copy the full SHA
    58ff740 View commit details
  4. Merge pull request #26 from yuffiy/master

    Support SVG stateless function component
    gorangajic authored Nov 24, 2017
    Copy the full SHA
    78d9797 View commit details
  5. 0.2.1

    gorangajic committed Nov 24, 2017
    Copy the full SHA
    304a046 View commit details
Showing with 3 additions and 3 deletions.
  1. +2 −2 package.json
  2. +1 −1 src/utils/normalizeSvg.js
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-svg-morph",
"version": "0.2.0",
"version": "0.2.1",
"description": "morph your svg component one into another",
"main": "lib/index.js",
"jsnext:main": "src/index.js",
@@ -28,7 +28,7 @@
},
"dependencies": {
"prop-types": "^15.6.0",
"react-render-to-json": "0.0.4",
"react-render-to-json": "0.0.6",
"svgpath": "^2.1.0"
},
"devDependencies": {
2 changes: 1 addition & 1 deletion src/utils/normalizeSvg.js
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ export function getAllChildren(node) {
for ( ; i < len; i++) {
let el = node.children[i];
els.push(el);
if (el.children && el.children.length > 0) {
if (el.children && el.children.filter(Boolean).length > 0) {
els = els.concat(getAllChildren(el));
}
}