gojs
Version:
Interactive diagrams, charts, and graphs, such as trees, flowcharts, orgcharts, UML, BPMN, or business diagrams
29 lines (28 loc) • 1.31 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
define(["require", "exports", "../../../release/go"], function (require, exports, go) {
"use strict";
var FloorplanPalette = (function (_super) {
__extends(FloorplanPalette, _super);
function FloorplanPalette(div, floorplan, nodeDataArray) {
var _this = _super.call(this, div) || this;
var $ = go.GraphObject.make;
_this.model = $(go.GraphLinksModel, { nodeDataArray: nodeDataArray });
_this.contentAlignment = go.Spot.Center;
_this.nodeTemplateMap = floorplan.nodeTemplateMap;
_this.toolManager.contextMenuTool.isEnabled = false;
floorplan.palettes.push(_this);
return _this;
}
return FloorplanPalette;
}(go.Palette));
return FloorplanPalette;
});