Commit Graph
13 Commits
Author SHA1 Message Date
Austin Mroz a3f1e38dc8 Add js code to add documentation to nodes
Update autosize code to ensure it applies after node sizing is updated
to respect the added question mark
2024-08-04 03:57:27 -05:00
Austin Mroz 7a8415b560 Enable autosize by widget instead of namespace.
Also adds a padding option which, if supplied is summed with the
calculated width when auto-sizing is applied.
2024-07-10 22:05:50 -05:00
Austin Mroz 8b86f64908 Add js to auto-size nodes 2024-07-10 13:46:20 -05:00
Austin Mroz 92d0845f32 Fix js nodes not having filter applied.
The workaround for filter being overwritten by applying to late for
refreshComboInNodes was to apply the filter with beforeRegisterNodeDef,
but that doesn't apply no js nodes inverted the issue of nodes being
hidden. A setup call has been added to ensure js nodes have the default
filter applied
2024-07-03 00:02:46 -05:00
Jedrzej Kosinski de6a56f1db Made use of deprecated/experimental .js features, made settings menu names consistent 2024-07-02 01:10:08 -05:00
Austin Mroz 275e95147f Feature batch, refresh fix take 2
Added color option to set the color of the warning text

When the warning text is an empty string, the widget has 0 height,
effectively hiding it.

Added a warn type as well as options for including nodes of type
'deprecated' or 'experimental' in search anyways. If a widget does not
have an assigned type, it defaults to deprecated.

Actually fix nodes being hidden on refresh. The last attempt was merely
nothing ever being hidden because of a syntax error preventing teh
script from loading. This implementation takes the rather more heavy
handed approach of applying at beforeRegisterNodeDef and setting up the
global filter option at init. This makes it marginally more likely to
interfere with other plugins that attempt to modify app.graph.filter, so
added safety has been included elsewhere in the code.

Added example usage to to Inject PIA as to demonstrate how it might be
used for an experimental node.
2024-07-01 20:25:39 -05:00
Austin Mroz 05fa069814 Fix nodes being hidden on "Refresh" button 2024-06-25 02:02:24 -05:00
Austin Mroz b215cf1f8f Disable serialization of ADEWARN 2024-06-22 14:00:48 -05:00
Austin Mroz 8f01cedddb Implement JS to hide nodes from search
Implements a new ADEWARN widget which displays red warning text on a
node. Nodes which have an ADEWARN widget are hidden from the searchbox
2024-06-21 15:46:40 -05:00
kijai ff5fd3a9e4 Added changes made on top of this on the original main repo
This fixes the node scaling and combines everything to one node with format options.
2023-09-18 13:55:14 +03:00
kijai fc6c05323d Add webm node preview
added video preview to the node, with pingpong loop option
2023-09-16 19:46:49 +03:00
kijai 5a58d819c7 Update gif_preview.js
Fix node/widget removal
2023-09-15 21:40:15 +03:00
kijai e21cb5987b First working gif preview
javascript code is pretty much directly from mtb node's "save gif" widget extension code
2023-09-15 21:19:05 +03:00