Socket
Socket
Sign inDemoInstall

sprotty

Package Overview
Dependencies
Maintainers
3
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sprotty - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0-next.35131d76

lib/base/actions/action-dispatcher.d.ts.map

1

lib/base/actions/action-dispatcher.d.ts

@@ -32,1 +32,2 @@ import { ILogger } from "../../utils/logging";

}
//# sourceMappingURL=action-dispatcher.d.ts.map

@@ -25,1 +25,2 @@ import { MultiInstanceRegistry } from "../../utils/registry";

}
//# sourceMappingURL=action-handler.d.ts.map

@@ -10,1 +10,2 @@ /**

export declare function isAction(object?: any): object is Action;
//# sourceMappingURL=action.d.ts.map

@@ -11,1 +11,2 @@ export declare class AnimationFrameSyncer {

}
//# sourceMappingURL=animation-frame-syncer.d.ts.map

@@ -30,1 +30,2 @@ import { CommandExecutionContext } from "../commands/command";

}
//# sourceMappingURL=animation.d.ts.map

@@ -9,1 +9,2 @@ /**

export declare function easeInOut(x: number): number;
//# sourceMappingURL=easing.d.ts.map

@@ -20,1 +20,2 @@ import { Container } from "inversify";

export declare function overrideCommandStackOptions(container: Container, options: Partial<CommandStackOptions>): CommandStackOptions;
//# sourceMappingURL=command-stack-options.d.ts.map

@@ -176,1 +176,2 @@ import { ILogger } from "../../utils/logging";

}
//# sourceMappingURL=command-stack.d.ts.map

@@ -134,1 +134,2 @@ import { ILogger } from "../../utils/logging";

}
//# sourceMappingURL=command.d.ts.map
import { ContainerModule } from "inversify";
declare const defaultContainerModule: ContainerModule;
export default defaultContainerModule;
//# sourceMappingURL=di.config.d.ts.map

@@ -40,1 +40,2 @@ import { VNode } from "snabbdom/vnode";

}
//# sourceMappingURL=initialize-canvas.d.ts.map

3

lib/base/features/set-model.d.ts

@@ -10,3 +10,3 @@ import { Action } from "../actions/action";

export declare class RequestModelAction implements Action {
readonly options: {
readonly options?: {
[key: string]: string;

@@ -39,1 +39,2 @@ } | undefined;

}
//# sourceMappingURL=set-model.d.ts.map

@@ -7,1 +7,2 @@ /**

}
//# sourceMappingURL=smodel-extension.d.ts.map

@@ -42,1 +42,2 @@ import { ProviderRegistry } from '../../utils/registry';

}
//# sourceMappingURL=smodel-factory.d.ts.map

@@ -11,1 +11,2 @@ import { ViewerOptions } from "../views/viewer-options";

}
//# sourceMappingURL=smodel-storage.d.ts.map

@@ -31,1 +31,2 @@ import { SModelElement, SModelElementSchema } from "./smodel";

export declare function translatePoint(point: Point, source: SModelElement, target: SModelElement): Point;
//# sourceMappingURL=smodel-utils.d.ts.map

@@ -95,1 +95,2 @@ import { Bounds, Point } from "../../utils/geometry";

}
//# sourceMappingURL=smodel.d.ts.map

@@ -26,2 +26,5 @@ export declare const TYPES: {

MouseListener: symbol;
/**
* @deprecated Use IPopupModelProvider instead.
*/
PopupModelFactory: symbol;

@@ -43,1 +46,2 @@ IPopupModelProvider: symbol;

};
//# sourceMappingURL=types.d.ts.map

@@ -6,5 +6,6 @@ import { ViewerOptions } from "./viewer-options";

constructor(viewerOptions: ViewerOptions);
private getPrefix();
private getPrefix;
createUniqueDOMElementId(element: SModelElement): string;
findSModelIdByDOMElement(element: Element): string;
}
//# sourceMappingURL=dom-helper.d.ts.map

@@ -13,1 +13,2 @@ import { VNode } from "snabbdom/vnode";

}
//# sourceMappingURL=id-decorator.d.ts.map

@@ -21,1 +21,2 @@ import { VNode } from "snabbdom/vnode";

}
//# sourceMappingURL=key-tool.d.ts.map

@@ -47,1 +47,2 @@ import { VNode } from "snabbdom/vnode";

}
//# sourceMappingURL=mouse-tool.d.ts.map

@@ -33,1 +33,2 @@ import { VNode } from "snabbdom/vnode";

export declare function isThunk(vnode: VNode): vnode is ThunkVNode;
//# sourceMappingURL=thunk-view.d.ts.map

@@ -53,1 +53,2 @@ import { interfaces } from "inversify";

}
//# sourceMappingURL=view.d.ts.map

@@ -31,3 +31,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var snabbdom = require("snabbdom-jsx");
/** @jsx svg */
var snabbdom_jsx_1 = require("snabbdom-jsx");
var inversify_1 = require("inversify");

@@ -38,3 +39,2 @@ var types_1 = require("../types");

var geometry_1 = require("../../utils/geometry");
var JSX = { createElement: snabbdom.svg };
/**

@@ -86,3 +86,3 @@ * Allows to look up the IView for a given SModelElement based on its type.

EmptyView.prototype.render = function (model, context) {
return JSX.createElement("svg", { "class-sprotty-empty": true });
return snabbdom_jsx_1.svg("svg", { "class-sprotty-empty": true });
};

@@ -100,3 +100,3 @@ return EmptyView;

var position = model.position || geometry_1.ORIGIN_POINT;
return JSX.createElement("text", { "class-sprotty-missing": true, x: position.x, y: position.y },
return snabbdom_jsx_1.svg("text", { "class-sprotty-missing": true, x: position.x, y: position.y },
"?",

@@ -103,0 +103,0 @@ model.id,

@@ -23,1 +23,2 @@ import { SModelRoot } from "../model/smodel";

}
//# sourceMappingURL=viewer-cache.d.ts.map

@@ -29,1 +29,2 @@ import { Container, interfaces } from "inversify";

export declare function overrideViewerOptions(container: Container, options: Partial<ViewerOptions>): ViewerOptions;
//# sourceMappingURL=viewer-options.d.ts.map

@@ -60,1 +60,2 @@ import { VNode } from "snabbdom/vnode";

export declare type IViewerProvider = () => Promise<Viewer>;
//# sourceMappingURL=viewer.d.ts.map

@@ -21,3 +21,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var snabbdom = require("snabbdom-jsx");
/** @jsx html */
var snabbdom_jsx_1 = require("snabbdom-jsx"); // must be html here, as we're creating a div
var snabbdom_1 = require("snabbdom");

@@ -36,3 +37,2 @@ var props_1 = require("snabbdom/modules/props");

var smodel_factory_1 = require("../model/smodel-factory");
var JSX = { createElement: snabbdom.html }; // must be html here, as we're creating a div
var ModelRenderer = /** @class */ (function () {

@@ -112,3 +112,3 @@ function ModelRenderer(viewRegistry, decorators) {

this.logger.log(this, 'rendering', model);
var newVDOM = JSX.createElement("div", { id: this.options.baseDiv }, this.renderer.renderElement(model));
var newVDOM = snabbdom_jsx_1.html("div", { id: this.options.baseDiv }, this.renderer.renderElement(model));
if (this.lastVDOM !== undefined) {

@@ -162,3 +162,3 @@ var hadFocus = this.hasFocus();

if (hiddenModel.type === smodel_factory_1.EMPTY_ROOT.type) {
newVDOM = JSX.createElement("div", { id: this.options.hiddenDiv });
newVDOM = snabbdom_jsx_1.html("div", { id: this.options.hiddenDiv });
}

@@ -168,3 +168,3 @@ else {

vnode_utils_1.setAttr(hiddenVNode, 'opacity', 0);
newVDOM = JSX.createElement("div", { id: this.options.hiddenDiv }, hiddenVNode);
newVDOM = snabbdom_jsx_1.html("div", { id: this.options.hiddenDiv }, hiddenVNode);
}

@@ -195,3 +195,3 @@ if (this.lastHiddenVDOM !== undefined) {

if (popupClosed) {
newVDOM = JSX.createElement("div", { id: this.options.popupDiv });
newVDOM = snabbdom_jsx_1.html("div", { id: this.options.popupDiv });
}

@@ -204,3 +204,3 @@ else {

};
newVDOM = JSX.createElement("div", { id: this.options.popupDiv, style: inlineStyle }, this.popupRenderer.renderElement(model));
newVDOM = snabbdom_jsx_1.html("div", { id: this.options.popupDiv, style: inlineStyle }, this.popupRenderer.renderElement(model));
}

@@ -207,0 +207,0 @@ if (this.lastPopupVDOM !== undefined) {

@@ -16,1 +16,2 @@ import { VNode } from "snabbdom/vnode";

}
//# sourceMappingURL=vnode-decorators.d.ts.map

@@ -29,2 +29,3 @@ "use strict";

};
var FocusFixDecorator_1;
FocusFixDecorator.tabIndex = 1000;

@@ -35,5 +36,4 @@ FocusFixDecorator = FocusFixDecorator_1 = __decorate([

return FocusFixDecorator;
var FocusFixDecorator_1;
}());
exports.FocusFixDecorator = FocusFixDecorator;
//# sourceMappingURL=vnode-decorators.js.map

@@ -10,1 +10,2 @@ import { VNode } from "snabbdom/vnode";

export declare function getAttrs(vnode: VNode): Record<string, string | number | boolean>;
//# sourceMappingURL=vnode-utils.d.ts.map

@@ -21,1 +21,2 @@ import { Bounds, Dimension, Point } from "../../utils/geometry";

}
//# sourceMappingURL=abstract-layout.d.ts.map

@@ -35,4 +35,4 @@ import { Bounds, Point } from "../../utils/geometry";

readonly bounds: ElementAndBounds[];
readonly revision: number | undefined;
readonly alignments: ElementAndAlignment[] | undefined;
readonly revision?: number | undefined;
readonly alignments?: ElementAndAlignment[] | undefined;
static readonly KIND: string;

@@ -82,1 +82,2 @@ readonly kind: string;

}
//# sourceMappingURL=bounds-manipulation.d.ts.map
import { ContainerModule } from "inversify";
declare const boundsModule: ContainerModule;
export default boundsModule;
//# sourceMappingURL=di.config.d.ts.map

@@ -25,1 +25,2 @@ import { Bounds, Point } from '../../utils/geometry';

}
//# sourceMappingURL=hbox-layout.d.ts.map

@@ -37,1 +37,2 @@ import { VNode } from "snabbdom/vnode";

}
//# sourceMappingURL=hidden-bounds-updater.d.ts.map

@@ -11,1 +11,2 @@ export declare type HAlignment = 'left' | 'center' | 'right';

}
//# sourceMappingURL=layout-options.d.ts.map

@@ -29,1 +29,2 @@ import { ILogger } from '../../utils/logging';

}
//# sourceMappingURL=layout.d.ts.map

@@ -60,1 +60,2 @@ import { Bounds, Dimension, Point } from "../../utils/geometry";

}
//# sourceMappingURL=model.d.ts.map

@@ -18,1 +18,2 @@ import { Animation } from "../../base/animations/animation";

}
//# sourceMappingURL=resize.d.ts.map

@@ -23,1 +23,2 @@ import { Bounds, Point } from '../../utils/geometry';

}
//# sourceMappingURL=stack-layout.d.ts.map

@@ -28,1 +28,2 @@ import { Bounds, Point } from '../../utils/geometry';

}
//# sourceMappingURL=vbox-layout.d.ts.map

@@ -14,1 +14,2 @@ import { InstanceRegistry } from '../../utils/registry';

}
//# sourceMappingURL=button-handler.d.ts.map
import { ContainerModule } from "inversify";
declare const buttonModule: ContainerModule;
export default buttonModule;
//# sourceMappingURL=di.config.d.ts.map

@@ -10,1 +10,2 @@ import { SShapeElement, SShapeElementSchema } from '../bounds/model';

}
//# sourceMappingURL=model.d.ts.map
import { ContainerModule } from "inversify";
declare const edgeEditModule: ContainerModule;
export default edgeEditModule;
//# sourceMappingURL=di.config.d.ts.map

@@ -70,1 +70,2 @@ import { Point } from "../../utils/geometry";

}
//# sourceMappingURL=edit-routing.d.ts.map

@@ -32,1 +32,2 @@ import { Point } from '../../utils/geometry';

export declare function filterEditModeHandles(route: RoutedPoint[], parent: SParentElement): RoutedPoint[];
//# sourceMappingURL=model.d.ts.map
import { ContainerModule } from "inversify";
declare const expandModule: ContainerModule;
export default expandModule;
//# sourceMappingURL=di.config.d.ts.map

@@ -31,1 +31,2 @@ import { Action } from '../../base/actions/action';

}
//# sourceMappingURL=expand.d.ts.map

@@ -11,1 +11,2 @@ import { SModelElement } from "../../base/model/smodel";

export declare function isExpandable(element: SModelElement): element is SModelElement & Expandable;
//# sourceMappingURL=model.d.ts.map

@@ -7,1 +7,2 @@ import { VNode } from 'snabbdom/vnode';

}
//# sourceMappingURL=views.d.ts.map

@@ -9,6 +9,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var snabbdom = require("snabbdom-jsx");
/** @jsx svg */
var snabbdom_jsx_1 = require("snabbdom-jsx");
var model_1 = require("./model");
var smodel_utils_1 = require("../../base/model/smodel-utils");
var JSX = { createElement: snabbdom.svg };
var ExpandButtonView = /** @class */ (function () {

@@ -22,5 +22,5 @@ function ExpandButtonView() {

: 'M 1,8 L 8,15 L 8,1 Z';
return JSX.createElement("g", { "class-sprotty-button": "{true}", "class-enabled": "{button.enabled}" },
JSX.createElement("rect", { x: 0, y: 0, width: 16, height: 16, opacity: 0 }),
JSX.createElement("path", { d: path }));
return snabbdom_jsx_1.svg("g", { "class-sprotty-button": "{true}", "class-enabled": "{button.enabled}" },
snabbdom_jsx_1.svg("rect", { x: 0, y: 0, width: 16, height: 16, opacity: 0 }),
snabbdom_jsx_1.svg("path", { d: path }));
};

@@ -27,0 +27,0 @@ return ExpandButtonView;

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

@@ -25,1 +25,2 @@ import { VNode } from 'snabbdom/vnode';

}
//# sourceMappingURL=export.d.ts.map

@@ -8,1 +8,2 @@ import { SModelElement } from '../../base/model/smodel';

export declare function isExportable(element: SModelElement): element is SModelElement & Exportable;
//# sourceMappingURL=model.d.ts.map

@@ -23,1 +23,2 @@ import { ViewerOptions } from '../../base/views/viewer-options';

}
//# sourceMappingURL=svg-exporter.d.ts.map
import { ContainerModule } from "inversify";
declare const fadeModule: ContainerModule;
export default fadeModule;
//# sourceMappingURL=di.config.d.ts.map

@@ -22,1 +22,2 @@ import { VNode } from "snabbdom/vnode";

}
//# sourceMappingURL=fade.d.ts.map

@@ -8,1 +8,2 @@ import { SModelElement } from "../../base/model/smodel";

export declare function isFadeable(element: SModelElement): element is SModelElement & Fadeable;
//# sourceMappingURL=model.d.ts.map
import { ContainerModule } from "inversify";
declare const hoverModule: ContainerModule;
export default hoverModule;
//# sourceMappingURL=di.config.d.ts.map

@@ -86,1 +86,2 @@ import { Bounds, Point } from "../../utils/geometry";

}
//# sourceMappingURL=hover.d.ts.map

@@ -5,1 +5,2 @@ import { ActionHandlerRegistry, IActionHandlerInitializer } from "../../base/actions/action-handler";

}
//# sourceMappingURL=initializer.d.ts.map

@@ -10,1 +10,2 @@ import { SModelElement } from "../../base/model/smodel";

export declare function hasPopupFeature(element: SModelElement): boolean;
//# sourceMappingURL=model.d.ts.map

@@ -11,1 +11,2 @@ import { VNode } from "snabbdom/vnode";

}
//# sourceMappingURL=popup-position-updater.d.ts.map
import { ContainerModule } from "inversify";
declare const moveModule: ContainerModule;
export default moveModule;
//# sourceMappingURL=di.config.d.ts.map

@@ -14,1 +14,2 @@ import { Point } from "../../utils/geometry";

export declare function isMoveable(element: SModelElement): element is SModelElement & Locateable;
//# sourceMappingURL=model.d.ts.map

@@ -40,3 +40,3 @@ import { Point } from '../../utils/geometry';

constructor(action: MoveAction);
execute(context: CommandExecutionContext): SModelRoot | Promise<SModelRoot>;
execute(context: CommandExecutionContext): import("../../base/commands/command").CommandResult;
protected resolve(move: ElementMove, index: SModelIndex<SModelElement>): ResolvedElementMove | undefined;

@@ -71,1 +71,2 @@ protected handleAttachedElement(element: SModelElement): void;

}
//# sourceMappingURL=move.d.ts.map
import { ContainerModule } from "inversify";
declare const openModule: ContainerModule;
export default openModule;
//# sourceMappingURL=di.config.d.ts.map
import { SModelElement } from "../../base/model/smodel";
export declare const openFeature: unique symbol;
export declare function isOpenable(element: SModelElement): element is SModelElement;
//# sourceMappingURL=model.d.ts.map

@@ -13,1 +13,2 @@ import { MouseListener } from '../../base/views/mouse-tool';

}
//# sourceMappingURL=open.d.ts.map
import { ContainerModule } from "inversify";
declare const selectModule: ContainerModule;
export default selectModule;
//# sourceMappingURL=di.config.d.ts.map

@@ -8,1 +8,2 @@ import { SModelElement } from "../../base/model/smodel";

export declare function isSelectable(element: SModelElement): element is SModelElement & Selectable;
//# sourceMappingURL=model.d.ts.map

@@ -69,1 +69,2 @@ import { VNode } from "snabbdom/vnode";

}
//# sourceMappingURL=select.d.ts.map
import { ContainerModule } from "inversify";
declare const undoRedoModule: ContainerModule;
export default undoRedoModule;
//# sourceMappingURL=di.config.d.ts.map

@@ -15,1 +15,2 @@ import { Action } from "../../base/actions/action";

}
//# sourceMappingURL=undo-redo.d.ts.map

@@ -18,1 +18,2 @@ import { SModelRootSchema, SModelElementSchema, SModelRoot, SModelElement } from '../../base/model/smodel';

export declare function applyMatches(root: SModelRootSchema, matches: Match[]): void;
//# sourceMappingURL=model-matching.d.ts.map

@@ -41,1 +41,2 @@ import { Animation } from '../../base/animations/animation';

}
//# sourceMappingURL=update-model.d.ts.map

@@ -27,4 +27,4 @@ import { Bounds } from "../../utils/geometry";

readonly elementIds: string[];
readonly padding: number | undefined;
readonly maxZoom: number | undefined;
readonly padding?: number | undefined;
readonly maxZoom?: number | undefined;
readonly animate: boolean;

@@ -43,5 +43,5 @@ readonly kind: string;

protected abstract getElementIds(): string[];
execute(context: CommandExecutionContext): SModelRoot | Promise<SModelRoot>;
undo(context: CommandExecutionContext): SModelRoot | Promise<SModelRoot>;
redo(context: CommandExecutionContext): SModelRoot | Promise<SModelRoot>;
execute(context: CommandExecutionContext): import("../../base/commands/command").CommandResult;
undo(context: CommandExecutionContext): import("../../base/commands/command").CommandResult;
redo(context: CommandExecutionContext): import("../../base/commands/command").CommandResult;
protected equal(vp1: Viewport, vp2: Viewport): boolean;

@@ -66,1 +66,2 @@ }

}
//# sourceMappingURL=center-fit.d.ts.map
import { ContainerModule } from "inversify";
declare const viewportModule: ContainerModule;
export default viewportModule;
//# sourceMappingURL=di.config.d.ts.map

@@ -8,1 +8,2 @@ import { SModelElement, SModelRoot } from "../../base/model/smodel";

export declare function isViewport(element: SModelElement): element is SModelRoot & Viewport;
//# sourceMappingURL=model.d.ts.map

@@ -17,1 +17,2 @@ import { Point } from "../../utils/geometry";

}
//# sourceMappingURL=scroll.d.ts.map

@@ -18,1 +18,2 @@ import { Bounds, Point } from "../../utils/geometry";

}
//# sourceMappingURL=viewport-root.d.ts.map

@@ -20,3 +20,3 @@ import { SModelElement, SModelRoot } from "../../base/model/smodel";

constructor(action: ViewportAction);
execute(context: CommandExecutionContext): SModelRoot | Promise<SModelRoot>;
execute(context: CommandExecutionContext): import("../../base/commands/command").CommandResult;
undo(context: CommandExecutionContext): Promise<SModelRoot>;

@@ -35,1 +35,2 @@ redo(context: CommandExecutionContext): Promise<SModelRoot>;

}
//# sourceMappingURL=viewport.d.ts.map

@@ -12,1 +12,2 @@ import { SModelElement } from "../../base/model/smodel";

}
//# sourceMappingURL=zoom.d.ts.map

@@ -16,1 +16,2 @@ import { Point } from "../utils/geometry";

}
//# sourceMappingURL=routing.d.ts.map

@@ -16,1 +16,2 @@ import { SModelFactory } from "../base/model/smodel-factory";

}
//# sourceMappingURL=sgraph-factory.d.ts.map

@@ -187,1 +187,2 @@ import { FluentIterable } from '../utils/iterable';

}
//# sourceMappingURL=sgraph.d.ts.map

@@ -34,1 +34,2 @@ import { VNode } from "snabbdom/vnode";

}
//# sourceMappingURL=views.d.ts.map

@@ -9,3 +9,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var snabbdom = require("snabbdom-jsx");
/** @jsx svg */
var snabbdom_jsx_1 = require("snabbdom-jsx");
var geometry_1 = require("../utils/geometry");

@@ -15,3 +16,2 @@ var vnode_utils_1 = require("../base/views/vnode-utils");

var model_1 = require("../features/edit/model");
var JSX = { createElement: snabbdom.svg };
/**

@@ -25,4 +25,4 @@ * IView component that turns an SGraph element and its children into a tree of virtual DOM elements.

var transform = "scale(" + model.zoom + ") translate(" + -model.scroll.x + "," + -model.scroll.y + ")";
return JSX.createElement("svg", { "class-sprotty-graph": true },
JSX.createElement("g", { transform: transform }, context.renderChildren(model)));
return snabbdom_jsx_1.svg("svg", { "class-sprotty-graph": true },
snabbdom_jsx_1.svg("g", { transform: transform }, context.renderChildren(model)));
};

@@ -39,3 +39,3 @@ return SGraphView;

return this.renderDanglingEdge("Cannot compute route", edge, context);
return JSX.createElement("g", { "class-sprotty-edge": true, "class-mouseover": edge.hoverFeedback },
return snabbdom_jsx_1.svg("g", { "class-sprotty-edge": true, "class-mouseover": edge.hoverFeedback },
this.renderLine(edge, route, context),

@@ -52,3 +52,3 @@ this.renderAdditionals(edge, route, context),

}
return JSX.createElement("path", { d: path });
return snabbdom_jsx_1.svg("path", { d: path });
};

@@ -59,3 +59,3 @@ PolylineEdgeView.prototype.renderAdditionals = function (edge, segments, context) {

PolylineEdgeView.prototype.renderDanglingEdge = function (message, edge, context) {
return JSX.createElement("text", { "class-sprotty-edge-dangling": true, title: message }, "?");
return snabbdom_jsx_1.svg("text", { "class-sprotty-edge-dangling": true, title: message }, "?");
};

@@ -73,3 +73,3 @@ return PolylineEdgeView;

if (position !== undefined) {
var node = JSX.createElement("circle", { "class-sprotty-routing-handle": true, "class-selected": handle.selected, "class-mouseover": handle.hoverFeedback, cx: position.x, cy: position.y }); // Radius must be specified via CSS
var node = snabbdom_jsx_1.svg("circle", { "class-sprotty-routing-handle": true, "class-selected": handle.selected, "class-mouseover": handle.hoverFeedback, cx: position.x, cy: position.y }); // Radius must be specified via CSS
vnode_utils_1.setAttr(node, 'data-kind', handle.kind);

@@ -80,3 +80,3 @@ return node;

// Fallback: Create an empty group
return JSX.createElement("g", null);
return snabbdom_jsx_1.svg("g", null);
};

@@ -140,3 +140,3 @@ SRoutingHandleView.prototype.getPosition = function (handle, route) {

SLabelView.prototype.render = function (label, context) {
var vnode = JSX.createElement("text", { "class-sprotty-label": true }, label.text);
var vnode = snabbdom_jsx_1.svg("text", { "class-sprotty-label": true }, label.text);
var subType = smodel_utils_1.getSubType(label);

@@ -155,3 +155,3 @@ if (subType)

var translate = "translate(" + model.bounds.x + ", " + model.bounds.y + ")";
var vnode = JSX.createElement("g", { transform: translate, "class-sprotty-comp": "{true}" }, context.renderChildren(model));
var vnode = snabbdom_jsx_1.svg("g", { transform: translate, "class-sprotty-comp": "{true}" }, context.renderChildren(model));
var subType = smodel_utils_1.getSubType(model);

@@ -158,0 +158,0 @@ if (subType)

@@ -98,1 +98,2 @@ export * from './base/actions/action';

export * from "./utils/registry";
//# sourceMappingURL=index.d.ts.map

@@ -9,1 +9,2 @@ import { VNode } from "snabbdom/vnode";

}
//# sourceMappingURL=generic-views.d.ts.map

@@ -7,1 +7,2 @@ import { VNode } from "snabbdom/vnode";

}
//# sourceMappingURL=html-views.d.ts.map

@@ -9,5 +9,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var snabbdom = require("snabbdom-jsx");
/** @jsx svg */
var snabbdom_jsx_1 = require("snabbdom-jsx");
var vnode_utils_1 = require("../base/views/vnode-utils");
var JSX = { createElement: snabbdom.html };
var HtmlRootView = /** @class */ (function () {

@@ -17,3 +17,3 @@ function HtmlRootView() {

HtmlRootView.prototype.render = function (model, context) {
var root = JSX.createElement("div", null, context.renderChildren(model));
var root = snabbdom_jsx_1.svg("div", null, context.renderChildren(model));
for (var _i = 0, _a = model.classes; _i < _a.length; _i++) {

@@ -20,0 +20,0 @@ var c = _a[_i];

@@ -80,1 +80,2 @@ import { SModelRoot, SModelRootSchema, SChildElement, SModelElementSchema } from "../base/model/smodel";

}
//# sourceMappingURL=model.d.ts.map

@@ -17,1 +17,2 @@ import { VNode } from "snabbdom/vnode";

}
//# sourceMappingURL=svg-views.d.ts.map

@@ -9,5 +9,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var snabbdom = require("snabbdom-jsx");
/** @jsx svg */
var snabbdom_jsx_1 = require("snabbdom-jsx");
var sgraph_1 = require("../graph/sgraph");
var JSX = { createElement: snabbdom.svg };
var SvgViewportView = /** @class */ (function () {

@@ -18,4 +18,4 @@ function SvgViewportView() {

var transform = "scale(" + model.zoom + ") translate(" + -model.scroll.x + "," + -model.scroll.y + ")";
return JSX.createElement("svg", null,
JSX.createElement("g", { transform: transform }, context.renderChildren(model)));
return snabbdom_jsx_1.svg("svg", null,
snabbdom_jsx_1.svg("g", { transform: transform }, context.renderChildren(model)));
};

@@ -30,4 +30,4 @@ return SvgViewportView;

var radius = this.getRadius(node);
return JSX.createElement("g", null,
JSX.createElement("circle", { "class-sprotty-node": node instanceof sgraph_1.SNode, "class-sprotty-port": node instanceof sgraph_1.SPort, "class-mouseover": node.hoverFeedback, "class-selected": node.selected, r: radius, cx: radius, cy: radius }),
return snabbdom_jsx_1.svg("g", null,
snabbdom_jsx_1.svg("circle", { "class-sprotty-node": node instanceof sgraph_1.SNode, "class-sprotty-port": node instanceof sgraph_1.SPort, "class-mouseover": node.hoverFeedback, "class-selected": node.selected, r: radius, cx: radius, cy: radius }),
context.renderChildren(node));

@@ -46,4 +46,4 @@ };

RectangularNodeView.prototype.render = function (node, context) {
return JSX.createElement("g", null,
JSX.createElement("rect", { "class-sprotty-node": node instanceof sgraph_1.SNode, "class-sprotty-port": node instanceof sgraph_1.SPort, "class-mouseover": node.hoverFeedback, "class-selected": node.selected, x: "0", y: "0", width: Math.max(node.size.width, 0), height: Math.max(node.size.height, 0) }),
return snabbdom_jsx_1.svg("g", null,
snabbdom_jsx_1.svg("rect", { "class-sprotty-node": node instanceof sgraph_1.SNode, "class-sprotty-port": node instanceof sgraph_1.SPort, "class-mouseover": node.hoverFeedback, "class-selected": node.selected, x: "0", y: "0", width: Math.max(node.size.width, 0), height: Math.max(node.size.height, 0) }),
context.renderChildren(node));

@@ -50,0 +50,0 @@ };

@@ -9,1 +9,2 @@ import { ContainerModule } from "inversify";

export default modelSourceModule;
//# sourceMappingURL=di.config.d.ts.map

@@ -67,1 +67,2 @@ import { Bounds, Point } from "../utils/geometry";

}
//# sourceMappingURL=diagram-server.d.ts.map

@@ -13,1 +13,2 @@ import { SModelRootSchema, SModelElementSchema } from '../base/model/smodel';

}
//# sourceMappingURL=diagram-state.d.ts.map

@@ -24,5 +24,5 @@ import { Bounds, Point } from "../utils/geometry";

protected readonly logger: ILogger;
protected modelProvider: IStateAwareModelProvider | undefined;
protected popupModelProvider: IPopupModelProvider | undefined;
protected layoutEngine: IModelLayoutEngine | undefined;
protected modelProvider?: IStateAwareModelProvider | undefined;
protected popupModelProvider?: IPopupModelProvider | undefined;
protected layoutEngine?: IModelLayoutEngine | undefined;
protected currentRoot: SModelRootSchema;

@@ -106,1 +106,2 @@ protected diagramState: DiagramState;

}
//# sourceMappingURL=local-model-source.d.ts.map

@@ -27,1 +27,2 @@ import { ILogger, LogLevel } from "../utils/logging";

}
//# sourceMappingURL=logging.d.ts.map

@@ -31,1 +31,2 @@ import { Action } from "../base/actions/action";

}
//# sourceMappingURL=model-source.d.ts.map

@@ -12,1 +12,2 @@ import { DiagramServer, ActionMessage } from "./diagram-server";

}
//# sourceMappingURL=websocket.d.ts.map
import { Point, Bounds } from './geometry';
export declare function computeCircleAnchor(position: Point, radius: number, refPoint: Point, offset?: number): Point;
export declare function computeRectangleAnchor(bounds: Bounds, refPoint: Point, offset: number): Point;
//# sourceMappingURL=anchors.d.ts.map

@@ -10,1 +10,2 @@ /**

}
//# sourceMappingURL=async.d.ts.map

@@ -8,1 +8,2 @@ /**

export declare function isCrossSite(url: string): boolean;
//# sourceMappingURL=browser.d.ts.map

@@ -13,1 +13,2 @@ export interface RGBColor {

}
//# sourceMappingURL=color.d.ts.map

@@ -92,3 +92,3 @@ /**

up = 2,
down = 3,
down = 3
}

@@ -149,1 +149,2 @@ /**

export declare function almostEquals(a: number, b: number): boolean;
//# sourceMappingURL=geometry.d.ts.map

@@ -40,1 +40,2 @@ /**

export declare function mapIterable<T1, T2>(input: Iterable<T1> | ArrayLike<T1>, callback: (element: T1) => T2): FluentIterable<T2>;
//# sourceMappingURL=iterable.d.ts.map

@@ -18,2 +18,3 @@ "use strict";

FluentIterableImpl.prototype[Symbol.iterator] = function () {
var _a;
var _this = this;

@@ -27,3 +28,2 @@ var iterator = (_a = {

return iterator;
var _a;
};

@@ -30,0 +30,0 @@ FluentIterableImpl.prototype.filter = function (callback) {

@@ -15,1 +15,2 @@ /**

export declare function getActualCode(event: KeyboardEvent): KeyCode;
//# sourceMappingURL=keyboard.d.ts.map

@@ -14,3 +14,3 @@ import { ViewerOptions } from "../base/views/viewer-options";

info = 3,
log = 4,
log = 4
}

@@ -34,1 +34,2 @@ export declare class NullLogger implements ILogger {

}
//# sourceMappingURL=logging.d.ts.map

@@ -23,1 +23,2 @@ export declare class ProviderRegistry<T, U> {

}
//# sourceMappingURL=registry.d.ts.map
{
"name": "sprotty",
"version": "0.4.0",
"version": "0.5.0-next.35131d76",
"description": "A next-gen framework for graphical views",

@@ -70,3 +70,3 @@ "license": "Apache-2.0",

"dom4": "^1.8.5",
"jenkins-mocha": "^4.1.2",
"jenkins-mocha": "^6.0.0",
"jsdom": "9.12.0",

@@ -80,9 +80,11 @@ "jsdom-global": "2.1.1",

"snabbdom-to-html": "^3.1.1",
"ts-loader": "^2.0.0",
"ts-node": "^3.2.0",
"source-map-loader": "^0.2.3",
"ts-loader": "^4.4.2",
"ts-node": "<7.0.0",
"tslint": "^5.5.0",
"tslint-loader": "^3.4.3",
"typescript": "^2.4.1",
"typescript": "2.9.1",
"typings": "^2.1.0",
"webpack": "^2.2.1"
"webpack": "^4.15.1",
"webpack-cli": "^3.0.8"
},

@@ -89,0 +91,0 @@ "scripts": {

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

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

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

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

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

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

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

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

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc