|
@@ -254,6 +254,9 @@ const addNewNode = (
|
|
backgroundColor: element.backgroundColor,
|
|
backgroundColor: element.backgroundColor,
|
|
strokeColor: element.strokeColor,
|
|
strokeColor: element.strokeColor,
|
|
strokeWidth: element.strokeWidth,
|
|
strokeWidth: element.strokeWidth,
|
|
|
|
+ opacity: element.opacity,
|
|
|
|
+ fillStyle: element.fillStyle,
|
|
|
|
+ strokeStyle: element.strokeStyle,
|
|
});
|
|
});
|
|
|
|
|
|
invariant(
|
|
invariant(
|
|
@@ -329,6 +332,9 @@ export const addNewNodes = (
|
|
backgroundColor: startNode.backgroundColor,
|
|
backgroundColor: startNode.backgroundColor,
|
|
strokeColor: startNode.strokeColor,
|
|
strokeColor: startNode.strokeColor,
|
|
strokeWidth: startNode.strokeWidth,
|
|
strokeWidth: startNode.strokeWidth,
|
|
|
|
+ opacity: startNode.opacity,
|
|
|
|
+ fillStyle: startNode.fillStyle,
|
|
|
|
+ strokeStyle: startNode.strokeStyle,
|
|
});
|
|
});
|
|
|
|
|
|
invariant(
|
|
invariant(
|
|
@@ -421,6 +427,8 @@ const createBindingArrow = (
|
|
strokeColor: startBindingElement.strokeColor,
|
|
strokeColor: startBindingElement.strokeColor,
|
|
strokeStyle: startBindingElement.strokeStyle,
|
|
strokeStyle: startBindingElement.strokeStyle,
|
|
strokeWidth: startBindingElement.strokeWidth,
|
|
strokeWidth: startBindingElement.strokeWidth,
|
|
|
|
+ opacity: startBindingElement.opacity,
|
|
|
|
+ roughness: startBindingElement.roughness,
|
|
points: [pointFrom(0, 0), pointFrom(endX, endY)],
|
|
points: [pointFrom(0, 0), pointFrom(endX, endY)],
|
|
elbowed: true,
|
|
elbowed: true,
|
|
});
|
|
});
|