react-konva
Advanced tools
Comparing version
{ | ||
"name": "react-konva", | ||
"description": "React binding to canvas element via Konva framework", | ||
"version": "1.5.6-beta", | ||
"version": "1.5.7-beta", | ||
"keywords": ["react", "canvas", "jsx", "konva"], | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/lavrton/react-konva/issues", |
@@ -548,7 +548,6 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
invariant(child !== beforeChild, 'ReactKonva: Can not insert node before itself'); | ||
if (child.parent !== parentInstance) { | ||
parentInstance.add(child); | ||
} | ||
var newIndex = Math.max(beforeChild.getZIndex() - 1, 0); | ||
child.setZIndex(newIndex); | ||
// remove and add back to reset zIndex | ||
child.remove(); | ||
parentInstance.add(child); | ||
child.setZIndex(beforeChild.getZIndex()); | ||
updatePicture(parentInstance); | ||
@@ -558,7 +557,6 @@ }, | ||
invariant(child !== beforeChild, 'ReactKonva: Can not insert node before itself'); | ||
if (child.parent !== parentInstance) { | ||
parentInstance.add(child); | ||
} | ||
var newIndex = Math.max(beforeChild.getZIndex() - 1, 0); | ||
child.setZIndex(newIndex); | ||
// remove and add back to reset zIndex | ||
child.remove(); | ||
parentInstance.add(child); | ||
child.setZIndex(beforeChild.getZIndex()); | ||
updatePicture(parentInstance); | ||
@@ -565,0 +563,0 @@ }, |
41781
-0.17%838
-0.24%