UNPKG

@eclipse-glsp/graph

Version:

The typescript implementation of the GLSP graphical model (GModel)

37 lines 1.48 kB
"use strict"; var _a, _b, _c; Object.defineProperty(exports, "__esModule", { value: true }); exports.GShapeElementBuilder = exports.GShapeElement = void 0; const gbounds_aware_1 = require("./gbounds-aware"); const glayoutable_1 = require("./glayoutable"); const gmodel_element_1 = require("./gmodel-element"); const gresizable_1 = require("./gresizable"); class GShapeElement extends gmodel_element_1.GModelElement { constructor() { super(...arguments); this[_a] = true; this[_b] = true; this[_c] = true; } } exports.GShapeElement = GShapeElement; _a = gbounds_aware_1.GBoundsAware, _b = glayoutable_1.GLayoutable, _c = gresizable_1.GResizable; class GShapeElementBuilder extends gmodel_element_1.GModelElementBuilder { position(pointOrX, y) { return gbounds_aware_1.GBoundsAwareBuilder.position(this, pointOrX, y); } size(sizeOrWidth, height) { return gbounds_aware_1.GBoundsAwareBuilder.size(this, sizeOrWidth, height); } addLayoutOption(key, value) { return glayoutable_1.GLayoutableBuilder.addLayoutOption(this, key, value); } addLayoutOptions(layoutOptions) { return glayoutable_1.GLayoutableBuilder.addLayoutOptions(this, layoutOptions); } resizeLocations(resizeLocations) { return gresizable_1.GResizableBuilder.resizeLocations(this, resizeLocations); } } exports.GShapeElementBuilder = GShapeElementBuilder; //# sourceMappingURL=gshape-element.js.map