Commit Graph

626 Commits

Author SHA1 Message Date
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 c171088838
Fix reparenting nodes in outliner when they change 2020-06-26 17:21:20 +01:00
Nick O'Leary 8bd8834237
Add default shortcut for core:show-help-tab 2020-06-26 15:58:02 +01:00
Nick O'Leary 4c98db2269
Outliner - add empty item when last config node moved 2020-06-24 13:18:46 +01:00
Hiroyasu Nishiyama fb2d185c5f fix typedInput error on empty subflow input types 2020-06-23 09:24:29 +09:00
Nick O'Leary 432ed264c2
Remove hardcoded css
Fixes #2603
2020-06-22 20:39:41 +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 19ffe8f308
Default group label to be shown and improve toggle button 2020-06-18 22:24:44 +01:00
Nick O'Leary c9069d472f
Make color/icon/label-pos pickers keyboard navigable 2020-06-18 22:23:50 +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 4469a334fd
Fix sometimes unable to keyboard-move group to left/up 2020-06-17 09:57:25 +01:00
Nick O'Leary aca379db6e
Fix group position in outliner 2020-06-16 20:48:28 +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 2378e0d961
Fix up linting in search.js 2020-06-16 15:08:30 +01:00
Kazuhito Yokoi 52eb158231 Add Japanese translations for outliner, jsonata and runtime 2020-06-16 21:32:10 +09:00
Nick O'Leary aebb7da3c7
Fix deleting node in group after changing selection 2020-06-16 10:54:50 +01:00
Nick O'Leary 76728d1783
Move config nodes under type-level hierarchy in outline
Also adds user-count label and button to open search
2020-06-15 22:31:47 +01:00
Nick O'Leary 5b1fe9aa0a
Emit nodes:change event for config node users list modified 2020-06-15 22:31:47 +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 0541d9189d
Switch RED.events.DEBUG messages to warn to get stacktraces 2020-06-14 23:43:15 +01:00
Nick O'Leary 0e454b08c8
Fix empty item handling for subflows/config in outliner 2020-06-14 22:46:59 +01:00
Nick O'Leary 2d0ca20a03
Fix search indexing of group nodes 2020-06-14 22:46:46 +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
Nick O'Leary 93211470d1
Merge pull request #2611 from node-red-hitachi/fix-group-merge-activation
Disable group merge for single item or non-group items
2020-06-12 08:50:12 +01:00
Nick O'Leary eeebf04509
Merge pull request #2609 from node-red-hitachi/fix-remove-from-group
fix empty placeholder not shown on remove from group
2020-06-12 08:49:09 +01:00
Hiroyasu Nishiyama 5e8e739f78 fix position of empty group with multi-line label 2020-06-12 16:07:46 +09:00
Hiroyasu Nishiyama a15adc43af merge code for checking menu activation 2020-06-12 09:54:11 +09:00
Hiroyasu Nishiyama 07556592c1 disable merge group menu for single item or non-group item 2020-06-12 08:42:15 +09:00
Hiroyasu Nishiyama 4f3cb3103e make treelist of subflow/config nodes initialy has empty placeholder 2020-06-11 22:18:31 +09:00
Hiroyasu Nishiyama 842cd1ecf0 fix empty placeholder not shown on remove from group 2020-06-11 09:57:43 +09:00
Nick O'Leary 81a4f42673
Merge pull request #2607 from node-red-hitachi/fix-stringify-error
prevent conversion of circular structure
2020-06-10 13:38:32 +01:00
Hiroyasu Nishiyama 152e695f4c prevent conversion of circular structure 2020-06-10 19:56:16 +09:00
Nick O'Leary 5a0c10b80e
Handle null status text in the editor
Fixes #2606
2020-06-10 10:58:44 +01: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 97fd34150f
EditableList/TreeList - defer adding elements to DOM
Whenever a DOM element is modified, it causes the browser to re-examine
the whole hierarchy around the element to see if anything needs to change.

This can cause a lot of extra work if an element is added to the DOM and
then a lot of updates are applied to the element.

It is much better to get the element as close to its final state as
possible *before* adding it to the DOM.
2020-06-10 00:42:11 +01:00
Nick O'Leary d28b8b5e8d
Some performance improvements for TreeList 2020-06-08 17:13:05 +01:00
Nick O'Leary f2b30d9a3f
Resize info/help sidebars whenever sidebar is opened 2020-06-08 13:17:06 +01:00
Nick O'Leary 0a614f2741
Add search defaults to outliner searchBox 2020-06-08 12:02:21 +01:00
Nick O'Leary a9fb50787b
Add search presets option to searchBox widget 2020-06-08 12:01:29 +01:00
Nick O'Leary ce7d7a8e01
Add RED.popover.menu as a new type of menu widget 2020-06-08 12:01:05 +01:00