Add typescript
This commit is contained in:
@@ -45,12 +45,21 @@ const ICONS = {
|
||||
|
||||
class ScriptGraph extends LitElement {
|
||||
|
||||
static get properties() {
|
||||
return {
|
||||
tree: {},
|
||||
selected: {},
|
||||
};
|
||||
}
|
||||
/*
|
||||
* GOAL:
|
||||
* Tree Node Structure
|
||||
* {
|
||||
* icon: svg,
|
||||
* end: false
|
||||
* children: [[TreeNode],...]
|
||||
* click: callback,undefined
|
||||
* add: callback,undefined
|
||||
* }
|
||||
*/
|
||||
|
||||
@property() selected = undefined;
|
||||
@property() tree;
|
||||
|
||||
|
||||
_select(idx) {
|
||||
this.selected = idx;
|
||||
Reference in New Issue
Block a user