There are small typos in:
- CONTRIBUTING.md
- guides/README.md
- src/nodes/midi.js
Fixes:
- Should read `syntax` rather than `sintax`.
- Should read `outputs` rather than `otputs`.
- Should read `dragging` rather than `draging`.
- Should read `build` rather than `bulid`.
- Should read `assume` rather than `asume`.
- right click node menu actions will be applied to all selected nodes
(mode, resize, collapse, colors, shapes, clone, remove)
- can add to selection with both cntrl and shift, and dragging new rects
with cntr+shift
- TODO apply to alt-drag clone, properties(?), ..
- nodes_executing, nodes_actioning initial set
- slot_types_default (in and out) helps in having defaults nodes for
specific slot_types
- slot_types_default are filled as an example in src/nodes/others.js
- middle_click_slot_add_default_node allows auto-placing defaults nodes
next to a slot
- release_link_on_empty_shows_menu conditions having
realease-in-empty-space functionality
- keypress for slot name
- do include new js/defaults.js in editor and leave the Lib with new
functionalities off by default
- new html with mobile editor (working on)
- separate defaults
- optional thirdy-party html console
- few new nodes
- onAction, onExecute, onTrigger has the third parameters for additional
options
- onAction has to refresh the getInputData values for future behaviours
- prefer 0 or "*" for slot type instead of empty string ""
- allow connecting from IN to OUT (drag an IN slot to create a link to
OUT slots)
- dim (opacity) uncompatible slots while creating a link
- filter in the searchbox for types (slotsIn, slotsOut), autofilter when
chaining
- drag-shift a slot to search and connect a new node
- code widget re-enabled
- properties panel improvements
- paste will use mouse coordinates
:: properties and methods ::
- additional shape GRID_SHAPE intended for slot arrays
- NODE_MODES_COLORS array of colors based on the node modes
node_box_coloured_by_mode: false, // [true!] nodebox colored on node
mode, visual feedback
node_box_coloured_when_on: false, // [true!] this make the nodes box
(top left circle) coloured when triggered (execute/action), visual
feedback
dialog_close_on_mouse_leave: true, // better true if not touch device
dialog_close_on_mouse_leave_delay: 500,
shift_click_do_break_link_from: false, // [false!] prefer false if
results too easy to break links - TODO custom keys
click_do_break_link_to: false, // [false!] prefer false, way too easy to
break links
search_hide_on_mouse_leave: true, // better true if not touch device
search_filter_enabled: true, // [true!] enable filtering slots type in
the search widget, !requires auto_load_slot_types
search_show_all_on_open: true, // [true!] opens the results list when
opening the search widget
auto_load_slot_types: true, // [if want false, use true, run, get vars
values to be statically set, than disable] nodes types and nodeclass
association with node types need to be calculated, if dont want this,
calculate once and set registered_slot_[in/out]_types and
slot_types_[in/out]
- this will create (without adding it) a node for each class when they
are registered. This allows for slots checking. Could raise errors in
case some node miss something: somehow nice.
alt_drag_do_clone_nodes: false, // [true!] very handy, ALT click to
clone and drag the new node
do_add_triggers_slots: false, // [true!] will create and connect event
slots when using action/events connections, !WILL CHANGE node mode when
using onTrigger (enable mode colors), onExecuted does not need this
allowMultiOutputForEvents: true, // [false!] being events, it is
strongly reccomended to use them sequentually, one by one
- find(Input/Output)Slot functions can return the object instead
- connectByType - allow connecting a node slot to a target node using an
auto-slot mode that looks for the right types
- onNodeCreated - new callback
- addOnTriggerInput, addOnExecutedOutput - creates action slots
(triggerIn, executedOut) when needed (changing mode, dragging events
onto the node)
- doExecute and doAction - wraps the onExecute and onAction node
functions with helpers and checks
- onAfterExecuteNode - new callback
- onBeforeConnectInput - new callback, can change slot while connecting
(or create a new one)
- onConnectOutput - new callback, similar to onConnectInput
- onNodeInputAdd, onNodeOutputAdd - new callbacks
- isOverNodeOutput - similar to isOverNodeInput
- helpers findInput, findOutput, findInputSlotFree, findOutputSlotFree,
findSlotByType
- canvas default_connection_color_byType[Off] allows custom colors type
based
- ESC will close panels
- showConnectionMenu will show the "Add menu" while dragging, to connect
after creation
added LiteGraph.pointerevents_method with default "pointer"
replaced EventListeners with pointerevents_method+"down", "up", etc..
replaced e.localX (and Y) for e.clientX (Y)
fixed e.clientX is not writable
TODO: finish checks and clean
version with console.log("pointerevents..) enabled
alpha working for mobile, touch enabled