@nexiq/shared 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component.d.ts +99 -25
- package/dist/component.d.ts.map +1 -1
- package/dist/db/sqlite.d.ts +7 -1
- package/dist/db/sqlite.d.ts.map +1 -1
- package/dist/db/sqlite.js +24 -0
- package/dist/db/sqlite.js.map +1 -1
- package/dist/index.d.ts +128 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/nexiq/graph-view/graph-combo.d.ts +37 -0
- package/dist/nexiq/graph-view/graph-combo.d.ts.map +1 -0
- package/dist/nexiq/graph-view/graph-combo.js +103 -0
- package/dist/nexiq/graph-view/graph-combo.js.map +1 -0
- package/dist/nexiq/graph-view/graph-edge.d.ts +30 -0
- package/dist/nexiq/graph-view/graph-edge.d.ts.map +1 -0
- package/dist/nexiq/graph-view/graph-edge.js +78 -0
- package/dist/nexiq/graph-view/graph-edge.js.map +1 -0
- package/dist/nexiq/graph-view/graph-node-detail.d.ts +26 -0
- package/dist/nexiq/graph-view/graph-node-detail.d.ts.map +1 -0
- package/dist/nexiq/graph-view/graph-node-detail.js +62 -0
- package/dist/nexiq/graph-view/graph-node-detail.js.map +1 -0
- package/dist/nexiq/graph-view/graph-node.d.ts +35 -0
- package/dist/nexiq/graph-view/graph-node.d.ts.map +1 -0
- package/dist/nexiq/graph-view/graph-node.js +95 -0
- package/dist/nexiq/graph-view/graph-node.js.map +1 -0
- package/dist/nexiq/graph-view/graph-view.d.ts +39 -0
- package/dist/nexiq/graph-view/graph-view.d.ts.map +1 -0
- package/dist/nexiq/graph-view/graph-view.js +131 -0
- package/dist/nexiq/graph-view/graph-view.js.map +1 -0
- package/dist/nexiq/graph-view/item-type.d.ts +18 -0
- package/dist/nexiq/graph-view/item-type.d.ts.map +1 -0
- package/dist/nexiq/graph-view/item-type.js +20 -0
- package/dist/nexiq/graph-view/item-type.js.map +1 -0
- package/dist/nexiq/graph-view/loc.d.ts +16 -0
- package/dist/nexiq/graph-view/loc.d.ts.map +1 -0
- package/dist/nexiq/graph-view/loc.js +46 -0
- package/dist/nexiq/graph-view/loc.js.map +1 -0
- package/dist/nexiq/graph-view.d.ts +8 -0
- package/dist/nexiq/graph-view.d.ts.map +1 -0
- package/dist/nexiq/graph-view.js +9 -0
- package/dist/nexiq/graph-view.js.map +1 -0
- package/dist/types/backend.d.ts +17 -28
- package/dist/types/backend.d.ts.map +1 -1
- package/dist/types/config.d.ts +2 -29
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/function.d.ts.map +1 -1
- package/dist/types/index.d.ts +16 -14
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/primitive.d.ts +12 -0
- package/dist/types/primitive.d.ts.map +1 -1
- package/dist/utils.d.ts +1 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js.map +1 -1
- package/eslint.config.js +32 -0
- package/package.json +16 -6
- package/src/component.ts +159 -35
- package/src/db/sqlite.ts +30 -0
- package/src/index.ts +144 -3
- package/src/nexiq/graph-view/graph-combo.ts +141 -0
- package/src/nexiq/graph-view/graph-edge.ts +108 -0
- package/src/nexiq/graph-view/graph-node-detail.ts +88 -0
- package/src/nexiq/graph-view/graph-node.ts +131 -0
- package/src/nexiq/graph-view/graph-view.ts +162 -0
- package/src/nexiq/graph-view/item-type.ts +19 -0
- package/src/nexiq/graph-view/loc.ts +56 -0
- package/src/nexiq/graph-view.ts +9 -0
- package/src/schema/graph_view.fbs +74 -0
- package/src/types/backend.ts +11 -23
- package/src/types/config.ts +2 -33
- package/src/types/function.ts +2 -4
- package/src/types/index.ts +17 -16
- package/src/types/primitive.ts +7 -1
- package/src/utils.ts +4 -0
- package/tsconfig.json +13 -24
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
|
|
3
|
+
import * as flatbuffers from 'flatbuffers';
|
|
4
|
+
|
|
5
|
+
import { ItemType } from '../../nexiq/graph-view/item-type.js';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export class GraphCombo {
|
|
9
|
+
bb: flatbuffers.ByteBuffer|null = null;
|
|
10
|
+
bb_pos = 0;
|
|
11
|
+
__init(i:number, bb:flatbuffers.ByteBuffer):GraphCombo {
|
|
12
|
+
this.bb_pos = i;
|
|
13
|
+
this.bb = bb;
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static getRootAsGraphCombo(bb:flatbuffers.ByteBuffer, obj?:GraphCombo):GraphCombo {
|
|
18
|
+
return (obj || new GraphCombo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static getSizePrefixedRootAsGraphCombo(bb:flatbuffers.ByteBuffer, obj?:GraphCombo):GraphCombo {
|
|
22
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
23
|
+
return (obj || new GraphCombo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
id():string|null
|
|
27
|
+
id(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
28
|
+
id(optionalEncoding?:any):string|Uint8Array|null {
|
|
29
|
+
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
30
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
type():ItemType {
|
|
34
|
+
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
35
|
+
return offset ? this.bb!.readInt8(this.bb_pos + offset) : ItemType.Package;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
name():string|null
|
|
39
|
+
name(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
40
|
+
name(optionalEncoding?:any):string|Uint8Array|null {
|
|
41
|
+
const offset = this.bb!.__offset(this.bb_pos, 8);
|
|
42
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
displayName():string|null
|
|
46
|
+
displayName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
47
|
+
displayName(optionalEncoding?:any):string|Uint8Array|null {
|
|
48
|
+
const offset = this.bb!.__offset(this.bb_pos, 10);
|
|
49
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
parentId():string|null
|
|
53
|
+
parentId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
54
|
+
parentId(optionalEncoding?:any):string|Uint8Array|null {
|
|
55
|
+
const offset = this.bb!.__offset(this.bb_pos, 12);
|
|
56
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
color():string|null
|
|
60
|
+
color(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
61
|
+
color(optionalEncoding?:any):string|Uint8Array|null {
|
|
62
|
+
const offset = this.bb!.__offset(this.bb_pos, 14);
|
|
63
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
radius():number {
|
|
67
|
+
const offset = this.bb!.__offset(this.bb_pos, 16);
|
|
68
|
+
return offset ? this.bb!.readFloat32(this.bb_pos + offset) : 0.0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
collapsed():boolean {
|
|
72
|
+
const offset = this.bb!.__offset(this.bb_pos, 18);
|
|
73
|
+
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
gitStatus():string|null
|
|
77
|
+
gitStatus(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
78
|
+
gitStatus(optionalEncoding?:any):string|Uint8Array|null {
|
|
79
|
+
const offset = this.bb!.__offset(this.bb_pos, 20);
|
|
80
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
static startGraphCombo(builder:flatbuffers.Builder) {
|
|
84
|
+
builder.startObject(9);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
static addId(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset) {
|
|
88
|
+
builder.addFieldOffset(0, idOffset, 0);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
static addType(builder:flatbuffers.Builder, type:ItemType) {
|
|
92
|
+
builder.addFieldInt8(1, type, ItemType.Package);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static addName(builder:flatbuffers.Builder, nameOffset:flatbuffers.Offset) {
|
|
96
|
+
builder.addFieldOffset(2, nameOffset, 0);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
static addDisplayName(builder:flatbuffers.Builder, displayNameOffset:flatbuffers.Offset) {
|
|
100
|
+
builder.addFieldOffset(3, displayNameOffset, 0);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
static addParentId(builder:flatbuffers.Builder, parentIdOffset:flatbuffers.Offset) {
|
|
104
|
+
builder.addFieldOffset(4, parentIdOffset, 0);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
static addColor(builder:flatbuffers.Builder, colorOffset:flatbuffers.Offset) {
|
|
108
|
+
builder.addFieldOffset(5, colorOffset, 0);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
static addRadius(builder:flatbuffers.Builder, radius:number) {
|
|
112
|
+
builder.addFieldFloat32(6, radius, 0.0);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
static addCollapsed(builder:flatbuffers.Builder, collapsed:boolean) {
|
|
116
|
+
builder.addFieldInt8(7, +collapsed, +false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
static addGitStatus(builder:flatbuffers.Builder, gitStatusOffset:flatbuffers.Offset) {
|
|
120
|
+
builder.addFieldOffset(8, gitStatusOffset, 0);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
static endGraphCombo(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
124
|
+
const offset = builder.endObject();
|
|
125
|
+
return offset;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
static createGraphCombo(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset, type:ItemType, nameOffset:flatbuffers.Offset, displayNameOffset:flatbuffers.Offset, parentIdOffset:flatbuffers.Offset, colorOffset:flatbuffers.Offset, radius:number, collapsed:boolean, gitStatusOffset:flatbuffers.Offset):flatbuffers.Offset {
|
|
129
|
+
GraphCombo.startGraphCombo(builder);
|
|
130
|
+
GraphCombo.addId(builder, idOffset);
|
|
131
|
+
GraphCombo.addType(builder, type);
|
|
132
|
+
GraphCombo.addName(builder, nameOffset);
|
|
133
|
+
GraphCombo.addDisplayName(builder, displayNameOffset);
|
|
134
|
+
GraphCombo.addParentId(builder, parentIdOffset);
|
|
135
|
+
GraphCombo.addColor(builder, colorOffset);
|
|
136
|
+
GraphCombo.addRadius(builder, radius);
|
|
137
|
+
GraphCombo.addCollapsed(builder, collapsed);
|
|
138
|
+
GraphCombo.addGitStatus(builder, gitStatusOffset);
|
|
139
|
+
return GraphCombo.endGraphCombo(builder);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
|
|
3
|
+
import * as flatbuffers from 'flatbuffers';
|
|
4
|
+
|
|
5
|
+
export class GraphEdge {
|
|
6
|
+
bb: flatbuffers.ByteBuffer|null = null;
|
|
7
|
+
bb_pos = 0;
|
|
8
|
+
__init(i:number, bb:flatbuffers.ByteBuffer):GraphEdge {
|
|
9
|
+
this.bb_pos = i;
|
|
10
|
+
this.bb = bb;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static getRootAsGraphEdge(bb:flatbuffers.ByteBuffer, obj?:GraphEdge):GraphEdge {
|
|
15
|
+
return (obj || new GraphEdge()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static getSizePrefixedRootAsGraphEdge(bb:flatbuffers.ByteBuffer, obj?:GraphEdge):GraphEdge {
|
|
19
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
20
|
+
return (obj || new GraphEdge()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
id():string|null
|
|
24
|
+
id(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
25
|
+
id(optionalEncoding?:any):string|Uint8Array|null {
|
|
26
|
+
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
27
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
source():string|null
|
|
31
|
+
source(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
32
|
+
source(optionalEncoding?:any):string|Uint8Array|null {
|
|
33
|
+
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
34
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
target():string|null
|
|
38
|
+
target(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
39
|
+
target(optionalEncoding?:any):string|Uint8Array|null {
|
|
40
|
+
const offset = this.bb!.__offset(this.bb_pos, 8);
|
|
41
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
name():string|null
|
|
45
|
+
name(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
46
|
+
name(optionalEncoding?:any):string|Uint8Array|null {
|
|
47
|
+
const offset = this.bb!.__offset(this.bb_pos, 10);
|
|
48
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
kind():string|null
|
|
52
|
+
kind(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
53
|
+
kind(optionalEncoding?:any):string|Uint8Array|null {
|
|
54
|
+
const offset = this.bb!.__offset(this.bb_pos, 12);
|
|
55
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
category():string|null
|
|
59
|
+
category(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
60
|
+
category(optionalEncoding?:any):string|Uint8Array|null {
|
|
61
|
+
const offset = this.bb!.__offset(this.bb_pos, 14);
|
|
62
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static startGraphEdge(builder:flatbuffers.Builder) {
|
|
66
|
+
builder.startObject(6);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
static addId(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset) {
|
|
70
|
+
builder.addFieldOffset(0, idOffset, 0);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static addSource(builder:flatbuffers.Builder, sourceOffset:flatbuffers.Offset) {
|
|
74
|
+
builder.addFieldOffset(1, sourceOffset, 0);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
static addTarget(builder:flatbuffers.Builder, targetOffset:flatbuffers.Offset) {
|
|
78
|
+
builder.addFieldOffset(2, targetOffset, 0);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
static addName(builder:flatbuffers.Builder, nameOffset:flatbuffers.Offset) {
|
|
82
|
+
builder.addFieldOffset(3, nameOffset, 0);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
static addKind(builder:flatbuffers.Builder, kindOffset:flatbuffers.Offset) {
|
|
86
|
+
builder.addFieldOffset(4, kindOffset, 0);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
static addCategory(builder:flatbuffers.Builder, categoryOffset:flatbuffers.Offset) {
|
|
90
|
+
builder.addFieldOffset(5, categoryOffset, 0);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static endGraphEdge(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
94
|
+
const offset = builder.endObject();
|
|
95
|
+
return offset;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
static createGraphEdge(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset, sourceOffset:flatbuffers.Offset, targetOffset:flatbuffers.Offset, nameOffset:flatbuffers.Offset, kindOffset:flatbuffers.Offset, categoryOffset:flatbuffers.Offset):flatbuffers.Offset {
|
|
99
|
+
GraphEdge.startGraphEdge(builder);
|
|
100
|
+
GraphEdge.addId(builder, idOffset);
|
|
101
|
+
GraphEdge.addSource(builder, sourceOffset);
|
|
102
|
+
GraphEdge.addTarget(builder, targetOffset);
|
|
103
|
+
GraphEdge.addName(builder, nameOffset);
|
|
104
|
+
GraphEdge.addKind(builder, kindOffset);
|
|
105
|
+
GraphEdge.addCategory(builder, categoryOffset);
|
|
106
|
+
return GraphEdge.endGraphEdge(builder);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
|
|
3
|
+
import * as flatbuffers from 'flatbuffers';
|
|
4
|
+
|
|
5
|
+
import { Loc } from '../../nexiq/graph-view/loc.js';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export class GraphNodeDetail {
|
|
9
|
+
bb: flatbuffers.ByteBuffer|null = null;
|
|
10
|
+
bb_pos = 0;
|
|
11
|
+
__init(i:number, bb:flatbuffers.ByteBuffer):GraphNodeDetail {
|
|
12
|
+
this.bb_pos = i;
|
|
13
|
+
this.bb = bb;
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static getRootAsGraphNodeDetail(bb:flatbuffers.ByteBuffer, obj?:GraphNodeDetail):GraphNodeDetail {
|
|
18
|
+
return (obj || new GraphNodeDetail()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static getSizePrefixedRootAsGraphNodeDetail(bb:flatbuffers.ByteBuffer, obj?:GraphNodeDetail):GraphNodeDetail {
|
|
22
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
23
|
+
return (obj || new GraphNodeDetail()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
id():string|null
|
|
27
|
+
id(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
28
|
+
id(optionalEncoding?:any):string|Uint8Array|null {
|
|
29
|
+
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
30
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
fileName():string|null
|
|
34
|
+
fileName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
35
|
+
fileName(optionalEncoding?:any):string|Uint8Array|null {
|
|
36
|
+
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
37
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
projectPath():string|null
|
|
41
|
+
projectPath(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
42
|
+
projectPath(optionalEncoding?:any):string|Uint8Array|null {
|
|
43
|
+
const offset = this.bb!.__offset(this.bb_pos, 8);
|
|
44
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
loc(obj?:Loc):Loc|null {
|
|
48
|
+
const offset = this.bb!.__offset(this.bb_pos, 10);
|
|
49
|
+
return offset ? (obj || new Loc()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
dataJson():string|null
|
|
53
|
+
dataJson(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
54
|
+
dataJson(optionalEncoding?:any):string|Uint8Array|null {
|
|
55
|
+
const offset = this.bb!.__offset(this.bb_pos, 12);
|
|
56
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static startGraphNodeDetail(builder:flatbuffers.Builder) {
|
|
60
|
+
builder.startObject(5);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
static addId(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset) {
|
|
64
|
+
builder.addFieldOffset(0, idOffset, 0);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static addFileName(builder:flatbuffers.Builder, fileNameOffset:flatbuffers.Offset) {
|
|
68
|
+
builder.addFieldOffset(1, fileNameOffset, 0);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
static addProjectPath(builder:flatbuffers.Builder, projectPathOffset:flatbuffers.Offset) {
|
|
72
|
+
builder.addFieldOffset(2, projectPathOffset, 0);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
static addLoc(builder:flatbuffers.Builder, locOffset:flatbuffers.Offset) {
|
|
76
|
+
builder.addFieldOffset(3, locOffset, 0);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
static addDataJson(builder:flatbuffers.Builder, dataJsonOffset:flatbuffers.Offset) {
|
|
80
|
+
builder.addFieldOffset(4, dataJsonOffset, 0);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
static endGraphNodeDetail(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
84
|
+
const offset = builder.endObject();
|
|
85
|
+
return offset;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
|
|
3
|
+
import * as flatbuffers from 'flatbuffers';
|
|
4
|
+
|
|
5
|
+
import { ItemType } from '../../nexiq/graph-view/item-type.js';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export class GraphNode {
|
|
9
|
+
bb: flatbuffers.ByteBuffer|null = null;
|
|
10
|
+
bb_pos = 0;
|
|
11
|
+
__init(i:number, bb:flatbuffers.ByteBuffer):GraphNode {
|
|
12
|
+
this.bb_pos = i;
|
|
13
|
+
this.bb = bb;
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static getRootAsGraphNode(bb:flatbuffers.ByteBuffer, obj?:GraphNode):GraphNode {
|
|
18
|
+
return (obj || new GraphNode()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static getSizePrefixedRootAsGraphNode(bb:flatbuffers.ByteBuffer, obj?:GraphNode):GraphNode {
|
|
22
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
23
|
+
return (obj || new GraphNode()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
id():string|null
|
|
27
|
+
id(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
28
|
+
id(optionalEncoding?:any):string|Uint8Array|null {
|
|
29
|
+
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
30
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
type():ItemType {
|
|
34
|
+
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
35
|
+
return offset ? this.bb!.readInt8(this.bb_pos + offset) : ItemType.Package;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
name():string|null
|
|
39
|
+
name(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
40
|
+
name(optionalEncoding?:any):string|Uint8Array|null {
|
|
41
|
+
const offset = this.bb!.__offset(this.bb_pos, 8);
|
|
42
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
displayName():string|null
|
|
46
|
+
displayName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
47
|
+
displayName(optionalEncoding?:any):string|Uint8Array|null {
|
|
48
|
+
const offset = this.bb!.__offset(this.bb_pos, 10);
|
|
49
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
comboId():string|null
|
|
53
|
+
comboId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
54
|
+
comboId(optionalEncoding?:any):string|Uint8Array|null {
|
|
55
|
+
const offset = this.bb!.__offset(this.bb_pos, 12);
|
|
56
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
color():string|null
|
|
60
|
+
color(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
61
|
+
color(optionalEncoding?:any):string|Uint8Array|null {
|
|
62
|
+
const offset = this.bb!.__offset(this.bb_pos, 14);
|
|
63
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
radius():number {
|
|
67
|
+
const offset = this.bb!.__offset(this.bb_pos, 16);
|
|
68
|
+
return offset ? this.bb!.readFloat32(this.bb_pos + offset) : 0.0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
gitStatus():string|null
|
|
72
|
+
gitStatus(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
73
|
+
gitStatus(optionalEncoding?:any):string|Uint8Array|null {
|
|
74
|
+
const offset = this.bb!.__offset(this.bb_pos, 18);
|
|
75
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
static startGraphNode(builder:flatbuffers.Builder) {
|
|
79
|
+
builder.startObject(8);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
static addId(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset) {
|
|
83
|
+
builder.addFieldOffset(0, idOffset, 0);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
static addType(builder:flatbuffers.Builder, type:ItemType) {
|
|
87
|
+
builder.addFieldInt8(1, type, ItemType.Package);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
static addName(builder:flatbuffers.Builder, nameOffset:flatbuffers.Offset) {
|
|
91
|
+
builder.addFieldOffset(2, nameOffset, 0);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
static addDisplayName(builder:flatbuffers.Builder, displayNameOffset:flatbuffers.Offset) {
|
|
95
|
+
builder.addFieldOffset(3, displayNameOffset, 0);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
static addComboId(builder:flatbuffers.Builder, comboIdOffset:flatbuffers.Offset) {
|
|
99
|
+
builder.addFieldOffset(4, comboIdOffset, 0);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
static addColor(builder:flatbuffers.Builder, colorOffset:flatbuffers.Offset) {
|
|
103
|
+
builder.addFieldOffset(5, colorOffset, 0);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
static addRadius(builder:flatbuffers.Builder, radius:number) {
|
|
107
|
+
builder.addFieldFloat32(6, radius, 0.0);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
static addGitStatus(builder:flatbuffers.Builder, gitStatusOffset:flatbuffers.Offset) {
|
|
111
|
+
builder.addFieldOffset(7, gitStatusOffset, 0);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
static endGraphNode(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
115
|
+
const offset = builder.endObject();
|
|
116
|
+
return offset;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
static createGraphNode(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset, type:ItemType, nameOffset:flatbuffers.Offset, displayNameOffset:flatbuffers.Offset, comboIdOffset:flatbuffers.Offset, colorOffset:flatbuffers.Offset, radius:number, gitStatusOffset:flatbuffers.Offset):flatbuffers.Offset {
|
|
120
|
+
GraphNode.startGraphNode(builder);
|
|
121
|
+
GraphNode.addId(builder, idOffset);
|
|
122
|
+
GraphNode.addType(builder, type);
|
|
123
|
+
GraphNode.addName(builder, nameOffset);
|
|
124
|
+
GraphNode.addDisplayName(builder, displayNameOffset);
|
|
125
|
+
GraphNode.addComboId(builder, comboIdOffset);
|
|
126
|
+
GraphNode.addColor(builder, colorOffset);
|
|
127
|
+
GraphNode.addRadius(builder, radius);
|
|
128
|
+
GraphNode.addGitStatus(builder, gitStatusOffset);
|
|
129
|
+
return GraphNode.endGraphNode(builder);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
|
|
3
|
+
import * as flatbuffers from 'flatbuffers';
|
|
4
|
+
|
|
5
|
+
import { GraphCombo } from '../../nexiq/graph-view/graph-combo.js';
|
|
6
|
+
import { GraphEdge } from '../../nexiq/graph-view/graph-edge.js';
|
|
7
|
+
import { GraphNode } from '../../nexiq/graph-view/graph-node.js';
|
|
8
|
+
import { GraphNodeDetail } from '../../nexiq/graph-view/graph-node-detail.js';
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export class GraphView {
|
|
12
|
+
bb: flatbuffers.ByteBuffer|null = null;
|
|
13
|
+
bb_pos = 0;
|
|
14
|
+
__init(i:number, bb:flatbuffers.ByteBuffer):GraphView {
|
|
15
|
+
this.bb_pos = i;
|
|
16
|
+
this.bb = bb;
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static getRootAsGraphView(bb:flatbuffers.ByteBuffer, obj?:GraphView):GraphView {
|
|
21
|
+
return (obj || new GraphView()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
static getSizePrefixedRootAsGraphView(bb:flatbuffers.ByteBuffer, obj?:GraphView):GraphView {
|
|
25
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
26
|
+
return (obj || new GraphView()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static bufferHasIdentifier(bb:flatbuffers.ByteBuffer):boolean {
|
|
30
|
+
return bb.__has_identifier('NXGV');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
nodes(index: number, obj?:GraphNode):GraphNode|null {
|
|
34
|
+
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
35
|
+
return offset ? (obj || new GraphNode()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
nodesLength():number {
|
|
39
|
+
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
40
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
combos(index: number, obj?:GraphCombo):GraphCombo|null {
|
|
44
|
+
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
45
|
+
return offset ? (obj || new GraphCombo()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
combosLength():number {
|
|
49
|
+
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
50
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
edges(index: number, obj?:GraphEdge):GraphEdge|null {
|
|
54
|
+
const offset = this.bb!.__offset(this.bb_pos, 8);
|
|
55
|
+
return offset ? (obj || new GraphEdge()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
edgesLength():number {
|
|
59
|
+
const offset = this.bb!.__offset(this.bb_pos, 8);
|
|
60
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
details(index: number, obj?:GraphNodeDetail):GraphNodeDetail|null {
|
|
64
|
+
const offset = this.bb!.__offset(this.bb_pos, 10);
|
|
65
|
+
return offset ? (obj || new GraphNodeDetail()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
detailsLength():number {
|
|
69
|
+
const offset = this.bb!.__offset(this.bb_pos, 10);
|
|
70
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static startGraphView(builder:flatbuffers.Builder) {
|
|
74
|
+
builder.startObject(4);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
static addNodes(builder:flatbuffers.Builder, nodesOffset:flatbuffers.Offset) {
|
|
78
|
+
builder.addFieldOffset(0, nodesOffset, 0);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
static createNodesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
|
82
|
+
builder.startVector(4, data.length, 4);
|
|
83
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
84
|
+
builder.addOffset(data[i]!);
|
|
85
|
+
}
|
|
86
|
+
return builder.endVector();
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
static startNodesVector(builder:flatbuffers.Builder, numElems:number) {
|
|
90
|
+
builder.startVector(4, numElems, 4);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static addCombos(builder:flatbuffers.Builder, combosOffset:flatbuffers.Offset) {
|
|
94
|
+
builder.addFieldOffset(1, combosOffset, 0);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
static createCombosVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
|
98
|
+
builder.startVector(4, data.length, 4);
|
|
99
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
100
|
+
builder.addOffset(data[i]!);
|
|
101
|
+
}
|
|
102
|
+
return builder.endVector();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
static startCombosVector(builder:flatbuffers.Builder, numElems:number) {
|
|
106
|
+
builder.startVector(4, numElems, 4);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
static addEdges(builder:flatbuffers.Builder, edgesOffset:flatbuffers.Offset) {
|
|
110
|
+
builder.addFieldOffset(2, edgesOffset, 0);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
static createEdgesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
|
114
|
+
builder.startVector(4, data.length, 4);
|
|
115
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
116
|
+
builder.addOffset(data[i]!);
|
|
117
|
+
}
|
|
118
|
+
return builder.endVector();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
static startEdgesVector(builder:flatbuffers.Builder, numElems:number) {
|
|
122
|
+
builder.startVector(4, numElems, 4);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
static addDetails(builder:flatbuffers.Builder, detailsOffset:flatbuffers.Offset) {
|
|
126
|
+
builder.addFieldOffset(3, detailsOffset, 0);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
static createDetailsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
|
130
|
+
builder.startVector(4, data.length, 4);
|
|
131
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
132
|
+
builder.addOffset(data[i]!);
|
|
133
|
+
}
|
|
134
|
+
return builder.endVector();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
static startDetailsVector(builder:flatbuffers.Builder, numElems:number) {
|
|
138
|
+
builder.startVector(4, numElems, 4);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
static endGraphView(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
142
|
+
const offset = builder.endObject();
|
|
143
|
+
return offset;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
static finishGraphViewBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
|
|
147
|
+
builder.finish(offset, 'NXGV');
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
static finishSizePrefixedGraphViewBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
|
|
151
|
+
builder.finish(offset, 'NXGV', true);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
static createGraphView(builder:flatbuffers.Builder, nodesOffset:flatbuffers.Offset, combosOffset:flatbuffers.Offset, edgesOffset:flatbuffers.Offset, detailsOffset:flatbuffers.Offset):flatbuffers.Offset {
|
|
155
|
+
GraphView.startGraphView(builder);
|
|
156
|
+
GraphView.addNodes(builder, nodesOffset);
|
|
157
|
+
GraphView.addCombos(builder, combosOffset);
|
|
158
|
+
GraphView.addEdges(builder, edgesOffset);
|
|
159
|
+
GraphView.addDetails(builder, detailsOffset);
|
|
160
|
+
return GraphView.endGraphView(builder);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
|
|
3
|
+
export enum ItemType {
|
|
4
|
+
Package = 0,
|
|
5
|
+
Scope = 1,
|
|
6
|
+
Component = 2,
|
|
7
|
+
Hook = 3,
|
|
8
|
+
State = 4,
|
|
9
|
+
Memo = 5,
|
|
10
|
+
Callback = 6,
|
|
11
|
+
Ref = 7,
|
|
12
|
+
Effect = 8,
|
|
13
|
+
Prop = 9,
|
|
14
|
+
Render = 10,
|
|
15
|
+
RenderGroup = 11,
|
|
16
|
+
SourceGroup = 12,
|
|
17
|
+
PathGroup = 13,
|
|
18
|
+
Variable = 14
|
|
19
|
+
}
|