New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eclipse-glsp-examples/workflow-glsp

Package Overview
Dependencies
Maintainers
5
Versions
293
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eclipse-glsp-examples/workflow-glsp - npm Package Compare versions

Comparing version 0.9.0-next.954f2d39 to 0.9.0-next.9bc904f3

8

lib/di.config.d.ts

@@ -16,7 +16,7 @@ /********************************************************************************

********************************************************************************/
import "../css/diagram.css";
import "balloon-css/balloon.min.css";
import "sprotty/css/edit-label.css";
import { Container } from "inversify";
import '../css/diagram.css';
import 'balloon-css/balloon.min.css';
import 'sprotty/css/edit-label.css';
import { Container } from 'inversify';
export default function createContainer(widgetId: string): Container;
//# sourceMappingURL=di.config.d.ts.map

@@ -34,3 +34,3 @@ "use strict";

var context = { bind: bind, unbind: unbind, isBound: isBound, rebind: rebind };
client_1.configureModelElement(context, 'graph', client_1.GLSPGraph, client_1.SGraphView);
client_1.configureDefaultModelElements(context);
client_1.configureModelElement(context, 'task:automated', model_1.TaskNode, workflow_views_1.TaskNodeView);

@@ -42,8 +42,3 @@ client_1.configureModelElement(context, 'task:manual', model_1.TaskNode, workflow_views_1.TaskNodeView);

client_1.configureModelElement(context, 'label:icon', client_1.SLabel, client_1.SLabelView);
client_1.configureModelElement(context, 'html', client_1.HtmlRoot, client_1.HtmlRootView);
client_1.configureModelElement(context, 'pre-rendered', client_1.PreRenderedElement, client_1.PreRenderedView);
client_1.configureModelElement(context, 'button:expand', client_1.SButton, client_1.ExpandButtonView);
client_1.configureModelElement(context, 'routing-point', client_1.SRoutingHandle, client_1.SRoutingHandleView);
client_1.configureModelElement(context, 'volatile-routing-point', client_1.SRoutingHandle, client_1.SRoutingHandleView);
client_1.configureModelElement(context, 'edge', client_1.SEdge, workflow_views_1.WorkflowEdgeView);
client_1.configureModelElement(context, client_1.DefaultTypes.EDGE, client_1.SEdge, workflow_views_1.WorkflowEdgeView);
client_1.configureModelElement(context, 'edge:weighted', model_1.WeightedEdge, workflow_views_1.WeightedEdgeView);

@@ -58,6 +53,6 @@ client_1.configureModelElement(context, 'icon', model_1.Icon, workflow_views_1.IconView);

var container = new inversify_1.Container();
container.load(client_1.validationModule, client_1.defaultModule, client_1.glspMouseToolModule, client_1.defaultGLSPModule, client_1.glspSelectModule, client_1.boundsModule, client_1.viewportModule, client_1.toolsModule, client_1.glspHoverModule, client_1.fadeModule, client_1.exportModule, client_1.expandModule, client_1.openModule, client_1.buttonModule, client_1.modelSourceModule, client_1.labelEditUiModule, client_1.glspEditLabelModule, workflowDiagramModule, client_1.toolFeedbackModule, client_1.modelHintsModule, client_1.glspContextMenuModule, client_1.glspServerCopyPasteModule, client_1.modelSourceWatcherModule, client_1.glspCommandPaletteModule, client_1.paletteModule, client_1.routingModule, client_1.glspDecorationModule, client_1.edgeLayoutModule, client_1.zorderModule, client_1.layoutCommandsModule, di_config_1.directTaskEditor, client_1.navigationModule, client_1.markerNavigatorModule);
container.load(client_1.defaultModule, client_1.defaultGLSPModule, client_1.glspMouseToolModule, client_1.validationModule, client_1.glspSelectModule, client_1.boundsModule, client_1.glspViewportModule, client_1.toolsModule, client_1.glspHoverModule, client_1.fadeModule, client_1.exportModule, client_1.expandModule, client_1.openModule, client_1.buttonModule, client_1.modelSourceModule, client_1.labelEditUiModule, client_1.glspEditLabelModule, workflowDiagramModule, client_1.toolFeedbackModule, client_1.modelHintsModule, client_1.glspContextMenuModule, client_1.glspServerCopyPasteModule, client_1.modelSourceWatcherModule, client_1.glspCommandPaletteModule, client_1.paletteModule, client_1.routingModule, client_1.glspDecorationModule, client_1.edgeLayoutModule, client_1.zorderModule, client_1.layoutCommandsModule, di_config_1.directTaskEditor, client_1.navigationModule, client_1.markerNavigatorModule);
client_1.overrideViewerOptions(container, {
baseDiv: widgetId,
hiddenDiv: widgetId + "_hidden"
hiddenDiv: widgetId + '_hidden'
});

@@ -64,0 +59,0 @@ return container;

@@ -16,4 +16,4 @@ /********************************************************************************

********************************************************************************/
import { ContainerModule } from "inversify";
import { ContainerModule } from 'inversify';
export declare const directTaskEditor: ContainerModule;
//# sourceMappingURL=di.config.d.ts.map

@@ -16,5 +16,5 @@ /********************************************************************************

********************************************************************************/
import { AbstractUIExtension, Action, AutoCompleteWidget, EditorContextService, GLSPActionDispatcher, ILogger, LabeledAction, SModelRoot, ValidationStatus, ViewerOptions } from "@eclipse-glsp/client";
import { DOMHelper } from "sprotty/lib/base/views/dom-helper";
import { TaskNode } from "../model";
import { AbstractUIExtension, Action, AutoCompleteWidget, EditorContextService, GLSPActionDispatcher, ILogger, LabeledAction, SModelRoot, ValidationStatus, ViewerOptions } from '@eclipse-glsp/client';
import { DOMHelper } from 'sprotty/lib/base/views/dom-helper';
import { TaskNode } from '../model';
export declare class ApplyTaskEditOperation implements Action {

@@ -21,0 +21,0 @@ readonly taskId: string;

@@ -125,4 +125,8 @@ "use strict";

TaskEditor_1 = TaskEditor;
TaskEditor.prototype.id = function () { return TaskEditor_1.ID; };
TaskEditor.prototype.containerClass = function () { return 'command-palette'; };
TaskEditor.prototype.id = function () {
return TaskEditor_1.ID;
};
TaskEditor.prototype.containerClass = function () {
return 'command-palette';
};
TaskEditor.prototype.initializeContents = function (containerElement) {

@@ -129,0 +133,0 @@ var _this = this;

@@ -16,7 +16,7 @@ /********************************************************************************

********************************************************************************/
import createWorkflowDiagramContainer from "./di.config";
export * from "./model";
export * from "./workflow-views";
export * from "./direct-task-editing/direct-task-editor";
import createWorkflowDiagramContainer from './di.config';
export * from './model';
export * from './workflow-views';
export * from './direct-task-editing/direct-task-editor';
export { createWorkflowDiagramContainer };
//# sourceMappingURL=index.d.ts.map

@@ -16,3 +16,3 @@ /********************************************************************************

********************************************************************************/
import { DiamondNode, LayoutContainer, Nameable, RectangularNode, SEdge, SModelElement, SShapeElement, WithEditableLabel } from "@eclipse-glsp/client";
import { DiamondNode, EditableLabel, LayoutContainer, Nameable, RectangularNode, SChildElement, SEdge, SModelElement, SShapeElement, WithEditableLabel } from '@eclipse-glsp/client';
export declare class TaskNode extends RectangularNode implements Nameable, WithEditableLabel {

@@ -24,3 +24,3 @@ static readonly DEFAULT_FEATURES: symbol[];

reference?: string;
get editableLabel(): (import("@eclipse-glsp/client").SChildElement & import("@eclipse-glsp/client").EditableLabel) | undefined;
get editableLabel(): (SChildElement & EditableLabel) | undefined;
}

@@ -27,0 +27,0 @@ export declare function isTaskNode(element: SModelElement): element is TaskNode;

@@ -37,3 +37,3 @@ "use strict";

var _this = _super !== null && _super.apply(this, arguments) || this;
_this.name = "";
_this.name = '';
return _this;

@@ -87,2 +87,3 @@ }

exports.ActivityNode = ActivityNode;
// eslint-disable-next-line no-redeclare
(function (ActivityNode) {

@@ -97,3 +98,3 @@ var Type;

Type.FORK = 'forkNode';
Type.UNDEFINED = "undefined";
Type.UNDEFINED = 'undefined';
})(Type = ActivityNode.Type || (ActivityNode.Type = {}));

@@ -100,0 +101,0 @@ })(ActivityNode = exports.ActivityNode || (exports.ActivityNode = {}));

@@ -16,8 +16,10 @@ /********************************************************************************

********************************************************************************/
import { IView, Point, PolylineEdgeView, RectangularNodeView, RenderingContext, SEdge, SShapeElement } from "@eclipse-glsp/client";
import { VNode } from "snabbdom/vnode";
import { ActivityNode, Icon, TaskNode, WeightedEdge } from "./model";
export declare class TaskNodeView extends RectangularNodeView {
render(node: TaskNode, context: RenderingContext): VNode;
protected getRoundedCornerRadius(node: SShapeElement): number;
import { GEdgeView, Hoverable, IView, Point, RectangularNodeView, RenderingContext, RoundedCornerNodeView, SEdge, Selectable, SShapeElement } from '@eclipse-glsp/client';
import { Classes } from 'snabbdom/modules/class';
import { VNode } from 'snabbdom/vnode';
import { ActivityNode, Icon, TaskNode } from './model';
export declare class TaskNodeView extends RoundedCornerNodeView {
protected renderWithoutRadius(node: Readonly<SShapeElement & Hoverable & Selectable>, context: RenderingContext): VNode;
protected getRoundedCornerRadius(_node: TaskNode): number;
protected additionalClasses(element: Readonly<SShapeElement & Hoverable & Selectable>, _context: RenderingContext): Classes;
}

@@ -27,7 +29,7 @@ export declare class ForkOrJoinNodeView extends RectangularNodeView {

}
export declare class WorkflowEdgeView extends PolylineEdgeView {
export declare class WorkflowEdgeView extends GEdgeView {
protected renderAdditionals(edge: SEdge, segments: Point[], context: RenderingContext): VNode[];
}
export declare class WeightedEdgeView extends WorkflowEdgeView {
render(edge: Readonly<WeightedEdge>, context: RenderingContext): VNode;
protected addtionalClasses(edge: Readonly<SEdge>, _context: RenderingContext): Classes;
}

@@ -34,0 +36,0 @@ export declare class IconView implements IView {

@@ -15,2 +15,13 @@ "use strict";

})();
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -42,2 +53,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

var snabbdom = require("snabbdom-jsx");
// eslint-disable-next-line @typescript-eslint/no-unused-vars
var JSX = { createElement: snabbdom.svg };

@@ -49,12 +61,21 @@ var TaskNodeView = /** @class */ (function (_super) {

}
TaskNodeView.prototype.render = function (node, context) {
var rcr = this.getRoundedCornerRadius(node);
TaskNodeView.prototype.renderWithoutRadius = function (node, context) {
var task = node;
var rcr = this.getRoundedCornerRadius(task);
var graph = JSX.createElement("g", null,
JSX.createElement("rect", { "class-sprotty-node": true, "class-task": true, "class-automated": node.taskType === 'automated', "class-manual": node.taskType === 'manual', "class-mouseover": node.hoverFeedback, "class-selected": node.selected, x: 0, y: 0, rx: rcr, ry: rcr, width: Math.max(0, node.bounds.width), height: Math.max(0, node.bounds.height) }),
JSX.createElement("rect", __assign({ "class-sprotty-node": true, "class-selected": node.selected, "class-mouseover": node.hoverFeedback }, this.additionalClasses(task, context), { x: 0, y: 0, rx: rcr, ry: rcr, width: Math.max(0, node.bounds.width), height: Math.max(0, node.bounds.height) })),
context.renderChildren(node));
return graph;
};
TaskNodeView.prototype.getRoundedCornerRadius = function (node) {
TaskNodeView.prototype.getRoundedCornerRadius = function (_node) {
return 5;
};
TaskNodeView.prototype.additionalClasses = function (element, _context) {
var node = element;
return {
'class-task': true,
'class-automated': node.taskType === 'automated',
'class-manual': node.taskType === 'manual'
};
};
TaskNodeView = __decorate([

@@ -64,3 +85,3 @@ inversify_1.injectable()

return TaskNodeView;
}(client_1.RectangularNodeView));
}(client_1.RoundedCornerNodeView));
exports.TaskNodeView = TaskNodeView;

@@ -89,7 +110,8 @@ var ForkOrJoinNodeView = /** @class */ (function (_super) {

WorkflowEdgeView.prototype.renderAdditionals = function (edge, segments, context) {
var additionals = _super.prototype.renderAdditionals.call(this, edge, segments, context);
var p1 = segments[segments.length - 2];
var p2 = segments[segments.length - 1];
return [
JSX.createElement("path", { "class-sprotty-edge": true, "class-arrow": true, d: "M 1.5,0 L 10,-4 L 10,4 Z", transform: "rotate(" + client_1.toDegrees(client_1.angleOfPoint({ x: p1.x - p2.x, y: p1.y - p2.y })) + " " + p2.x + " " + p2.y + ") translate(" + p2.x + " " + p2.y + ")" })
];
var arrow = JSX.createElement("path", { "class-sprotty-edge": true, "class-arrow": true, d: 'M 1.5,0 L 10,-4 L 10,4 Z', transform: "rotate(" + client_1.toDegrees(client_1.angleOfPoint({ x: p1.x - p2.x, y: p1.y - p2.y })) + " " + p2.x + " " + p2.y + ") translate(" + p2.x + " " + p2.y + ")" });
additionals.push(arrow);
return additionals;
};

@@ -100,3 +122,3 @@ WorkflowEdgeView = __decorate([

return WorkflowEdgeView;
}(client_1.PolylineEdgeView));
}(client_1.GEdgeView));
exports.WorkflowEdgeView = WorkflowEdgeView;

@@ -108,11 +130,10 @@ var WeightedEdgeView = /** @class */ (function (_super) {

}
WeightedEdgeView.prototype.render = function (edge, context) {
var router = this.edgeRouterRegistry.get(edge.routerKind);
var route = router.route(edge);
if (route.length === 0)
return this.renderDanglingEdge("Cannot compute route", edge, context);
return JSX.createElement("g", { "class-sprotty-edge": true, "class-weighted": true, "class-low": edge.probability === 'low', "class-medium": edge.probability === 'medium', "class-high": edge.probability === 'high', "class-mouseover": edge.hoverFeedback },
this.renderLine(edge, route, context),
this.renderAdditionals(edge, route, context),
context.renderChildren(edge, { route: route }));
WeightedEdgeView.prototype.addtionalClasses = function (edge, _context) {
var wedge = edge;
return {
'class-no-probability': !wedge.probability,
'class-low': wedge.probability === 'low',
'class-medium': wedge.probability === 'medium',
'class-high': wedge.probability === 'high'
};
};

@@ -119,0 +140,0 @@ WeightedEdgeView = __decorate([

{
"name": "@eclipse-glsp-examples/workflow-glsp",
"version": "0.9.0-next.954f2d39",
"version": "0.9.0-next.9bc904f3",
"description": "GLSP diagrams for the Workflow DSL",

@@ -31,3 +31,3 @@ "license": "(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)",

"dependencies": {
"@eclipse-glsp/client": "0.9.0-next.954f2d39",
"@eclipse-glsp/client": "0.9.0-next.9bc904f3",
"balloon-css": "^0.5.0"

@@ -38,3 +38,2 @@ },

"rimraf": "^2.6.1",
"tslint": "^5.5.0",
"typescript": "^3.9.2"

@@ -46,3 +45,3 @@ },

"build": "tsc && yarn run lint",
"lint": "tslint -c ../../configs/tslint.json --project ./tsconfig.json",
"lint": "eslint -c ./.eslintrc.js --ext .ts,.tsx ./src",
"watch": "tsc -w"

@@ -49,0 +48,0 @@ },

@@ -16,5 +16,5 @@ /********************************************************************************

********************************************************************************/
import "../css/diagram.css";
import "balloon-css/balloon.min.css";
import "sprotty/css/edit-label.css";
import '../css/diagram.css';
import 'balloon-css/balloon.min.css';
import 'sprotty/css/edit-label.css';

@@ -24,2 +24,3 @@ import {

buttonModule,
configureDefaultModelElements,
configureModelElement,

@@ -29,2 +30,3 @@ ConsoleLogger,

defaultModule,
DefaultTypes,
DeleteElementContextMenuItemProvider,

@@ -34,3 +36,2 @@ DiamondNodeView,

editLabelFeature,
ExpandButtonView,
expandModule,

@@ -44,3 +45,2 @@ exportModule,

glspEditLabelModule,
GLSPGraph,
glspHoverModule,

@@ -50,5 +50,4 @@ glspMouseToolModule,

glspServerCopyPasteModule,
glspViewportModule,
GridSnapper,
HtmlRoot,
HtmlRootView,
labelEditUiModule,

@@ -66,15 +65,9 @@ layoutCommandsModule,

paletteModule,
PreRenderedElement,
PreRenderedView,
RevealNamedElementActionProvider,
routingModule,
SButton,
SCompartment,
SCompartmentView,
SEdge,
SGraphView,
SLabel,
SLabelView,
SRoutingHandle,
SRoutingHandleView,
toolFeedbackModule,

@@ -84,10 +77,9 @@ toolsModule,

validationModule,
viewportModule,
zorderModule
} from "@eclipse-glsp/client";
import { Container, ContainerModule } from "inversify";
} from '@eclipse-glsp/client';
import { Container, ContainerModule } from 'inversify';
import { directTaskEditor } from "./direct-task-editing/di.config";
import { ActivityNode, Icon, TaskNode, WeightedEdge } from "./model";
import { ForkOrJoinNodeView, IconView, TaskNodeView, WeightedEdgeView, WorkflowEdgeView } from "./workflow-views";
import { directTaskEditor } from './direct-task-editing/di.config';
import { ActivityNode, Icon, TaskNode, WeightedEdge } from './model';
import { ForkOrJoinNodeView, IconView, TaskNodeView, WeightedEdgeView, WorkflowEdgeView } from './workflow-views';

@@ -102,3 +94,4 @@ const workflowDiagramModule = new ContainerModule((bind, unbind, isBound, rebind) => {

const context = { bind, unbind, isBound, rebind };
configureModelElement(context, 'graph', GLSPGraph, SGraphView);
configureDefaultModelElements(context);
configureModelElement(context, 'task:automated', TaskNode, TaskNodeView);

@@ -110,8 +103,3 @@ configureModelElement(context, 'task:manual', TaskNode, TaskNodeView);

configureModelElement(context, 'label:icon', SLabel, SLabelView);
configureModelElement(context, 'html', HtmlRoot, HtmlRootView);
configureModelElement(context, 'pre-rendered', PreRenderedElement, PreRenderedView);
configureModelElement(context, 'button:expand', SButton, ExpandButtonView);
configureModelElement(context, 'routing-point', SRoutingHandle, SRoutingHandleView);
configureModelElement(context, 'volatile-routing-point', SRoutingHandle, SRoutingHandleView);
configureModelElement(context, 'edge', SEdge, WorkflowEdgeView);
configureModelElement(context, DefaultTypes.EDGE, SEdge, WorkflowEdgeView);
configureModelElement(context, 'edge:weighted', WeightedEdge, WeightedEdgeView);

@@ -128,3 +116,3 @@ configureModelElement(context, 'icon', Icon, IconView);

container.load(validationModule, defaultModule, glspMouseToolModule, defaultGLSPModule, glspSelectModule, boundsModule, viewportModule, toolsModule,
container.load(defaultModule, defaultGLSPModule, glspMouseToolModule, validationModule, glspSelectModule, boundsModule, glspViewportModule, toolsModule,
glspHoverModule, fadeModule, exportModule, expandModule, openModule, buttonModule, modelSourceModule, labelEditUiModule, glspEditLabelModule,

@@ -137,3 +125,3 @@ workflowDiagramModule, toolFeedbackModule, modelHintsModule, glspContextMenuModule, glspServerCopyPasteModule, modelSourceWatcherModule,

baseDiv: widgetId,
hiddenDiv: widgetId + "_hidden"
hiddenDiv: widgetId + '_hidden'
});

@@ -140,0 +128,0 @@

@@ -16,6 +16,6 @@ /********************************************************************************

********************************************************************************/
import { ContainerModule } from "inversify";
import { TYPES } from "sprotty";
import { ContainerModule } from 'inversify';
import { TYPES } from 'sprotty';
import { TaskEditor } from "./direct-task-editor";
import { TaskEditor } from './direct-task-editor';

@@ -22,0 +22,0 @@ export const directTaskEditor = new ContainerModule((bind, _unbind, isBound) => {

@@ -35,8 +35,8 @@ /********************************************************************************

ViewerOptions
} from "@eclipse-glsp/client";
import { inject, injectable } from "inversify";
import { TYPES } from "sprotty/lib";
import { DOMHelper } from "sprotty/lib/base/views/dom-helper";
} from '@eclipse-glsp/client';
import { inject, injectable } from 'inversify';
import { TYPES } from 'sprotty/lib';
import { DOMHelper } from 'sprotty/lib/base/views/dom-helper';
import { isTaskNode, TaskNode } from "../model";
import { isTaskNode, TaskNode } from '../model';

@@ -78,4 +78,8 @@ export class ApplyTaskEditOperation implements Action {

id() { return TaskEditor.ID; }
containerClass() { return 'command-palette'; }
id(): string {
return TaskEditor.ID;
}
containerClass(): string {
return 'command-palette';
}

@@ -98,3 +102,3 @@ protected initializeContents(containerElement: HTMLElement): void {

show(root: Readonly<SModelRoot>, ...contextElementIds: string[]) {
show(root: Readonly<SModelRoot>, ...contextElementIds: string[]): void {
super.show(root, ...contextElementIds);

@@ -104,3 +108,3 @@ this.autoSuggestion.open(root);

protected onBeforeShow(containerElement: HTMLElement, root: Readonly<SModelRoot>, ...contextElementIds: string[]) {
protected onBeforeShow(containerElement: HTMLElement, root: Readonly<SModelRoot>, ...contextElementIds: string[]): void {
this.task = getTask(contextElementIds, root)[0];

@@ -111,3 +115,3 @@ this.autoSuggestion.inputField.value = '';

protected setPosition(containerElement: HTMLElement) {
protected setPosition(containerElement: HTMLElement): void {
let x = 0;

@@ -144,7 +148,7 @@ let y = 0;

protected executeFromSuggestion(input: LabeledAction | Action[] | Action) {
protected executeFromSuggestion(input: LabeledAction | Action[] | Action): void {
this.actionDispatcher.dispatchAll(toActionArray(input));
}
protected executeFromTextOnlyInput(input: string) {
protected executeFromTextOnlyInput(input: string): void {
const action = new ApplyTaskEditOperation(this.task.id, input);

@@ -154,3 +158,3 @@ this.actionDispatcher.dispatch(action);

hide() {
hide(): void {
this.autoSuggestion.dispose();

@@ -157,0 +161,0 @@ super.hide();

@@ -16,8 +16,8 @@ /********************************************************************************

********************************************************************************/
import createWorkflowDiagramContainer from "./di.config";
import createWorkflowDiagramContainer from './di.config';
export * from "./model";
export * from "./workflow-views";
export * from "./direct-task-editing/direct-task-editor";
export * from './model';
export * from './workflow-views';
export * from './direct-task-editing/direct-task-editor';
export { createWorkflowDiagramContainer };

@@ -21,2 +21,3 @@ /********************************************************************************

DiamondNode,
EditableLabel,
fadeFeature,

@@ -33,2 +34,3 @@ hoverFeedbackFeature,

RectangularNode,
SChildElement,
SEdge,

@@ -40,9 +42,8 @@ selectFeature,

withEditLabelFeature
} from "@eclipse-glsp/client";
} from '@eclipse-glsp/client';
export class TaskNode extends RectangularNode implements Nameable, WithEditableLabel {
static readonly DEFAULT_FEATURES = [connectableFeature, deletableFeature, selectFeature, boundsFeature,
moveFeature, layoutContainerFeature, fadeFeature, hoverFeedbackFeature, popupFeature, nameFeature, withEditLabelFeature];
name: string = "";
name = '';
duration?: number;

@@ -52,3 +53,3 @@ taskType?: string;

get editableLabel() {
get editableLabel(): (SChildElement & EditableLabel) | undefined {
const headerComp = this.children.find(element => element.type === 'comp:header');

@@ -73,3 +74,2 @@ if (headerComp) {

export class ActivityNode extends DiamondNode {

@@ -84,2 +84,3 @@ nodeType: string = ActivityNode.Type.UNDEFINED;

// eslint-disable-next-line no-redeclare
export namespace ActivityNode {

@@ -93,3 +94,3 @@ export namespace Type {

export const FORK = 'forkNode';
export const UNDEFINED = "undefined";
export const UNDEFINED = 'undefined';
}

@@ -102,3 +103,3 @@ }

layout: string;
layoutOptions?: { [key: string]: string | number | boolean; };
layoutOptions?: { [key: string]: string | number | boolean };
size = {

@@ -105,0 +106,0 @@ width: 32,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc