Merge branch '100le-master' into develop

This commit is contained in:
moklick
2020-09-05 12:01:39 +02:00
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -102,6 +102,7 @@ const BasicFlow = () => <ReactFlow elements={elements} />;
- `onSelectionDragStop(evt: MouseEvent, nodes: Node[])`: called when user stops to drag a selection - `onSelectionDragStop(evt: MouseEvent, nodes: Node[])`: called when user stops to drag a selection
- `onPaneClick(event: MouseEvent)`: called when user clicks directly on the canvas - `onPaneClick(event: MouseEvent)`: called when user clicks directly on the canvas
- `onPaneContextMenu(event: MouseEvent)`: called when user does a right-click on the canvas - `onPaneContextMenu(event: MouseEvent)`: called when user does a right-click on the canvas
- `onPaneScroll(event: WheelEvent)`: called when user scrolls pane (only works when `zoomOnScroll` is set to `false)
#### Interaction #### Interaction
- `nodesDraggable`: default: `true`. This applies to all nodes. You can also change the behavior of a specific node with the `draggable` node option. - `nodesDraggable`: default: `true`. This applies to all nodes. You can also change the behavior of a specific node with the `draggable` node option.
+4
View File
@@ -42,6 +42,10 @@ const useElementUpdater = (propElements: Elements): void => {
elementProps.isHidden = propElement.isHidden; elementProps.isHidden = propElement.isHidden;
} }
if (typeof propElement.type !== 'undefined') {
elementProps.type = propElement.type;
}
if (isNode(existingElement)) { if (isNode(existingElement)) {
const propNode = propElement as Node; const propNode = propElement as Node;
const nodeProps = elementProps as Node; const nodeProps = elementProps as Node;