@eclipse-glsp/graph 1.1.0-next.28838fb.26 → 1.1.0-next.2ae7567.68
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/lib/default-types.d.ts.map +1 -1
- package/lib/default-types.js +7 -4
- package/lib/default-types.js.map +1 -1
- package/lib/galignable.d.ts +2 -2
- package/lib/galignable.d.ts.map +1 -1
- package/lib/galignable.js +2 -2
- package/lib/galignable.js.map +1 -1
- package/lib/{gbound-aware.d.ts → gbounds-aware.d.ts} +3 -3
- package/lib/gbounds-aware.d.ts.map +1 -0
- package/lib/{gbound-aware.js → gbounds-aware.js} +3 -3
- package/lib/gbounds-aware.js.map +1 -0
- package/lib/gcompartment.d.ts +3 -25
- package/lib/gcompartment.d.ts.map +1 -1
- package/lib/gcompartment.js +4 -12
- package/lib/gcompartment.js.map +1 -1
- package/lib/gedge-layoutable.d.ts +6 -6
- package/lib/gedge-layoutable.d.ts.map +1 -1
- package/lib/gedge-layoutable.js +3 -6
- package/lib/gedge-layoutable.js.map +1 -1
- package/lib/gedge.js +1 -1
- package/lib/gedge.js.map +1 -1
- package/lib/gforeign-object-element.d.ts +35 -0
- package/lib/gforeign-object-element.d.ts.map +1 -0
- package/lib/gforeign-object-element.js +44 -0
- package/lib/gforeign-object-element.js.map +1 -0
- package/lib/ggraph.d.ts +9 -3
- package/lib/ggraph.d.ts.map +1 -1
- package/lib/ggraph.js +13 -5
- package/lib/ggraph.js.map +1 -1
- package/lib/ghtml-root.d.ts +14 -0
- package/lib/ghtml-root.d.ts.map +1 -0
- package/lib/ghtml-root.js +42 -0
- package/lib/ghtml-root.js.map +1 -0
- package/lib/gissue-marker.d.ts +2 -1
- package/lib/gissue-marker.d.ts.map +1 -1
- package/lib/gissue-marker.js +3 -0
- package/lib/gissue-marker.js.map +1 -1
- package/lib/glabel.d.ts +3 -3
- package/lib/glabel.d.ts.map +1 -1
- package/lib/glabel.js.map +1 -1
- package/lib/glayoutable.d.ts +2 -2
- package/lib/glayoutable.d.ts.map +1 -1
- package/lib/glayoutable.js +2 -2
- package/lib/glayoutable.js.map +1 -1
- package/lib/{glayout-container.d.ts → glayouting.d.ts} +9 -9
- package/lib/glayouting.d.ts.map +1 -0
- package/lib/glayouting.js +17 -0
- package/lib/glayouting.js.map +1 -0
- package/lib/gmodel-element.d.ts +6 -18
- package/lib/gmodel-element.d.ts.map +1 -1
- package/lib/gmodel-element.js +3 -15
- package/lib/gmodel-element.js.map +1 -1
- package/lib/gmodel-util.d.ts +3 -3
- package/lib/gmodel-util.d.ts.map +1 -1
- package/lib/gmodel-util.js +1 -1
- package/lib/gnode.d.ts +7 -3
- package/lib/gnode.d.ts.map +1 -1
- package/lib/gnode.js +9 -4
- package/lib/gnode.js.map +1 -1
- package/lib/gshape-element.d.ts +1 -1
- package/lib/gshape-element.d.ts.map +1 -1
- package/lib/gshape-element.js +4 -4
- package/lib/gshape-element.js.map +1 -1
- package/lib/{gpre-shape-prerendered-element.d.ts → gshaped-prerendered-element.d.ts} +6 -6
- package/lib/gshaped-prerendered-element.d.ts.map +1 -0
- package/lib/{gpre-shape-prerendered-element.js → gshaped-prerendered-element.js} +9 -9
- package/lib/gshaped-prerendered-element.js.map +1 -0
- package/lib/index.d.ts +5 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -4
- package/lib/index.js.map +1 -1
- package/{src/gmodel-element.spec.ts → lib/index.spec.d.ts} +1 -3
- package/lib/index.spec.d.ts.map +1 -0
- package/lib/index.spec.js +27 -0
- package/lib/index.spec.js.map +1 -0
- package/package.json +22 -21
- package/src/default-types.ts +8 -4
- package/src/galignable.ts +2 -2
- package/src/{gbound-aware.ts → gbounds-aware.ts} +2 -2
- package/src/gcompartment.ts +5 -18
- package/src/gedge-layoutable.ts +5 -5
- package/src/gforeign-object-element.ts +44 -0
- package/src/ggraph.ts +16 -3
- package/src/ghtml-root.ts +38 -0
- package/src/gissue-marker.ts +4 -0
- package/src/glabel.ts +3 -3
- package/src/glayoutable.ts +2 -2
- package/src/{glayout-container.ts → glayouting.ts} +9 -9
- package/src/gmodel-element.ts +7 -21
- package/src/gmodel-util.ts +2 -2
- package/src/gnode.ts +11 -4
- package/src/gshape-element.ts +1 -1
- package/src/{gpre-shape-prerendered-element.ts → gshaped-prerendered-element.ts} +6 -6
- package/src/index.spec.ts +27 -0
- package/src/index.ts +5 -3
- package/lib/gbound-aware.d.ts.map +0 -1
- package/lib/gbound-aware.js.map +0 -1
- package/lib/glayout-container.d.ts.map +0 -1
- package/lib/glayout-container.js +0 -17
- package/lib/glayout-container.js.map +0 -1
- package/lib/gpre-shape-prerendered-element.d.ts.map +0 -1
- package/lib/gpre-shape-prerendered-element.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-types.d.ts","sourceRoot":"","sources":["../src/default-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"default-types.d.ts","sourceRoot":"","sources":["../src/default-types.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAM5D,wBAAgB,iBAAiB,IAAI,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAkBzE"}
|
package/lib/default-types.js
CHANGED
|
@@ -21,14 +21,17 @@ const gbutton_1 = require("./gbutton");
|
|
|
21
21
|
const gcompartment_1 = require("./gcompartment");
|
|
22
22
|
const gedge_1 = require("./gedge");
|
|
23
23
|
const ggraph_1 = require("./ggraph");
|
|
24
|
+
const ghtml_root_1 = require("./ghtml-root");
|
|
24
25
|
const gissue_marker_1 = require("./gissue-marker");
|
|
25
26
|
const glabel_1 = require("./glabel");
|
|
26
|
-
const gmodel_element_1 = require("./gmodel-element");
|
|
27
27
|
const gnode_1 = require("./gnode");
|
|
28
28
|
const gport_1 = require("./gport");
|
|
29
29
|
const gpre_rendered_element_1 = require("./gpre-rendered-element");
|
|
30
|
-
const
|
|
30
|
+
const gshaped_prerendered_element_1 = require("./gshaped-prerendered-element");
|
|
31
31
|
function getDefaultMapping() {
|
|
32
|
+
// The GModelSerializer (packages/server-node/src/features/model/gmodel-serializer.ts)
|
|
33
|
+
// has a built-in subtype handling.
|
|
34
|
+
// If the mapping for a subtype, e.g. for comp:header, is not found it will use the mapping for comp instead.
|
|
32
35
|
const mapping = new Map();
|
|
33
36
|
mapping.set(protocol_1.DefaultTypes.GRAPH, ggraph_1.GGraph);
|
|
34
37
|
mapping.set(protocol_1.DefaultTypes.NODE, gnode_1.GNode);
|
|
@@ -38,9 +41,9 @@ function getDefaultMapping() {
|
|
|
38
41
|
mapping.set(protocol_1.DefaultTypes.COMPARTMENT, gcompartment_1.GCompartment);
|
|
39
42
|
mapping.set(protocol_1.DefaultTypes.BUTTON, gbutton_1.GButton);
|
|
40
43
|
mapping.set(protocol_1.DefaultTypes.ISSUE_MARKER, gissue_marker_1.GIssueMarker);
|
|
41
|
-
mapping.set(protocol_1.DefaultTypes.HTML,
|
|
44
|
+
mapping.set(protocol_1.DefaultTypes.HTML, ghtml_root_1.GHtmlRoot);
|
|
42
45
|
mapping.set(protocol_1.DefaultTypes.PRE_RENDERED, gpre_rendered_element_1.GPreRenderedElement);
|
|
43
|
-
mapping.set(protocol_1.DefaultTypes.FOREIGN_OBJECT,
|
|
46
|
+
mapping.set(protocol_1.DefaultTypes.FOREIGN_OBJECT, gshaped_prerendered_element_1.GShapedPreRenderedElement);
|
|
44
47
|
return mapping;
|
|
45
48
|
}
|
|
46
49
|
exports.getDefaultMapping = getDefaultMapping;
|
package/lib/default-types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-types.js","sourceRoot":"","sources":["../src/default-types.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA+D;AAC/D,uCAAoC;AACpC,iDAA8C;AAC9C,mCAAgC;AAChC,qCAAkC;AAClC,mDAA+C;AAC/C,qCAAkC;
|
|
1
|
+
{"version":3,"file":"default-types.js","sourceRoot":"","sources":["../src/default-types.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA+D;AAC/D,uCAAoC;AACpC,iDAA8C;AAC9C,mCAAgC;AAChC,qCAAkC;AAClC,6CAAyC;AACzC,mDAA+C;AAC/C,qCAAkC;AAElC,mCAAgC;AAChC,mCAAgC;AAChC,mEAA8D;AAC9D,+EAA0E;AAE1E,SAAgB,iBAAiB;IAC7B,sFAAsF;IACtF,mCAAmC;IACnC,6GAA6G;IAC7G,MAAM,OAAO,GAAG,IAAI,GAAG,EAAoC,CAAC;IAC5D,OAAO,CAAC,GAAG,CAAC,uBAAK,CAAC,KAAK,EAAE,eAAM,CAAC,CAAC;IACjC,OAAO,CAAC,GAAG,CAAC,uBAAK,CAAC,IAAI,EAAE,aAAK,CAAC,CAAC;IAC/B,OAAO,CAAC,GAAG,CAAC,uBAAK,CAAC,IAAI,EAAE,aAAK,CAAC,CAAC;IAC/B,OAAO,CAAC,GAAG,CAAC,uBAAK,CAAC,IAAI,EAAE,aAAK,CAAC,CAAC;IAC/B,OAAO,CAAC,GAAG,CAAC,uBAAK,CAAC,KAAK,EAAE,eAAM,CAAC,CAAC;IACjC,OAAO,CAAC,GAAG,CAAC,uBAAK,CAAC,WAAW,EAAE,2BAAY,CAAC,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,uBAAK,CAAC,MAAM,EAAE,iBAAO,CAAC,CAAC;IACnC,OAAO,CAAC,GAAG,CAAC,uBAAK,CAAC,YAAY,EAAE,4BAAY,CAAC,CAAC;IAE9C,OAAO,CAAC,GAAG,CAAC,uBAAK,CAAC,IAAI,EAAE,sBAAS,CAAC,CAAC;IACnC,OAAO,CAAC,GAAG,CAAC,uBAAK,CAAC,YAAY,EAAE,2CAAmB,CAAC,CAAC;IACrD,OAAO,CAAC,GAAG,CAAC,uBAAK,CAAC,cAAc,EAAE,uDAAyB,CAAC,CAAC;IAC7D,OAAO,OAAO,CAAC;AACnB,CAAC;AAlBD,8CAkBC"}
|
package/lib/galignable.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022 STMicroelectronics and others.
|
|
2
|
+
* Copyright (c) 2022-2023 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -21,7 +21,7 @@ export interface GAlignable {
|
|
|
21
21
|
[GAlignable]: boolean;
|
|
22
22
|
}
|
|
23
23
|
export declare function isGAlignable<G extends GModelElement>(element: G): element is G & GAlignable;
|
|
24
|
-
export
|
|
24
|
+
export type GAlignableBuilder<G extends GModelElement = GModelElement> = GModelElementBuilder<G & GAlignable>;
|
|
25
25
|
export declare namespace GAlignableBuilder {
|
|
26
26
|
function alignment<B extends GAlignableBuilder>(builder: B, pointOrX: Point | number, y?: number): B;
|
|
27
27
|
}
|
package/lib/galignable.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"galignable.d.ts","sourceRoot":"","sources":["../src/galignable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEvE,eAAO,MAAM,UAAU,eAAuB,CAAC;AAE/C,MAAM,WAAW,UAAU;IACvB,SAAS,EAAE,KAAK,CAAC;IACjB,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,aAAa,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,IAAI,CAAC,GAAG,UAAU,CAE3F;AAED,
|
|
1
|
+
{"version":3,"file":"galignable.d.ts","sourceRoot":"","sources":["../src/galignable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEvE,eAAO,MAAM,UAAU,eAAuB,CAAC;AAE/C,MAAM,WAAW,UAAU;IACvB,SAAS,EAAE,KAAK,CAAC;IACjB,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,aAAa,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,IAAI,CAAC,GAAG,UAAU,CAE3F;AAED,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IAAI,oBAAoB,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC;AAE9G,yBAAiB,iBAAiB,CAAC;IAC/B,SAAgB,SAAS,CAAC,CAAC,SAAS,iBAAiB,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAQ1G;CACJ"}
|
package/lib/galignable.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GAlignableBuilder = exports.isGAlignable = exports.GAlignable = void 0;
|
|
4
4
|
exports.GAlignable = Symbol('GAlignable');
|
|
5
5
|
function isGAlignable(element) {
|
|
6
|
-
return
|
|
6
|
+
return exports.GAlignable in element && element[exports.GAlignable] === true;
|
|
7
7
|
}
|
|
8
8
|
exports.isGAlignable = isGAlignable;
|
|
9
9
|
var GAlignableBuilder;
|
|
@@ -19,5 +19,5 @@ var GAlignableBuilder;
|
|
|
19
19
|
return builder;
|
|
20
20
|
}
|
|
21
21
|
GAlignableBuilder.alignment = alignment;
|
|
22
|
-
})(GAlignableBuilder
|
|
22
|
+
})(GAlignableBuilder || (exports.GAlignableBuilder = GAlignableBuilder = {}));
|
|
23
23
|
//# sourceMappingURL=galignable.js.map
|
package/lib/galignable.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"galignable.js","sourceRoot":"","sources":["../src/galignable.ts"],"names":[],"mappings":";;;AAkBa,QAAA,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAO/C,SAAgB,YAAY,CAA0B,OAAU;IAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"galignable.js","sourceRoot":"","sources":["../src/galignable.ts"],"names":[],"mappings":";;;AAkBa,QAAA,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAO/C,SAAgB,YAAY,CAA0B,OAAU;IAC5D,OAAO,kBAAU,IAAI,OAAO,IAAI,OAAO,CAAC,kBAAU,CAAC,KAAK,IAAI,CAAC;AACjE,CAAC;AAFD,oCAEC;AAID,IAAiB,iBAAiB,CAUjC;AAVD,WAAiB,iBAAiB;IAC9B,SAAgB,SAAS,CAA8B,OAAU,EAAE,QAAwB,EAAE,CAAU;QACnG,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;YAC9B,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC;SAC9B;aAAM,IAAI,CAAC,EAAE;YACV,KAAK,CAAC,SAAS,GAAG,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;SACxC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IARe,2BAAS,YAQxB,CAAA;AACL,CAAC,EAVgB,iBAAiB,iCAAjB,iBAAiB,QAUjC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022 STMicroelectronics and others.
|
|
2
|
+
* Copyright (c) 2022-2023 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -22,9 +22,9 @@ export interface GBoundsAware {
|
|
|
22
22
|
[GBoundsAware]: boolean;
|
|
23
23
|
}
|
|
24
24
|
export declare function isGBoundsAware<G extends GModelElement>(element: G): element is G & GBoundsAware;
|
|
25
|
-
export
|
|
25
|
+
export type GBoundsAwareBuilder<G extends GModelElement = GModelElement> = GModelElementBuilder<G & GBoundsAware>;
|
|
26
26
|
export declare namespace GBoundsAwareBuilder {
|
|
27
27
|
function position<B extends GBoundsAwareBuilder>(builder: B, pointOrX: Point | number, y?: number): B;
|
|
28
28
|
function size<B extends GBoundsAwareBuilder>(builder: B, sizeOrWidth: Dimension | number, height?: number): B;
|
|
29
29
|
}
|
|
30
|
-
//# sourceMappingURL=
|
|
30
|
+
//# sourceMappingURL=gbounds-aware.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gbounds-aware.d.ts","sourceRoot":"","sources":["../src/gbounds-aware.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEvE,eAAO,MAAM,YAAY,eAAyB,CAAC;AAEnD,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,aAAa,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,IAAI,CAAC,GAAG,YAAY,CAE/F;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IAAI,oBAAoB,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC;AAElH,yBAAiB,mBAAmB,CAAC;IACjC,SAAgB,QAAQ,CAAC,CAAC,SAAS,mBAAmB,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAQ3G;IAED,SAAgB,IAAI,CAAC,CAAC,SAAS,mBAAmB,EAAE,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,SAAS,GAAG,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAQnH;CACJ"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GBoundsAwareBuilder = exports.isGBoundsAware = exports.GBoundsAware = void 0;
|
|
4
4
|
exports.GBoundsAware = Symbol('GBoundsAware');
|
|
5
5
|
function isGBoundsAware(element) {
|
|
6
|
-
return
|
|
6
|
+
return exports.GBoundsAware in element && element[exports.GBoundsAware] === true;
|
|
7
7
|
}
|
|
8
8
|
exports.isGBoundsAware = isGBoundsAware;
|
|
9
9
|
var GBoundsAwareBuilder;
|
|
@@ -30,5 +30,5 @@ var GBoundsAwareBuilder;
|
|
|
30
30
|
return builder;
|
|
31
31
|
}
|
|
32
32
|
GBoundsAwareBuilder.size = size;
|
|
33
|
-
})(GBoundsAwareBuilder
|
|
34
|
-
//# sourceMappingURL=
|
|
33
|
+
})(GBoundsAwareBuilder || (exports.GBoundsAwareBuilder = GBoundsAwareBuilder = {}));
|
|
34
|
+
//# sourceMappingURL=gbounds-aware.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gbounds-aware.js","sourceRoot":"","sources":["../src/gbounds-aware.ts"],"names":[],"mappings":";;;AAkBa,QAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAQnD,SAAgB,cAAc,CAA0B,OAAU;IAC9D,OAAO,oBAAY,IAAI,OAAO,IAAI,OAAO,CAAC,oBAAY,CAAC,KAAK,IAAI,CAAC;AACrE,CAAC;AAFD,wCAEC;AAID,IAAiB,mBAAmB,CAoBnC;AApBD,WAAiB,mBAAmB;IAChC,SAAgB,QAAQ,CAAgC,OAAU,EAAE,QAAwB,EAAE,CAAU;QACpG,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;YAC9B,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;SAC7B;aAAM,IAAI,CAAC,EAAE;YACV,KAAK,CAAC,QAAQ,GAAG,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;SACvC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IARe,4BAAQ,WAQvB,CAAA;IAED,SAAgB,IAAI,CAAgC,OAAU,EAAE,WAA+B,EAAE,MAAe;QAC5G,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;YACjC,KAAK,CAAC,IAAI,GAAG,WAAW,CAAC;SAC5B;aAAM,IAAI,MAAM,EAAE;YACf,KAAK,CAAC,IAAI,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;SAC/C;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IARe,wBAAI,OAQnB,CAAA;AACL,CAAC,EApBgB,mBAAmB,mCAAnB,mBAAmB,QAoBnC"}
|
package/lib/gcompartment.d.ts
CHANGED
|
@@ -1,34 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) 2022 STMicroelectronics and others.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made available under the
|
|
5
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
*
|
|
8
|
-
* This Source Code may also be made available under the following Secondary
|
|
9
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
* with the GNU Classpath Exception which is available at
|
|
12
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
*
|
|
14
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
|
-
import { Args, JsonPrimitive } from '@eclipse-glsp/protocol';
|
|
17
|
-
import { GLayoutContainer } from './glayout-container';
|
|
18
|
-
import { GLayoutable } from './glayoutable';
|
|
1
|
+
import { GLayouting } from './glayouting';
|
|
19
2
|
import { GShapeElement, GShapeElementBuilder } from './gshape-element';
|
|
20
|
-
export declare class GCompartment extends GShapeElement implements
|
|
3
|
+
export declare class GCompartment extends GShapeElement implements GLayouting {
|
|
21
4
|
static builder(): GCompartmentBuilder;
|
|
22
5
|
type: string;
|
|
23
6
|
layout?: string;
|
|
24
|
-
|
|
25
|
-
[GLayoutContainer]: boolean;
|
|
26
|
-
[GLayoutable]: boolean;
|
|
7
|
+
[GLayouting]: boolean;
|
|
27
8
|
}
|
|
28
9
|
export declare class GCompartmentBuilder<G extends GCompartment = GCompartment> extends GShapeElementBuilder<G> {
|
|
29
10
|
layout(layout?: string): this;
|
|
30
|
-
addLayoutOption(key: string, value: JsonPrimitive): this;
|
|
31
|
-
addLayoutOptions(layoutOptions: Args): this;
|
|
32
|
-
addLayoutOptions(layoutOptions: Map<string, JsonPrimitive>): this;
|
|
33
11
|
}
|
|
34
12
|
//# sourceMappingURL=gcompartment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gcompartment.d.ts","sourceRoot":"","sources":["../src/gcompartment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gcompartment.d.ts","sourceRoot":"","sources":["../src/gcompartment.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAqB,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEvE,qBAAa,YAAa,SAAQ,aAAc,YAAW,UAAU;IACjE,MAAM,CAAC,OAAO,IAAI,mBAAmB;IAI5B,IAAI,SAA4B;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,UAAU,CAAC,UAAQ;CACvB;AAED,qBAAa,mBAAmB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,CAAE,SAAQ,oBAAoB,CAAC,CAAC,CAAC;IACnG,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;CAGhC"}
|
package/lib/gcompartment.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a
|
|
2
|
+
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.GCompartmentBuilder = exports.GCompartment = void 0;
|
|
5
5
|
/********************************************************************************
|
|
@@ -18,31 +18,23 @@ exports.GCompartmentBuilder = exports.GCompartment = void 0;
|
|
|
18
18
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
19
19
|
********************************************************************************/
|
|
20
20
|
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
21
|
-
const
|
|
22
|
-
const glayoutable_1 = require("./glayoutable");
|
|
21
|
+
const glayouting_1 = require("./glayouting");
|
|
23
22
|
const gshape_element_1 = require("./gshape-element");
|
|
24
23
|
class GCompartment extends gshape_element_1.GShapeElement {
|
|
25
24
|
constructor() {
|
|
26
25
|
super(...arguments);
|
|
27
26
|
this.type = protocol_1.DefaultTypes.COMPARTMENT;
|
|
28
27
|
this[_a] = true;
|
|
29
|
-
this[_b] = true;
|
|
30
28
|
}
|
|
31
29
|
static builder() {
|
|
32
30
|
return new GCompartmentBuilder(GCompartment).type(protocol_1.DefaultTypes.COMPARTMENT);
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
33
|
exports.GCompartment = GCompartment;
|
|
36
|
-
_a =
|
|
34
|
+
_a = glayouting_1.GLayouting;
|
|
37
35
|
class GCompartmentBuilder extends gshape_element_1.GShapeElementBuilder {
|
|
38
36
|
layout(layout) {
|
|
39
|
-
return
|
|
40
|
-
}
|
|
41
|
-
addLayoutOption(key, value) {
|
|
42
|
-
return glayoutable_1.GLayoutableBuilder.addLayoutOption(this, key, value);
|
|
43
|
-
}
|
|
44
|
-
addLayoutOptions(layoutOptions) {
|
|
45
|
-
return glayoutable_1.GLayoutableBuilder.addLayoutOptions(this, layoutOptions);
|
|
37
|
+
return glayouting_1.GLayoutingBuilder.layout(this, layout);
|
|
46
38
|
}
|
|
47
39
|
}
|
|
48
40
|
exports.GCompartmentBuilder = GCompartmentBuilder;
|
package/lib/gcompartment.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gcompartment.js","sourceRoot":"","sources":["../src/gcompartment.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"gcompartment.js","sourceRoot":"","sources":["../src/gcompartment.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAsD;AACtD,6CAA6D;AAC7D,qDAAuE;AAEvE,MAAa,YAAa,SAAQ,8BAAa;IAA/C;;QAKa,SAAI,GAAG,uBAAY,CAAC,WAAW,CAAC;QAEzC,QAAY,GAAG,IAAI,CAAC;IACxB,CAAC;IAPG,MAAM,CAAC,OAAO;QACV,OAAO,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,uBAAY,CAAC,WAAW,CAAC,CAAC;IAChF,CAAC;CAKJ;AARD,oCAQC;KADI,uBAAU;AAGf,MAAa,mBAA2D,SAAQ,qCAAuB;IACnG,MAAM,CAAC,MAAe;QAClB,OAAO,8BAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;CACJ;AAJD,kDAIC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022 STMicroelectronics and others.
|
|
2
|
+
* Copyright (c) 2022-2023 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import { GModelElement, GModelElementBuilder } from './gmodel-element';
|
|
17
|
-
export
|
|
18
|
-
export
|
|
17
|
+
export type EdgeSide = 'left' | 'right' | 'top' | 'bottom' | 'on';
|
|
18
|
+
export interface GEdgePlacement {
|
|
19
19
|
rotate: boolean;
|
|
20
20
|
side: EdgeSide;
|
|
21
21
|
position: number;
|
|
@@ -23,12 +23,12 @@ export declare class EdgePlacement extends Object {
|
|
|
23
23
|
}
|
|
24
24
|
export declare const GEdgeLayoutable: unique symbol;
|
|
25
25
|
export interface GEdgeLayoutable {
|
|
26
|
-
edgePlacement?:
|
|
26
|
+
edgePlacement?: GEdgePlacement;
|
|
27
27
|
[GEdgeLayoutable]: boolean;
|
|
28
28
|
}
|
|
29
29
|
export declare function isGEdgeLayoutable<G extends GModelElement>(element: G): element is G & GEdgeLayoutable;
|
|
30
|
-
export
|
|
30
|
+
export type GEdgeLayoutableBuilder<G extends GModelElement = GModelElement> = GModelElementBuilder<G & GEdgeLayoutable>;
|
|
31
31
|
export declare namespace GEdgeLayoutableBuilder {
|
|
32
|
-
function edgePlacement<B extends GEdgeLayoutableBuilder>(builder: B, placement?:
|
|
32
|
+
function edgePlacement<B extends GEdgeLayoutableBuilder>(builder: B, placement?: GEdgePlacement): B;
|
|
33
33
|
}
|
|
34
34
|
//# sourceMappingURL=gedge-layoutable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gedge-layoutable.d.ts","sourceRoot":"","sources":["../src/gedge-layoutable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEvE,
|
|
1
|
+
{"version":3,"file":"gedge-layoutable.d.ts","sourceRoot":"","sources":["../src/gedge-layoutable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEvE,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAC;AAElE,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,eAA4B,CAAC;AAEzD,MAAM,WAAW,eAAe;IAC5B,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,aAAa,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,IAAI,CAAC,GAAG,eAAe,CAErG;AAED,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IAAI,oBAAoB,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC;AAExH,yBAAiB,sBAAsB,CAAC;IACpC,SAAgB,aAAa,CAAC,CAAC,SAAS,sBAAsB,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,cAAc,GAAG,CAAC,CAGzG;CACJ"}
|
package/lib/gedge-layoutable.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GEdgeLayoutableBuilder = exports.isGEdgeLayoutable = exports.GEdgeLayoutable =
|
|
4
|
-
class EdgePlacement extends Object {
|
|
5
|
-
}
|
|
6
|
-
exports.EdgePlacement = EdgePlacement;
|
|
3
|
+
exports.GEdgeLayoutableBuilder = exports.isGEdgeLayoutable = exports.GEdgeLayoutable = void 0;
|
|
7
4
|
exports.GEdgeLayoutable = Symbol('GEdgeLayoutable');
|
|
8
5
|
function isGEdgeLayoutable(element) {
|
|
9
|
-
return
|
|
6
|
+
return exports.GEdgeLayoutable in element && element[exports.GEdgeLayoutable] === true;
|
|
10
7
|
}
|
|
11
8
|
exports.isGEdgeLayoutable = isGEdgeLayoutable;
|
|
12
9
|
var GEdgeLayoutableBuilder;
|
|
@@ -16,5 +13,5 @@ var GEdgeLayoutableBuilder;
|
|
|
16
13
|
return builder;
|
|
17
14
|
}
|
|
18
15
|
GEdgeLayoutableBuilder.edgePlacement = edgePlacement;
|
|
19
|
-
})(GEdgeLayoutableBuilder
|
|
16
|
+
})(GEdgeLayoutableBuilder || (exports.GEdgeLayoutableBuilder = GEdgeLayoutableBuilder = {}));
|
|
20
17
|
//# sourceMappingURL=gedge-layoutable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gedge-layoutable.js","sourceRoot":"","sources":["../src/gedge-layoutable.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"gedge-layoutable.js","sourceRoot":"","sources":["../src/gedge-layoutable.ts"],"names":[],"mappings":";;;AA0Ba,QAAA,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAOzD,SAAgB,iBAAiB,CAA0B,OAAU;IACjE,OAAO,uBAAe,IAAI,OAAO,IAAI,OAAO,CAAC,uBAAe,CAAC,KAAK,IAAI,CAAC;AAC3E,CAAC;AAFD,8CAEC;AAID,IAAiB,sBAAsB,CAKtC;AALD,WAAiB,sBAAsB;IACnC,SAAgB,aAAa,CAAmC,OAAU,EAAE,SAA0B;QAClG,OAAO,CAAC,OAAO,CAAC,CAAC,aAAa,GAAG,SAAS,CAAC;QAC3C,OAAO,OAAO,CAAC;IACnB,CAAC;IAHe,oCAAa,gBAG5B,CAAA;AACL,CAAC,EALgB,sBAAsB,sCAAtB,sBAAsB,QAKtC"}
|
package/lib/gedge.js
CHANGED
|
@@ -34,7 +34,7 @@ exports.GEdge = GEdge;
|
|
|
34
34
|
return GEdge.is(object);
|
|
35
35
|
}
|
|
36
36
|
GEdge.is = is;
|
|
37
|
-
})(GEdge
|
|
37
|
+
})(GEdge || (exports.GEdge = GEdge = {}));
|
|
38
38
|
class GEdgeBuilder extends gmodel_element_1.GModelElementBuilder {
|
|
39
39
|
source(source) {
|
|
40
40
|
this.proxy.sourceId = source.id;
|
package/lib/gedge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gedge.js","sourceRoot":"","sources":["../src/gedge.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAmF;AACnF,qDAAuE;AAEvE,MAAa,KAAM,SAAQ,8BAAa;IAAxC;;QAKa,SAAI,GAAG,uBAAY,CAAC,IAAI,CAAC;QAClC,kBAAa,GAAY,EAAE,CAAC;IAIhC,CAAC;IATG,MAAM,CAAC,OAAO;QACV,OAAO,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,uBAAY,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;CAOJ;AAVD,sBAUC;AAED,WAAiB,KAAK;IAClB,SAAgB,EAAE,CAAC,MAAe;QAC9B,OAAO,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAFe,QAAE,KAEjB,CAAA;AACL,CAAC,EAJgB,KAAK,
|
|
1
|
+
{"version":3,"file":"gedge.js","sourceRoot":"","sources":["../src/gedge.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAmF;AACnF,qDAAuE;AAEvE,MAAa,KAAM,SAAQ,8BAAa;IAAxC;;QAKa,SAAI,GAAG,uBAAY,CAAC,IAAI,CAAC;QAClC,kBAAa,GAAY,EAAE,CAAC;IAIhC,CAAC;IATG,MAAM,CAAC,OAAO;QACV,OAAO,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,uBAAY,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;CAOJ;AAVD,sBAUC;AAED,WAAiB,KAAK;IAClB,SAAgB,EAAE,CAAC,MAAe;QAC9B,OAAO,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAFe,QAAE,KAEjB,CAAA;AACL,CAAC,EAJgB,KAAK,qBAAL,KAAK,QAIrB;AAED,MAAa,YAAsC,SAAQ,qCAAuB;IAC9E,MAAM,CAAC,MAAqB;QACxB,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,QAAQ,CAAC,QAAgB;QACrB,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,MAAqB;QACxB,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,QAAQ,CAAC,QAAgB;QACrB,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,UAAU,CAAC,UAAkB;QACzB,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,UAAU,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IAID,eAAe,CAAC,QAAwB,EAAE,CAAU;QAChD,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;YAC9B,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC3C;aAAM,IAAI,CAAC,EAAE;YACV,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;SACrD;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAID,gBAAgB,CAAC,GAAG,aAAkC;QAClD,IAAA,mBAAQ,EAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QAClD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA3CD,oCA2CC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
import { GShapePreRenderedElementBuilder, GShapedPreRenderedElement } from './gshaped-prerendered-element';
|
|
17
|
+
/**
|
|
18
|
+
* A `foreignObject` element to be transferred to the DOM within the SVG.
|
|
19
|
+
*
|
|
20
|
+
* This can be useful to to benefit from e.g. HTML rendering features, such as line wrapping, inside of
|
|
21
|
+
* the SVG diagram. Note that `foreignObject` is not supported by all browsers and SVG viewers may not
|
|
22
|
+
* support rendering the `foreignObject` content.
|
|
23
|
+
*
|
|
24
|
+
* If no dimensions are specified in the schema element, this element will obtain the dimension of
|
|
25
|
+
* its parent to fill the entire available room. Thus, this element requires specified bounds itself
|
|
26
|
+
* or bounds to be available for its parent.
|
|
27
|
+
*/
|
|
28
|
+
export declare class GForeignObjectElement extends GShapedPreRenderedElement {
|
|
29
|
+
static builder(): GForeignObjectElementBuilder;
|
|
30
|
+
namespace: string;
|
|
31
|
+
}
|
|
32
|
+
export declare class GForeignObjectElementBuilder<G extends GForeignObjectElement = GForeignObjectElement> extends GShapePreRenderedElementBuilder<G> {
|
|
33
|
+
namespace(namespace: string): this;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=gforeign-object-element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gforeign-object-element.d.ts","sourceRoot":"","sources":["../src/gforeign-object-element.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,+BAA+B,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE3G;;;;;;;;;;GAUG;AACH,qBAAa,qBAAsB,SAAQ,yBAAyB;WAChD,OAAO,IAAI,4BAA4B;IAGvD,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,4BAA4B,CACrC,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,CACzD,SAAQ,+BAA+B,CAAC,CAAC,CAAC;IACxC,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;CAIrC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
4
|
+
*
|
|
5
|
+
* This program and the accompanying materials are made available under the
|
|
6
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
*
|
|
9
|
+
* This Source Code may also be made available under the following Secondary
|
|
10
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
* with the GNU Classpath Exception which is available at
|
|
13
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
*
|
|
15
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
+
********************************************************************************/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.GForeignObjectElementBuilder = exports.GForeignObjectElement = void 0;
|
|
19
|
+
const gshaped_prerendered_element_1 = require("./gshaped-prerendered-element");
|
|
20
|
+
/**
|
|
21
|
+
* A `foreignObject` element to be transferred to the DOM within the SVG.
|
|
22
|
+
*
|
|
23
|
+
* This can be useful to to benefit from e.g. HTML rendering features, such as line wrapping, inside of
|
|
24
|
+
* the SVG diagram. Note that `foreignObject` is not supported by all browsers and SVG viewers may not
|
|
25
|
+
* support rendering the `foreignObject` content.
|
|
26
|
+
*
|
|
27
|
+
* If no dimensions are specified in the schema element, this element will obtain the dimension of
|
|
28
|
+
* its parent to fill the entire available room. Thus, this element requires specified bounds itself
|
|
29
|
+
* or bounds to be available for its parent.
|
|
30
|
+
*/
|
|
31
|
+
class GForeignObjectElement extends gshaped_prerendered_element_1.GShapedPreRenderedElement {
|
|
32
|
+
static builder() {
|
|
33
|
+
return new GForeignObjectElementBuilder(GForeignObjectElement);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GForeignObjectElement = GForeignObjectElement;
|
|
37
|
+
class GForeignObjectElementBuilder extends gshaped_prerendered_element_1.GShapePreRenderedElementBuilder {
|
|
38
|
+
namespace(namespace) {
|
|
39
|
+
this.proxy.namespace = namespace;
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.GForeignObjectElementBuilder = GForeignObjectElementBuilder;
|
|
44
|
+
//# sourceMappingURL=gforeign-object-element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gforeign-object-element.js","sourceRoot":"","sources":["../src/gforeign-object-element.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,+EAA2G;AAE3G;;;;;;;;;;GAUG;AACH,MAAa,qBAAsB,SAAQ,uDAAyB;IAChE,MAAM,CAAU,OAAO;QACnB,OAAO,IAAI,4BAA4B,CAAC,qBAAqB,CAAC,CAAC;IACnE,CAAC;CAEJ;AALD,sDAKC;AAED,MAAa,4BAEX,SAAQ,6DAAkC;IACxC,SAAS,CAAC,SAAiB;QACvB,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAPD,oEAOC"}
|
package/lib/ggraph.d.ts
CHANGED
|
@@ -19,20 +19,26 @@
|
|
|
19
19
|
* Parts of the implementation is derived from Sprotty's SModel API
|
|
20
20
|
* (https://github.com/eclipse/sprotty/blob/master/packages/sprotty/src/base/model/smodel.ts)
|
|
21
21
|
*/
|
|
22
|
-
import { Dimension, Point } from '@eclipse-glsp/protocol';
|
|
23
|
-
import { GBoundsAware } from './
|
|
22
|
+
import { Args, Dimension, JsonPrimitive, Point } from '@eclipse-glsp/protocol';
|
|
23
|
+
import { GBoundsAware } from './gbounds-aware';
|
|
24
|
+
import { GLayoutable } from './glayoutable';
|
|
24
25
|
import { GModelRoot, GModelRootBuilder } from './gmodel-element';
|
|
25
|
-
export declare class GGraph extends GModelRoot implements GBoundsAware {
|
|
26
|
+
export declare class GGraph extends GModelRoot implements GBoundsAware, GLayoutable {
|
|
26
27
|
static builder(): GGraphBuilder;
|
|
27
28
|
type: string;
|
|
28
29
|
position: Point;
|
|
29
30
|
size?: Dimension;
|
|
31
|
+
layoutOptions?: Args;
|
|
30
32
|
[GBoundsAware]: boolean;
|
|
33
|
+
[GLayoutable]: boolean;
|
|
31
34
|
}
|
|
32
35
|
export declare class GGraphBuilder<G extends GGraph = GGraph> extends GModelRootBuilder<G> {
|
|
33
36
|
position(x: number, y: number): this;
|
|
34
37
|
position(position: Point): this;
|
|
35
38
|
size(width: number, height: number): this;
|
|
36
39
|
size(size: Dimension): this;
|
|
40
|
+
addLayoutOption(key: string, value: JsonPrimitive): this;
|
|
41
|
+
addLayoutOptions(layoutOptions: Args): this;
|
|
42
|
+
addLayoutOptions(layoutOptions: Map<string, JsonPrimitive>): this;
|
|
37
43
|
}
|
|
38
44
|
//# sourceMappingURL=ggraph.d.ts.map
|
package/lib/ggraph.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ggraph.d.ts","sourceRoot":"","sources":["../src/ggraph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF;;;;;GAKG;AACH,OAAO,EAAyB,SAAS,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ggraph.d.ts","sourceRoot":"","sources":["../src/ggraph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF;;;;;GAKG;AACH,OAAO,EAAE,IAAI,EAAyB,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACtG,OAAO,EAAE,YAAY,EAAuB,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAsB,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEjE,qBAAa,MAAO,SAAQ,UAAW,YAAW,YAAY,EAAE,WAAW;WACvD,OAAO,IAAI,aAAa;IAI/B,IAAI,SAAe;IAC5B,QAAQ,EAAE,KAAK,CAAgB;IAC/B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB,CAAC,YAAY,CAAC,UAAQ;IACtB,CAAC,WAAW,CAAC,UAAQ;CACxB;AAED,qBAAa,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,iBAAiB,CAAC,CAAC,CAAC;IAC9E,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IACpC,QAAQ,CAAC,QAAQ,EAAE,KAAK,GAAG,IAAI;IAK/B,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IACzC,IAAI,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAK3B,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI;IAIxD,gBAAgB,CAAC,aAAa,EAAE,IAAI,GAAG,IAAI;IAC3C,gBAAgB,CAAC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,IAAI;CAIpE"}
|
package/lib/ggraph.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
2
|
+
var _a, _b;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.GGraphBuilder = exports.GGraph = void 0;
|
|
5
5
|
/********************************************************************************
|
|
@@ -24,7 +24,8 @@ exports.GGraphBuilder = exports.GGraph = void 0;
|
|
|
24
24
|
* (https://github.com/eclipse/sprotty/blob/master/packages/sprotty/src/base/model/smodel.ts)
|
|
25
25
|
*/
|
|
26
26
|
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
27
|
-
const
|
|
27
|
+
const gbounds_aware_1 = require("./gbounds-aware");
|
|
28
|
+
const glayoutable_1 = require("./glayoutable");
|
|
28
29
|
const gmodel_element_1 = require("./gmodel-element");
|
|
29
30
|
class GGraph extends gmodel_element_1.GModelRoot {
|
|
30
31
|
constructor() {
|
|
@@ -32,19 +33,26 @@ class GGraph extends gmodel_element_1.GModelRoot {
|
|
|
32
33
|
this.type = protocol_1.DefaultTypes.GRAPH;
|
|
33
34
|
this.position = protocol_1.Point.ORIGIN;
|
|
34
35
|
this[_a] = true;
|
|
36
|
+
this[_b] = true;
|
|
35
37
|
}
|
|
36
38
|
static builder() {
|
|
37
39
|
return new GGraphBuilder(GGraph);
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
exports.GGraph = GGraph;
|
|
41
|
-
_a =
|
|
43
|
+
_a = gbounds_aware_1.GBoundsAware, _b = glayoutable_1.GLayoutable;
|
|
42
44
|
class GGraphBuilder extends gmodel_element_1.GModelRootBuilder {
|
|
43
45
|
position(positionOrX, y) {
|
|
44
|
-
return
|
|
46
|
+
return gbounds_aware_1.GBoundsAwareBuilder.position(this, positionOrX, y);
|
|
45
47
|
}
|
|
46
48
|
size(sizeOrWidth, height) {
|
|
47
|
-
return
|
|
49
|
+
return gbounds_aware_1.GBoundsAwareBuilder.size(this, sizeOrWidth, height);
|
|
50
|
+
}
|
|
51
|
+
addLayoutOption(key, value) {
|
|
52
|
+
return glayoutable_1.GLayoutableBuilder.addLayoutOption(this, key, value);
|
|
53
|
+
}
|
|
54
|
+
addLayoutOptions(layoutOptions) {
|
|
55
|
+
return glayoutable_1.GLayoutableBuilder.addLayoutOptions(this, layoutOptions);
|
|
48
56
|
}
|
|
49
57
|
}
|
|
50
58
|
exports.GGraphBuilder = GGraphBuilder;
|
package/lib/ggraph.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ggraph.js","sourceRoot":"","sources":["../src/ggraph.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"ggraph.js","sourceRoot":"","sources":["../src/ggraph.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF;;;;;GAKG;AACH,qDAAsG;AACtG,mDAAoE;AACpE,+CAAgE;AAChE,qDAAiE;AAEjE,MAAa,MAAO,SAAQ,2BAAU;IAAtC;;QAKa,SAAI,GAAG,uBAAK,CAAC,KAAK,CAAC;QAC5B,aAAQ,GAAU,gBAAK,CAAC,MAAM,CAAC;QAG/B,QAAc,GAAG,IAAI,CAAC;QACtB,QAAa,GAAG,IAAI,CAAC;IACzB,CAAC;IAVG,MAAM,CAAU,OAAO;QACnB,OAAO,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CAQJ;AAXD,wBAWC;KAFI,4BAAY,OACZ,yBAAW;AAGhB,MAAa,aAAyC,SAAQ,kCAAoB;IAG9E,QAAQ,CAAC,WAA2B,EAAE,CAAU;QAC5C,OAAO,mCAAmB,CAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;IAC9D,CAAC;IAID,IAAI,CAAC,WAA+B,EAAE,MAAe;QACjD,OAAO,mCAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC;IAED,eAAe,CAAC,GAAW,EAAE,KAAoB;QAC7C,OAAO,gCAAkB,CAAC,eAAe,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;IAID,gBAAgB,CAAC,aAAgD;QAC7D,OAAO,gCAAkB,CAAC,gBAAgB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACpE,CAAC;CACJ;AAtBD,sCAsBC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GModelRoot, GModelRootBuilder } from './gmodel-element';
|
|
2
|
+
/**
|
|
3
|
+
* Root model element class for HTML content. Usually this is rendered with a `div` DOM element.
|
|
4
|
+
*/
|
|
5
|
+
export declare class GHtmlRoot extends GModelRoot {
|
|
6
|
+
static builder(): GHtmlRootBuilder;
|
|
7
|
+
type: string;
|
|
8
|
+
classes: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare class GHtmlRootBuilder<G extends GHtmlRoot = GHtmlRoot> extends GModelRootBuilder<G> {
|
|
11
|
+
addClasses(classes: string[]): this;
|
|
12
|
+
addClasses(...classes: string[]): this;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=ghtml-root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ghtml-root.d.ts","sourceRoot":"","sources":["../src/ghtml-root.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEjE;;GAEG;AACH,qBAAa,SAAU,SAAQ,UAAU;WACrB,OAAO,IAAI,gBAAgB;IAIlC,IAAI,SAAc;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAM;CAC1B;AAED,qBAAa,gBAAgB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,CAAE,SAAQ,iBAAiB,CAAC,CAAC,CAAC;IACvF,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI;IACnC,UAAU,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI;CAKzC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GHtmlRootBuilder = exports.GHtmlRoot = void 0;
|
|
4
|
+
/********************************************************************************
|
|
5
|
+
* Copyright (c) 2022 StMicroelectronics.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
9
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
10
|
+
*
|
|
11
|
+
* This Source Code may also be made available under the following Secondary
|
|
12
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
13
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
14
|
+
* with the GNU Classpath Exception which is available at
|
|
15
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
16
|
+
*
|
|
17
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
|
+
********************************************************************************/
|
|
19
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
20
|
+
const gmodel_element_1 = require("./gmodel-element");
|
|
21
|
+
/**
|
|
22
|
+
* Root model element class for HTML content. Usually this is rendered with a `div` DOM element.
|
|
23
|
+
*/
|
|
24
|
+
class GHtmlRoot extends gmodel_element_1.GModelRoot {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.type = protocol_1.DefaultTypes.HTML;
|
|
28
|
+
this.classes = [];
|
|
29
|
+
}
|
|
30
|
+
static builder() {
|
|
31
|
+
return new GHtmlRootBuilder(GHtmlRoot);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.GHtmlRoot = GHtmlRoot;
|
|
35
|
+
class GHtmlRootBuilder extends gmodel_element_1.GModelRootBuilder {
|
|
36
|
+
addClasses(...classes) {
|
|
37
|
+
(0, protocol_1.flatPush)(this.proxy.classes, classes);
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.GHtmlRootBuilder = GHtmlRootBuilder;
|
|
42
|
+
//# sourceMappingURL=ghtml-root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ghtml-root.js","sourceRoot":"","sources":["../src/ghtml-root.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAqF;AACrF,qDAAiE;AAEjE;;GAEG;AACH,MAAa,SAAU,SAAQ,2BAAU;IAAzC;;QAKa,SAAI,GAAG,uBAAK,CAAC,IAAI,CAAC;QAC3B,YAAO,GAAa,EAAE,CAAC;IAC3B,CAAC;IANG,MAAM,CAAU,OAAO;QACnB,OAAO,IAAI,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAC3C,CAAC;CAIJ;AAPD,8BAOC;AAED,MAAa,gBAAkD,SAAQ,kCAAoB;IAGvF,UAAU,CAAC,GAAG,OAA6B;QACvC,IAAA,mBAAQ,EAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACtC,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAPD,4CAOC"}
|
package/lib/gissue-marker.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { GShapeElement, GShapeElementBuilder } from './gshape-element';
|
|
2
|
-
export
|
|
2
|
+
export type GIssueSeverity = 'error' | 'warning' | 'info';
|
|
3
3
|
export declare class GIssue {
|
|
4
4
|
message: string;
|
|
5
5
|
severity: GIssueSeverity;
|
|
6
6
|
}
|
|
7
7
|
export declare class GIssueMarker extends GShapeElement {
|
|
8
|
+
static builder(): GIssueMarkerBuilder;
|
|
8
9
|
type: string;
|
|
9
10
|
issues: GIssue[];
|
|
10
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gissue-marker.d.ts","sourceRoot":"","sources":["../src/gissue-marker.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEvE,
|
|
1
|
+
{"version":3,"file":"gissue-marker.d.ts","sourceRoot":"","sources":["../src/gissue-marker.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEvE,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAE1D,qBAAa,MAAM;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,cAAc,CAAC;CAC5B;AAED,qBAAa,YAAa,SAAQ,aAAa;IAC3C,MAAM,CAAC,OAAO,IAAI,mBAAmB;IAI5B,IAAI,SAA6B;IAC1C,MAAM,EAAE,MAAM,EAAE,CAAM;CACzB;AAED,qBAAa,mBAAmB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,CAAE,SAAQ,oBAAoB,CAAC,CAAC,CAAC;IACnG,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI;IAUzD,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI;IACjC,SAAS,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI;CAKvC"}
|
package/lib/gissue-marker.js
CHANGED
|
@@ -27,6 +27,9 @@ class GIssueMarker extends gshape_element_1.GShapeElement {
|
|
|
27
27
|
this.type = protocol_1.DefaultTypes.ISSUE_MARKER;
|
|
28
28
|
this.issues = [];
|
|
29
29
|
}
|
|
30
|
+
static builder() {
|
|
31
|
+
return new GIssueMarkerBuilder(GIssueMarker).type(protocol_1.DefaultTypes.ISSUE_MARKER);
|
|
32
|
+
}
|
|
30
33
|
}
|
|
31
34
|
exports.GIssueMarker = GIssueMarker;
|
|
32
35
|
class GIssueMarkerBuilder extends gshape_element_1.GShapeElementBuilder {
|