Nick O'Leary
e641b0a965
Fix scaling issues when dragging nodes into scaled workspace
2021-05-10 21:03:27 +01:00
Nick O'Leary
e5b7ccb612
Add subflow edit button to palette tooltip
2021-01-29 10:42:04 +00:00
Nick O'Leary
2e73b229d7
Add easier ways to find subflow instances
2021-01-28 00:41:19 +00:00
Nick O'Leary
3a0074d96e
Merge branch 'master' into dev
2021-01-27 23:28:19 +00:00
Nick O'Leary
7068c175f2
Ensure subflow help is picked up for palette tooltip
...
Fixes #2834
2021-01-27 22:53:06 +00:00
Hiroyasu Nishiyama
34ef055d7b
Fix line break of subflow label on palette ( #2828 )
...
* fix line break of subflow label on palette
* handle line break on palette
2021-01-27 20:32:15 +00:00
Nick O'Leary
d5cc5b2574
Use subflow.info for help text and meta.type for node type
2021-01-07 15:34:27 +00: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
9f29149d87
[help-sidebar] Add help sidebar
2020-05-06 16:15:12 +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
5da89892b4
[groups] Draw group selection above all other groups
2020-04-01 14:10:35 +01:00
Nick O'Leary
294696daf5
Merge branch 'dev' into groups
2020-03-30 23:42:52 +01:00
Nick O'Leary
f61c137ea3
[groups] Improve styling of group selection/highlight
2020-03-23 14:51:18 +00:00
Nick O'Leary
27c462fee9
[groups] Support dragging node from palette into group
2020-03-13 23:01:19 +00:00
Nick O'Leary
3f86fd7176
Upgrade to latest marked and dompurify libs
2020-02-24 11:22:47 +00:00
Nick O'Leary
a05589c5a6
Filter palette using raw label not html formatted label
...
Fixes #2409
2020-02-07 16:31:59 +00:00
Nick O'Leary
9d4238e5cc
Re-enable jshint on editor and fixup issues
2020-01-22 11:53:41 +00:00
Kazuhito Yokoi
dddfb1ec08
Fix node draggable handling
2019-09-26 11:43:24 +09:00
Hiroyasu Nishiyama
247052df5f
allow word breaking of node name with long word
2019-09-19 22:50:35 +09:00
Nick O'Leary
c7427a5f7c
Add nls messages for new palette categories
2019-08-21 17:30:02 +01:00
Nick O'Leary
03aa6c7d3a
Apply user specified palette cateogies and remaining core ones
2019-08-21 17:27:06 +01:00
Nick O'Leary
69b781419f
Move io to network
2019-08-21 14:23:24 +01:00
Nick O'Leary
da6db24f9e
Reorganise nodes into new categories
2019-08-21 14:23:23 +01:00
Nick O'Leary
2b66723d42
Another pass of categorisation
2019-08-21 14:22:30 +01:00
Nick O'Leary
00a3e25714
Change core node categories
2019-08-21 14:21:34 +01:00
Nick O'Leary
607bc42f59
Merge branch 'dev' into pr_2225
2019-08-12 15:05:12 +01:00
Hiroyasu Nishiyama
7b5a41c3ff
fix subflow category change on palette
2019-08-12 13:49:34 +09:00
Nick O'Leary
7926055b97
Merge branch 'master' into dev
2019-08-06 16:10:33 +01:00
Hiroyasu Nishiyama
db65460ec0
fix SUBFLOW palette node update & SUBFLOW default color
2019-07-31 22:59:29 +09:00
Kazuhito Yokoi
2f5ec8b5bf
Fix inserting new subflow node to existing wire between nodes
2019-07-26 17:51:49 +09:00
Hiroyasu Nishiyama
d06dbbb4bd
changed to color change reflect immediately on OK
2019-07-11 08:22:31 +09:00
Nick O'Leary
24b38407e4
Merge branch 'master' into dev
2019-07-01 12:43:16 +01:00
Nick O'Leary
55645e3730
Properly escape node types in palette
...
We were only escaping the first instance of any invalid dom char
and not all of the
2019-06-28 22:39:27 +01:00
Nick O'Leary
a24c66958f
Fix display of node help when clicking in palette
...
Fixes #2194
2019-06-06 14:38:21 +01:00
Nick O'Leary
b105a12505
Fix palette node id handling so search works
...
Fixes #2173
2019-05-24 22:13:21 +01:00
Nick O'Leary
0d75ff336d
Found some more ids and classes to namespace
2019-05-16 22:32:28 +01:00
Nick O'Leary
031362a633
Move all colours to sass variables
2019-05-15 13:54:29 +01:00
Nick O'Leary
4418f8bfce
Better CSS namespace of base form elements
2019-05-09 19:22:40 +01:00
Nick O'Leary
8dc1ad8168
Namespace workspace/view css
2019-05-01 22:41:20 +01:00
Nick O'Leary
a2632fdcc8
Namespace all palette css
2019-04-29 22:38:14 +01:00
Nick O'Leary
b5da6f9c74
Upgrade to jq 3.3.1 / jq-ui 1.12.1
...
Uses jquery-migrate-3.0.1.min.js to keep things working.
2019-04-29 11:50:15 +01:00
Kazuhito Yokoi
44b75f0b92
Adjust node animation speed
2019-04-16 11:02:51 +09:00
Kazuhito Yokoi
162bd6a8c3
Fix node drag and drop animation
2019-04-16 09:47:08 +09:00
Nick O'Leary
1d7be6457f
Ensure node names are sanitized before being presented
2019-03-13 16:08:11 +00:00
Nick O'Leary
b011b9203b
Keep subflow palette appearance in sync with edits
2019-03-05 14:37:07 +00:00
Kazuhito Yokoi
f80b172022
Add condition to handle existing node
2019-03-05 21:29:03 +09:00
Kazuhito Yokoi
66fc4b536c
Automatic placing of node icon
2019-03-05 21:21:23 +09:00
nakanishi
8bda2d0add
Show arrow-in node when invalid font-awesome icon name was specified for default icon
2018-11-29 16:57:39 +00:00
Nick O'Leary
70fb181b7b
Add more ui tooltips
2018-10-24 22:57:16 +01:00
nakanishi
c9db74ebca
Show default icon when non-existent font-awesome icon was specified
2018-10-23 16:30:56 +09:00