1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/packages/node_modules/@node-red/editor-client
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
..
locales Merge branch 'dev' into groups 2020-03-30 23:42:52 +01:00
src Add more consistent events in the editor 2020-04-20 22:23:34 +01:00
templates Put <meta> inside <head> to keep IE11 happy 2019-09-30 10:59:20 +01:00
.npmignore Add pack-modules grunt task 2018-10-25 11:18:13 +01:00
index.js pull out editor-client and editor-api 2018-08-17 22:10:54 +01:00
LICENSE Add LICENSE to each package 2018-08-21 13:57:59 +01:00
package.json Bump dev branch to 1.1.0 2020-04-06 20:29:22 +01:00
README.md Add README files to each package 2018-08-21 13:43:11 +01:00

@node-red/editor-client

Node-RED editor resources module.

This provides all of the client-side resources of the Node-RED editor application.

Source

The main Node-RED modules are maintained as a monorepo on GitHub.