Nick O'Leary
a48f0827ae
Detect importing duplicate nodes and help user resolve
2020-09-16 11:59:13 +01:00
Nick O'Leary
7bd0ca2212
Handle nodes with invalid z property
...
Closes #2170
2020-09-03 18:31:33 +01:00
Nick O'Leary
02c20e97b7
Only recalculate group label offsets when needed
2020-09-03 13:49:42 +01:00
Nick O'Leary
d9900d8e4c
Fix copy/paste of node into active group
...
Fixes #2686
2020-09-03 13:12:08 +01:00
Nick O'Leary
85edee288f
Allow lasso selection to be restricted to active group
2020-08-05 11:16:53 +01:00
Nick O'Leary
1aa494a97a
Make ctrl-click on nexted group more intuitive
2020-08-05 10:38:14 +01:00
Nick O'Leary
a8e7627184
Support select-all inside active group
2020-08-04 21:01:08 +01:00
Nick O'Leary
758f44e25f
Improve performance of moving groups
2020-07-31 23:22:33 +01:00
Nick O'Leary
580cc00967
Fix all the touch screen issues
2020-07-10 16:00:38 +01:00
Nick O'Leary
612c565cfd
Add RED.view.redrawStatus to avoid full redraw on update
2020-07-10 16:00:18 +01:00
Nick O'Leary
1c337f6817
Fix connecting wires to subflow status or io ports on touchscreen
2020-07-08 13:22:26 +01:00
Nick O'Leary
f5e46a663a
Remove hardcoded css and allow group to default from theme
...
Fixes #2633
2020-07-07 11:01:05 +01:00
Nick O'Leary
64ec415a54
Add RED.view.DEBUG_SYNC_REDRAW to disable requestAnimationFrame
...
References #2631
2020-07-06 21:01:14 +01:00
Nick O'Leary
0243a902b2
Fix up subflow port wiring
2020-07-06 18:11:47 +01:00
Nick O'Leary
6c04402a98
Prevent wiring to node with no corresponding port
...
Fixes #2641
2020-07-06 17:32:44 +01:00
Nick O'Leary
73448a6039
Avoid copying duplicate nodes to internal clipboard
2020-07-06 16:00:15 +01:00
Nick O'Leary
44da085e0b
Tweak group margin to fit node status and look better
2020-06-29 20:43:25 +01:00
Nick O'Leary
0a411cbe4f
Fix node button mouse pointer css
2020-06-22 14:37:52 +01:00
Nick O'Leary
581f71911a
Change node linebreak handling to use "\n "
2020-06-22 13:08:35 +01:00
Nick O'Leary
e548bf8bc2
Handle import of node with non-default number of outputs
2020-06-22 10:43:09 +01:00
Nick O'Leary
6f407750f5
Fix clearing group label
2020-06-18 22:25:00 +01:00
Nick O'Leary
68d3cc7507
Fix node toggle button initial opacity
2020-06-18 10:18:35 +01:00
Nick O'Leary
e2c86c4b96
Fix wiring nodes from input back to output
2020-06-17 10:52:41 +01:00
Nick O'Leary
9ce5210c33
Handle unknown nodes with no icon
2020-06-16 20:34:45 +01:00
Nick O'Leary
4dd68452b4
Prevent node creep when switching tabs
2020-06-16 20:23:18 +01:00
Nick O'Leary
aebb7da3c7
Fix deleting node in group after changing selection
2020-06-16 10:54:50 +01:00
Nick O'Leary
ebca8c0217
Increase group margin to avoid clash with status text
2020-06-14 23:44:26 +01:00
Nick O'Leary
752a080876
Fix event order when quick-adding node to group
2020-06-14 23:44:01 +01:00
Nick O'Leary
61d9ccf263
Avoid regenerating every node label on redraw
2020-06-13 23:02:10 +01:00
Hiroyasu Nishiyama
1c30584153
fix code indentation
2020-06-13 23:33:45 +09:00
Hiroyasu Nishiyama
5c5bebd689
fix handling of multi-line node label
2020-06-13 23:28:10 +09:00
Hiroyasu Nishiyama
5e8e739f78
fix position of empty group with multi-line label
2020-06-12 16:07:46 +09:00
Nick O'Leary
7be824640c
Fix snapToGrid
2020-06-10 01:02:48 +01:00
Nick O'Leary
c061487a16
Massively reduce our dependency on d3 to render the view
...
This is a slightly scary set of changes to be making. It overhauls
how the view is rendered.
Rather than use d3 for every single part of generating the view,
we new use native DOM functions as much as possible.
d3 is still used for the basic heavy lifting of working out what
nodes/links etc need to be added/removed from the view. But once
it comes to rendering them, d3 is side-lined as much as possible.
There's room for further improvement. This change focusses on Nodes
and Links. It has not touched groups, subflow-ports and link-nodes.
2020-06-10 00:45:20 +01:00
Nick O'Leary
091a462a42
Add 'add' option to touch radialMenu for quick-add dialog
2020-06-05 15:48:45 +01:00
Nick O'Leary
efecfa328b
Fix up event handling when deleting groups and tabs
2020-06-03 14:23:26 +01:00
Hiroyasu Nishiyama
3345f2f3b8
simplify code structure
2020-05-28 10:23:50 +09:00
Hiroyasu Nishiyama
05f816fc5d
not emit change event on group delete
2020-05-25 08:46:35 +09:00
Nick O'Leary
15cc88de6c
[info-sidebar] Handle node/group/flows with \\n in their name
2020-05-19 17:53:20 +01:00
Hiroyasu Nishiyama
5f5e6ea845
fix error on empty label
2020-05-17 11:44:23 +09:00
Hiroyasu Nishiyama
243915516e
fix line break of group label
2020-05-16 20:56:21 +09:00
Nick O'Leary
fbd911ed27
[outliner] Keep outliner selection in sync with workspace
2020-05-14 22:08:25 +01:00
Nick O'Leary
ff310f89bd
[groups] Support RED.view.reveal(group-id)
2020-05-12 10:59:41 +01:00
Nick O'Leary
1a9c4b7714
All node button to be clicked via api call
2020-04-27 11:03:43 +01:00
Nick O'Leary
373267c53b
Add more consistent events in the editor
...
This introduces a much more consistent set of events within the editor
for whenever a element is added, removed or modified.
The events emited on the `RED.events` event system. The event names
take the form: `"<thing>:<action>"`.
`<thing>` can be one of:
- nodes
- flows
- subflows
- groups
- links
`<action>` can be one of:
- add
- remove
- change
The payload of the events is the object in question.
There is also:
- flows:reorder - when tabs are reordered. Payload is array of flow ids.
- workspace:clear - when the workspace is emptied - part of switching projects
The `nodes:change` event was already used by RED.nodes.dirty() to cause
the Deploy button to become active. This renames that event to:
- workspace:dirty - Payload is boolean flag for the dirty state
This commit also updates the Palette to use the subflows:change event to
only redraw subflows that have actually changed rather than refresh them
all whenever one of them *might* have changed. This removes a noticable
flicker of the icon which was needlessly being redrawn.
2020-04-20 22:23:34 +01:00
Nick O'Leary
b032e00d01
[groups] increase group border radius
2020-04-14 22:39:42 +01:00
Nick O'Leary
fbfc74e5ca
[groups] Ensure newly imported nodes have width/height
2020-04-02 11:58:08 +01:00
Nick O'Leary
5da89892b4
[groups] Draw group selection above all other groups
2020-04-01 14:10:35 +01:00
Nick O'Leary
7fa4df082e
Force sync redraw of view when replacing unknown nodes
2020-03-31 15:58:51 +01:00
Hiroyasu Nishiyama
fa8236ee2c
update for recent change of dev branch
2020-03-31 20:32:07 +09:00