0.8.54 • Published 3 years ago

@naetverkjs/lifecycle v0.8.54

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

lifecycle-plugin

The lifecycle plugin registers additional events that can be used while working with a component

Install

import { LifecyclePlugin } from '@naetverkjs/lifecycle';

editor.use(LifecyclePlugin);

New component methods

created(node) {
}

destroyed(node) {
}

onconnect(io) {   // input or output
  return false; // prevent connect
}

ondisconnect(connection) {
  return false; // prevent disconnect
}

connected(connection) {
}

disconnected(connection) {
}

Usage:

import { OnCreated, OnDestroyed, OnConnect, OnConnected, OnDisconnect, OnDisconnected } from 'rete-lifecycle-plugin';

class AddComponent extends Naetverk.Component implements OnCreated, ...
0.8.54

3 years ago

0.8.52

3 years ago

0.8.53

3 years ago

0.8.5

3 years ago

0.8.42

3 years ago

0.8.4

4 years ago

0.8.3

4 years ago

0.8.2

4 years ago