I need to create a custom 'Node' component for my flowchart using plain-js (no Typescript). I tried creating a new Node component using CustomNode.tsx as a reference, without importing any interfaces. However, the Node component requires certain typescript wrappers (defined by interfaces) for event listeners, and dragging functionality - hence, deleting all the interfaces (in CustomNode.tsx) to use plain JS ultimately failed to work.
Is is possible to use plain JS to create a custom Node component without losing any core functionality (e.g. dragging, etc)? How can this be achieved?
I need to create a custom 'Node' component for my flowchart using plain-js (no Typescript). I tried creating a new Node component using CustomNode.tsx as a reference, without importing any interfaces. However, the Node component requires certain typescript wrappers (defined by interfaces) for event listeners, and dragging functionality - hence, deleting all the interfaces (in CustomNode.tsx) to use plain JS ultimately failed to work.
Is is possible to use plain JS to create a custom Node component without losing any core functionality (e.g. dragging, etc)? How can this be achieved?