Commit 3ff2c794 authored by Igor Kulikov's avatar Igor Kulikov

NgxFlowchart implmenetation

parent 1677d617
...@@ -29,7 +29,9 @@ ...@@ -29,7 +29,9 @@
"styles": [ "styles": [
"src/styles.scss" "src/styles.scss"
], ],
"scripts": [] "scripts": [
"node_modules/jquery/dist/jquery.min.js"
]
}, },
"configurations": { "configurations": {
"production": { "production": {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { Component } from '@angular/core';
import { FcNodeComponent } from './node.component';
export class DefaultFcNodeComponent extends FcNodeComponent {
constructor() {
super();
}
}
DefaultFcNodeComponent.decorators = [
{ type: Component, args: [{
selector: 'fc-default-node',
template: "<div\n (dblclick)=\"userNodeCallbacks.doubleClick($event, node)\">\n <div class=\"{{flowchartConstants.nodeOverlayClass}}\"></div>\n <div class=\"innerNode\">\n <p>{{ node.name }}</p>\n\n <div class=\"{{flowchartConstants.leftConnectorClass}}\">\n <div fc-magnet [connector]=\"connector\" [callbacks]=\"callbacks\"\n *ngFor=\"let connector of modelservice.nodes.getConnectorsByType(node, flowchartConstants.leftConnectorType)\">\n <div fc-connector [connector]=\"connector\"\n [mouseOverConnector]=\"mouseOverConnector\"\n [callbacks]=\"callbacks\"\n [modelservice]=\"modelservice\"></div>\n </div>\n </div>\n <div class=\"{{flowchartConstants.rightConnectorClass}}\">\n <div fc-magnet [connector]=\"connector\" [callbacks]=\"callbacks\"\n *ngFor=\"let connector of modelservice.nodes.getConnectorsByType(node, flowchartConstants.rightConnectorType)\">\n <div fc-connector [connector]=\"connector\"\n [mouseOverConnector]=\"mouseOverConnector\"\n [callbacks]=\"callbacks\"\n [modelservice]=\"modelservice\"></div>\n </div>\n </div>\n </div>\n <div *ngIf=\"modelservice.isEditable() && !node.readonly\" class=\"fc-nodeedit\" (click)=\"userNodeCallbacks.nodeEdit($event, node)\">\n <i class=\"fa fa-pencil\" aria-hidden=\"true\"></i>\n </div>\n <div *ngIf=\"modelservice.isEditable() && !node.readonly\" class=\"fc-nodedelete\" (click)=\"modelservice.nodes.delete(node)\">\n &times;\n </div>\n</div>\n",
styles: [":host .fc-node-overlay{position:absolute;pointer-events:none;left:0;top:0;right:0;bottom:0;background-color:#000;opacity:0}:host :host-context(.fc-hover) .fc-node-overlay{opacity:.25;transition:opacity .2s}:host :host-context(.fc-selected) .fc-node-overlay{opacity:.25}:host .innerNode{display:flex;justify-content:center;align-items:center;min-width:100px;border-radius:5px;background-color:#f15b26;color:#fff;font-size:16px;pointer-events:none}:host .innerNode p{padding:0 15px;text-align:center}"]
}] }
];
/** @nocollapse */
DefaultFcNodeComponent.ctorParameters = () => [];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC1ub2RlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1mbG93Y2hhcnQvIiwic291cmNlcyI6WyJsaWIvZGVmYXVsdC1ub2RlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFPbkQsTUFBTSxPQUFPLHNCQUF1QixTQUFRLGVBQWU7SUFFekQ7UUFDRSxLQUFLLEVBQUUsQ0FBQztJQUNWLENBQUM7OztZQVRGLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsaUJBQWlCO2dCQUMzQiw4aERBQTRDOzthQUU3QyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgRmNOb2RlQ29tcG9uZW50IH0gZnJvbSAnLi9ub2RlLmNvbXBvbmVudCc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2ZjLWRlZmF1bHQtbm9kZScsXG4gIHRlbXBsYXRlVXJsOiAnLi9kZWZhdWx0LW5vZGUuY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi9kZWZhdWx0LW5vZGUuY29tcG9uZW50LnNjc3MnXVxufSlcbmV4cG9ydCBjbGFzcyBEZWZhdWx0RmNOb2RlQ29tcG9uZW50IGV4dGVuZHMgRmNOb2RlQ29tcG9uZW50IHtcblxuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcigpO1xuICB9XG5cbn1cbiJdfQ==
\ No newline at end of file
This diff is collapsed.
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { Injectable } from '@angular/core';
import { FlowchartConstants } from './ngx-flowchart.models';
export class FcEdgeDrawingService {
constructor() {
}
/**
* @param {?} pt1
* @param {?} pt2
* @param {?} style
* @return {?}
*/
getEdgeDAttribute(pt1, pt2, style) {
/** @type {?} */
let dAddribute = `M ${pt1.x}, ${pt1.y} `;
if (style === FlowchartConstants.curvedStyle) {
/** @type {?} */
const sourceTangent = this.computeEdgeSourceTangent(pt1, pt2);
/** @type {?} */
const destinationTangent = this.computeEdgeDestinationTangent(pt1, pt2);
dAddribute += `C ${sourceTangent.x}, ${sourceTangent.y} ${(destinationTangent.x - 50)}, ${destinationTangent.y} ${pt2.x}, ${pt2.y}`;
}
else {
dAddribute += `L ${pt2.x}, ${pt2.y}`;
}
return dAddribute;
}
/**
* @param {?} pt1
* @param {?} pt2
* @return {?}
*/
getEdgeCenter(pt1, pt2) {
return {
x: (pt1.x + pt2.x) / 2,
y: (pt1.y + pt2.y) / 2
};
}
/**
* @private
* @param {?} pt1
* @param {?} pt2
* @return {?}
*/
computeEdgeTangentOffset(pt1, pt2) {
return (pt2.y - pt1.y) / 2;
}
/**
* @private
* @param {?} pt1
* @param {?} pt2
* @return {?}
*/
computeEdgeSourceTangent(pt1, pt2) {
return {
x: pt1.x,
y: pt1.y + this.computeEdgeTangentOffset(pt1, pt2)
};
}
/**
* @private
* @param {?} pt1
* @param {?} pt2
* @return {?}
*/
computeEdgeDestinationTangent(pt1, pt2) {
return {
x: pt2.x,
y: pt2.y - this.computeEdgeTangentOffset(pt1, pt2)
};
}
}
FcEdgeDrawingService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
FcEdgeDrawingService.ctorParameters = () => [];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRnZS1kcmF3aW5nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZmxvd2NoYXJ0LyIsInNvdXJjZXMiOlsibGliL2VkZ2UtZHJhd2luZy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBWSxrQkFBa0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBR3RFLE1BQU0sT0FBTyxvQkFBb0I7SUFFL0I7SUFDQSxDQUFDOzs7Ozs7O0lBRU0saUJBQWlCLENBQUMsR0FBYSxFQUFFLEdBQWEsRUFBRSxLQUFhOztZQUM5RCxVQUFVLEdBQUcsS0FBSyxHQUFHLENBQUMsQ0FBQyxLQUFLLEdBQUcsQ0FBQyxDQUFDLEdBQUc7UUFDeEMsSUFBSSxLQUFLLEtBQUssa0JBQWtCLENBQUMsV0FBVyxFQUFFOztrQkFDdEMsYUFBYSxHQUFHLElBQUksQ0FBQyx3QkFBd0IsQ0FBQyxHQUFHLEVBQUUsR0FBRyxDQUFDOztrQkFDdkQsa0JBQWtCLEdBQUcsSUFBSSxDQUF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dXRlRWRnZVRhbmdlbnRPZmZzZXQocHQxLCBwdDIpXG4gICAgfTtcbiAgfVxuXG59XG4iXX0=
\ No newline at end of file
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { Directive, ElementRef, HostListener, Input } from '@angular/core';
import { FlowchartConstants } from './ngx-flowchart.models';
export class FcMagnetDirective {
/**
* @param {?} elementRef
*/
constructor(elementRef) {
this.elementRef = elementRef;
}
/**
* @return {?}
*/
ngOnInit() {
/** @type {?} */
const element = $(this.elementRef.nativeElement);
element.addClass(FlowchartConstants.magnetClass);
}
/**
* @param {?} event
* @return {?}
*/
dragover(event) {
return this.callbacks.edgeDragoverMagnet(event, this.connector);
}
/**
* @param {?} event
* @return {?}
*/
dragleave(event) {
this.callbacks.edgeDragleaveMagnet(event);
}
/**
* @param {?} event
* @return {?}
*/
drop(event) {
return this.callbacks.edgeDrop(event, this.connector);
}
/**
* @param {?} event
* @return {?}
*/
dragend(event) {
this.callbacks.edgeDragend(event);
}
}
FcMagnetDirective.decorators = [
{ type: Directive, args: [{
// tslint:disable-next-line:directive-selector
selector: '[fc-magnet]'
},] }
];
/** @nocollapse */
FcMagnetDirective.ctorParameters = () => [
{ type: ElementRef }
];
FcMagnetDirective.propDecorators = {
callbacks: [{ type: Input }],
connector: [{ type: Input }],
dragover: [{ type: HostListener, args: ['dragover', ['$event'],] }],
dragleave: [{ type: HostListener, args: ['dragleave', ['$event'],] }],
drop: [{ type: HostListener, args: ['drop', ['$event'],] }],
dragend: [{ type: HostListener, args: ['dragend', ['$event'],] }]
};
if (false) {
/** @type {?} */
FcMagnetDirective.prototype.callbacks;
/** @type {?} */
FcMagnetDirective.prototype.connector;
/** @type {?} */
FcMagnetDirective.prototype.elementRef;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFnbmV0LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb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ZW1lbnRSZWY6IEVsZW1lbnRSZWY8SFRNTEVsZW1lbnQ+KSB7XG4gIH1cblxuICBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgICBjb25zdCBlbGVtZW50ID0gJCh0aGlzLmVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCk7XG4gICAgZWxlbWVudC5hZGRDbGFzcyhGbG93Y2hhcnRDb25zdGFudHMubWFnbmV0Q2xhc3MpO1xuICB9XG5cbiAgQEhvc3RMaXN0ZW5lcignZHJhZ292ZXInLCBbJyRldmVudCddKVxuICBkcmFnb3ZlcihldmVudDogRHJhZ0V2ZW50KSB7XG4gICAgcmV0dXJuIHRoaXMuY2FsbGJhY2tzLmVkZ2VEcmFnb3Zlck1hZ25ldChldmVudCwgdGhpcy5jb25uZWN0b3IpO1xuICB9XG5cbiAgQEhvc3RMaXN0ZW5lcignZHJhZ2xlYXZlJywgWyckZXZlbnQnXSlcbiAgZHJhZ2xlYXZlKGV2ZW50OiBEcmFnRXZlbnQpIHtcbiAgICB0aGlzLmNhbGxiYWNrcy5lZGdlRHJhZ2xlYXZlTWFnbmV0KGV2ZW50KTtcbiAgfVxuXG4gIEBIb3N0TGlzdGVuZXIoJ2Ryb3AnLCBbJyRldmVudCddKVxuICBkcm9wKGV2ZW50OiBEcmFnRXZlbnQpIHtcbiAgICByZXR1cm4gdGhpcy5jYWxsYmFja3MuZWRnZURyb3AoZXZlbnQsIHRoaXMuY29ubmVjdG9yKTtcbiAgfVxuXG4gIEBIb3N0TGlzdGVuZXIoJ2RyYWdlbmQnLCBbJyRldmVudCddKVxuICBkcmFnZW5kKGV2ZW50OiBEcmFnRXZlbnQpIHtcbiAgICB0aGlzLmNhbGxiYWNrcy5lZGdlRHJhZ2VuZChldmVudCk7XG4gIH1cblxufVxuIl19
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
export class FcMouseOverService {
/**
* @param {?} applyFunction
*/
constructor(applyFunction) {
this.mouseoverscope = {
connector: null,
edge: null,
node: null
};
this.applyFunction = applyFunction;
}
/**
* @param {?} event
* @param {?} node
* @return {?}
*/
nodeMouseOver(event, node) {
return this.applyFunction((/**
* @return {?}
*/
() => {
this.mouseoverscope.node = node;
}));
}
/**
* @param {?} event
* @param {?} node
* @return {?}
*/
nodeMouseOut(event, node) {
return this.applyFunction((/**
* @return {?}
*/
() => {
this.mouseoverscope.node = null;
}));
}
/**
* @param {?} event
* @param {?} connector
* @return {?}
*/
connectorMouseEnter(event, connector) {
return this.applyFunction((/**
* @return {?}
*/
() => {
this.mouseoverscope.connector = connector;
}));
}
/**
* @param {?} event
* @param {?} connector
* @return {?}
*/
connectorMouseLeave(event, connector) {
return this.applyFunction((/**
* @return {?}
*/
() => {
this.mouseoverscope.connector = null;
}));
}
/**
* @param {?} event
* @param {?} edge
* @return {?}
*/
edgeMouseEnter(event, edge) {
this.mouseoverscope.edge = edge;
}
/**
* @param {?} event
* @param {?} edge
* @return {?}
*/
edgeMouseLeave(event, edge) {
this.mouseoverscope.edge = null;
}
}
if (false) {
/** @type {?} */
FcMouseOverService.prototype.mouseoverscope;
/**
* @type {?}
* @private
*/
FcMouseOverService.prototype.applyFunction;
}
/**
* @record
*/
export function MouseOverScope() { }
if (false) {
/** @type {?} */
MouseOverScope.prototype.connector;
/** @type {?} */
MouseOverScope.prototype.edge;
/** @type {?} */
MouseOverScope.prototype.node;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW91c2VvdmVyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZmxvd2NoYXJ0LyIsInNvdXJjZXMiOlsibGliL21vdXNlb3Zlci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFFQSxNQUFNLE9BQU8sa0JBQWtCOzs7O0lBVTdCLFlB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5lY3RvcjtcbiAgZWRnZTogRmNFZGdlO1xuICBub2RlOiBGY05vZGU7XG59XG4iXX0=
\ No newline at end of file
This diff is collapsed.
...@@ -4,13 +4,45 @@ ...@@ -4,13 +4,45 @@
*/ */
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { NgxFlowchartComponent } from './ngx-flowchart.component'; import { NgxFlowchartComponent } from './ngx-flowchart.component';
import { FcModelValidationService } from './modelvalidation.service';
import { FcEdgeDrawingService } from './edge-drawing.service';
import { CommonModule } from '@angular/common';
import { FcMagnetDirective } from './magnet.directive';
import { FcConnectorDirective } from './connector.directive';
import { FcNodeContainerComponent } from './node.component';
import { FC_NODE_COMPONENT_CONFIG } from './ngx-flowchart.models';
import { DefaultFcNodeComponent } from './default-node.component';
const ɵ0 = {
nodeComponentType: DefaultFcNodeComponent
};
export class NgxFlowchartModule { export class NgxFlowchartModule {
} }
NgxFlowchartModule.decorators = [ NgxFlowchartModule.decorators = [
{ type: NgModule, args: [{ { type: NgModule, args: [{
declarations: [NgxFlowchartComponent], entryComponents: [
imports: [], DefaultFcNodeComponent
exports: [NgxFlowchartComponent] ],
declarations: [NgxFlowchartComponent,
FcMagnetDirective,
FcConnectorDirective,
FcNodeContainerComponent,
DefaultFcNodeComponent],
providers: [
FcModelValidationService,
FcEdgeDrawingService,
{
provide: FC_NODE_COMPONENT_CONFIG,
useValue: ɵ0
}
],
imports: [
CommonModule
],
exports: [NgxFlowchartComponent,
FcMagnetDirective,
FcConnectorDirective,
DefaultFcNodeComponent]
},] } },] }
]; ];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZsb3djaGFydC5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZmxvd2NoYXJ0LyIsInNvdXJjZXMiOlsibGliL25neC1mbG93Y2hhcnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPL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ICBEZWZhdWx0RmNOb2RlQ29tcG9uZW50XSxcbiAgcHJvdmlkZXJzOiBbXG4gICAgRmNNb2RlbFZhbGlkYXRpb25TZXJ2aWNlLFxuICAgIEZjRWRnZURyYXdpbmdTZXJ2aWNlLFxuICAgIHtcbiAgICAgIHByb3ZpZGU6IEZDX05PREVfQ09NUE9ORU5UX0NPTkZJRyxcbiAgICAgIHVzZVZhbHVlOiB7XG4gICAgICAgIG5vZGVDb21wb25lbnRUeXBlOiBEZWZhdWx0RmNOb2RlQ29tcG9uZW50XG4gICAgICB9XG4gICAgfVxuICBdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlXG4gIF0sXG4gIGV4cG9ydHM6IFtOZ3hGbG93Y2hhcnRDb21wb25lbnQsXG4gICAgRmNNYWduZXREaXJlY3RpdmUsXG4gICAgRmNDb25uZWN0b3JEaXJlY3RpdmUsXG4gICAgRGVmYXVsdEZjTm9kZUNvbXBvbmVudF1cbn0pXG5leHBvcnQgY2xhc3MgTmd4Rmxvd2NoYXJ0TW9kdWxlIHsgfVxuIl19
\ No newline at end of file
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { Injectable } from '@angular/core';
import * as i0 from "@angular/core";
export class NgxFlowchartService {
constructor() { }
}
NgxFlowchartService.decorators = [
{ type: Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
NgxFlowchartService.ctorParameters = () => [];
/** @nocollapse */ NgxFlowchartService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgxFlowchartService_Factory() { return new NgxFlowchartService(); }, token: NgxFlowchartService, providedIn: "root" });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZsb3djaGFydC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWZsb3djaGFydC8iLCJzb3VyY2VzIjpbImxpYi9uZ3gtZmxvd2NoYXJ0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBSzNDLE1BQU0sT0FBTyxtQkFBbUI7SUFFOUIsZ0JBQWdCLENBQUM7OztZQUxsQixVQUFVLFNBQUM7Z0JBQ1YsVUFBVSxFQUFFLE1BQU07YUFDbkIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBJbmplY3RhYmxlKHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnXG59KVxuZXhwb3J0IGNsYXNzIE5neEZsb3djaGFydFNlcnZpY2Uge1xuXG4gIGNvbnN0cnVjdG9yKCkgeyB9XG59XG4iXX0=
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
const regex = /(auto|scroll)/;
/** @type {?} */
const style = (/**
* @param {?} node
* @param {?} prop
* @return {?}
*/
(node, prop) => getComputedStyle(node, null).getPropertyValue(prop));
const ɵ0 = style;
/** @type {?} */
const scroll = (/**
* @param {?} node
* @return {?}
*/
(node) => regex.test(style(node, 'overflow') +
style(node, 'overflow-y') +
style(node, 'overflow-x')));
const ɵ1 = scroll;
/** @type {?} */
const scrollparent = (/**
* @param {?} node
* @return {?}
*/
(node) => !node || node === document.body
? document.body
: scroll(node)
? node
: scrollparent((/** @type {?} */ (node.parentNode))));
const ɵ2 = scrollparent;
export default scrollparent;
export { ɵ0, ɵ1, ɵ2 };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xscGFyZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWZsb3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51bGwpLmdldFByb3BlcnR5VmFsdWUocHJvcCk7XG5cbmNvbnN0IHNjcm9sbCA9IChub2RlOiBFbGVtZW50KSA9PlxuICByZWdleC50ZXN0KFxuICAgIHN0eWxlKG5vZGUsICdvdmVyZmxvdycpICtcbiAgICBzdHlsZShub2RlLCAnb3ZlcmZsb3cteScpICtcbiAgICBzdHlsZShub2RlLCAnb3ZlcmZsb3cteCcpKTtcblxuY29uc3Qgc2Nyb2xscGFyZW50ID0gKG5vZGU6IEhUTUxFbGVtZW50KTogSFRNTEVsZW1lbnQgPT5cbiAgIW5vZGUgfHwgbm9kZSA9PT0gZG9jdW1lbnQuYm9keVxuICAgID8gZG9jdW1lbnQuYm9keVxuICAgIDogc2Nyb2xsKG5vZGUpXG4gICAgPyBub2RlXG4gICAgOiBzY3JvbGxwYXJlbnQobm9kZS5wYXJlbnROb2RlIGFzIEhUTUxFbGVtZW50KTtcblxuZXhwb3J0IGRlZmF1bHQgc2Nyb2xscGFyZW50O1xuIl19
\ No newline at end of file
...@@ -5,5 +5,11 @@ ...@@ -5,5 +5,11 @@
/** /**
* Generated bundle index. Do not edit. * Generated bundle index. Do not edit.
*/ */
export { NgxFlowchartService, NgxFlowchartComponent, NgxFlowchartModule } from './public-api'; export { FcNodeComponent, NgxFlowchartComponent, NgxFlowchartModule, fcTopSort, FC_NODE_COMPONENT_CONFIG, FlowchartConstants, ModelvalidationError } from './public-api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZsb3djaGFydC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1mbG93Y2hhcnQvIiwic291cmNlcyI6WyJuZ3gtZmxvd2NoYXJ0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSwrRUFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0= export { FcConnectorDirective as ɵf } from './lib/connector.directive';
\ No newline at end of file export { DefaultFcNodeComponent as ɵd } from './lib/default-node.component';
export { FcEdgeDrawingService as ɵc } from './lib/edge-drawing.service';
export { FcMagnetDirective as ɵe } from './lib/magnet.directive';
export { FcModelValidationService as ɵb } from './lib/modelvalidation.service';
export { FcNodeContainerComponent as ɵa } from './lib/node.component';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWZsb3djaGFydC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1mbG93Y2hhcnQvIiwic291cmNlcyI6WyJuZ3gtZmxvd2NoYXJ0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSwwSkFBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLG9CQUFvQixJQUFJLEVBQUUsRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBQ3JFLE9BQU8sRUFBQyxzQkFBc0IsSUFBSSxFQUFFLEVBQUMsTUFBTSw4QkFBOEIsQ0FBQztBQUMxRSxPQUFPLEVBQUMsb0JBQW9CLElBQUksRUFBRSxFQUFDLE1BQU0sNEJBQTRCLENBQUM7QUFDdEUsT0FBTyxFQUFDLGlCQUFpQixJQUFJLEVBQUUsRUFBQyxNQUFNLHdCQUF3QixDQUFDO0FBQy9ELE9BQU8sRUFBQyx3QkFBd0IsSUFBSSxFQUFFLEVBQUMsTUFBTSwrQkFBK0IsQ0FBQztBQUM3RSxPQUFPLEVBQUMsd0JBQXdCLElBQUksRUFBRSxFQUFDLE1BQU0sc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG5cbmV4cG9ydCB7RmNDb25uZWN0b3JEaXJlY3RpdmUgYXMgybVmfSBmcm9tICcuL2xpYi9jb25uZWN0b3IuZGlyZWN0aXZlJztcbmV4cG9ydCB7RGVmYXVsdEZjTm9kZUNvbXBvbmVudCBhcyDJtWR9IGZyb20gJy4vbGliL2RlZmF1bHQtbm9kZS5jb21wb25lbnQnO1xuZXhwb3J0IHtGY0VkZ2VEcmF3aW5nU2VydmljZSBhcyDJtWN9IGZyb20gJy4vbGliL2VkZ2UtZHJhd2luZy5zZXJ2aWNlJztcbmV4cG9ydCB7RmNNYWduZXREaXJlY3RpdmUgYXMgybVlfSBmcm9tICcuL2xpYi9tYWduZXQuZGlyZWN0aXZlJztcbmV4cG9ydCB7RmNNb2RlbFZhbGlkYXRpb25TZXJ2aWNlIGFzIMm1Yn0gZnJvbSAnLi9saWIvbW9kZWx2YWxpZGF0aW9uLnNlcnZpY2UnO1xuZXhwb3J0IHtGY05vZGVDb250YWluZXJDb21wb25lbnQgYXMgybVhfSBmcm9tICcuL2xpYi9ub2RlLmNvbXBvbmVudCc7Il19
\ No newline at end of file
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
/* /*
* Public API Surface of ngx-flowchart * Public API Surface of ngx-flowchart
*/ */
export { NgxFlowchartService } from './lib/ngx-flowchart.service';
export { NgxFlowchartComponent } from './lib/ngx-flowchart.component'; export { NgxFlowchartComponent } from './lib/ngx-flowchart.component';
export { NgxFlowchartModule } from './lib/ngx-flowchart.module'; export { NgxFlowchartModule } from './lib/ngx-flowchart.module';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1mbG93Y2hhcnQvIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSxvQ0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxzQ0FBYywrQkFBK0IsQ0FBQztBQUM5QyxtQ0FBYyw0QkFBNEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2Ygbmd4LWZsb3djaGFydFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL25neC1mbG93Y2hhcnQuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtZmxvd2NoYXJ0LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtZmxvd2NoYXJ0Lm1vZHVsZSc7XG4iXX0= export { fcTopSort, FC_NODE_COMPONENT_CONFIG, FlowchartConstants, ModelvalidationError } from './lib/ngx-flowchart.models';
\ No newline at end of file export { FcNodeComponent } from './lib/node.component';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1mbG93Y2hhcnQvIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSxzQ0FBYywrQkFBK0IsQ0FBQztBQUM5QyxtQ0FBYyw0QkFBNEIsQ0FBQztBQUMzQyw4RkFBYyw0QkFBNEIsQ0FBQztBQUMzQyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIG5neC1mbG93Y2hhcnRcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtZmxvd2NoYXJ0LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtZmxvd2NoYXJ0Lm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtZmxvd2NoYXJ0Lm1vZGVscyc7XG5leHBvcnQgeyBGY05vZGVDb21wb25lbnQgfSBmcm9tICcuL2xpYi9ub2RlLmNvbXBvbmVudCc7XG4iXX0=
\ No newline at end of file
This diff is collapsed.
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import * as tslib_1 from "tslib";
import { Component } from '@angular/core';
import { FcNodeComponent } from './node.component';
var DefaultFcNodeComponent = /** @class */ (function (_super) {
tslib_1.__extends(DefaultFcNodeComponent, _super);
function DefaultFcNodeComponent() {
return _super.call(this) || this;
}
DefaultFcNodeComponent.decorators = [
{ type: Component, args: [{
selector: 'fc-default-node',
template: "<div\n (dblclick)=\"userNodeCallbacks.doubleClick($event, node)\">\n <div class=\"{{flowchartConstants.nodeOverlayClass}}\"></div>\n <div class=\"innerNode\">\n <p>{{ node.name }}</p>\n\n <div class=\"{{flowchartConstants.leftConnectorClass}}\">\n <div fc-magnet [connector]=\"connector\" [callbacks]=\"callbacks\"\n *ngFor=\"let connector of modelservice.nodes.getConnectorsByType(node, flowchartConstants.leftConnectorType)\">\n <div fc-connector [connector]=\"connector\"\n [mouseOverConnector]=\"mouseOverConnector\"\n [callbacks]=\"callbacks\"\n [modelservice]=\"modelservice\"></div>\n </div>\n </div>\n <div class=\"{{flowchartConstants.rightConnectorClass}}\">\n <div fc-magnet [connector]=\"connector\" [callbacks]=\"callbacks\"\n *ngFor=\"let connector of modelservice.nodes.getConnectorsByType(node, flowchartConstants.rightConnectorType)\">\n <div fc-connector [connector]=\"connector\"\n [mouseOverConnector]=\"mouseOverConnector\"\n [callbacks]=\"callbacks\"\n [modelservice]=\"modelservice\"></div>\n </div>\n </div>\n </div>\n <div *ngIf=\"modelservice.isEditable() && !node.readonly\" class=\"fc-nodeedit\" (click)=\"userNodeCallbacks.nodeEdit($event, node)\">\n <i class=\"fa fa-pencil\" aria-hidden=\"true\"></i>\n </div>\n <div *ngIf=\"modelservice.isEditable() && !node.readonly\" class=\"fc-nodedelete\" (click)=\"modelservice.nodes.delete(node)\">\n &times;\n </div>\n</div>\n",
styles: [":host .fc-node-overlay{position:absolute;pointer-events:none;left:0;top:0;right:0;bottom:0;background-color:#000;opacity:0}:host :host-context(.fc-hover) .fc-node-overlay{opacity:.25;transition:opacity .2s}:host :host-context(.fc-selected) .fc-node-overlay{opacity:.25}:host .innerNode{display:flex;justify-content:center;align-items:center;min-width:100px;border-radius:5px;background-color:#f15b26;color:#fff;font-size:16px;pointer-events:none}:host .innerNode p{padding:0 15px;text-align:center}"]
}] }
];
/** @nocollapse */
DefaultFcNodeComponent.ctorParameters = function () { return []; };
return DefaultFcNodeComponent;
}(FcNodeComponent));
export { DefaultFcNodeComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC1ub2RlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1mbG93Y2hhcnQvIiwic291cmNlcyI6WyJsaWIvZGVmYXVsdC1ub2RlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRW5EO0lBSzRDLGtEQUFlO0lBRXpEO2VBQ0UsaUJBQU87SUFDVCxDQUFDOztnQkFURixTQUFTLFNBQUM7b0JBQ1QsUUFBUSxFQUFFLGlCQUFpQjtvQkFDM0IsOGhEQUE0Qzs7aUJBRTdDOzs7O0lBT0QsNkJBQUM7Q0FBQSxBQVhELENBSzRDLGVBQWUsR0FNMUQ7U0FOWSxzQkFBc0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IEZjTm9kZUNvbXBvbmVudCB9IGZyb20gJy4vbm9kZS5jb21wb25lbnQnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdmYy1kZWZhdWx0LW5vZGUnLFxuICB0ZW1wbGF0ZVVybDogJy4vZGVmYXVsdC1ub2RlLmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmxzOiBbJy4vZGVmYXVsdC1ub2RlLmNvbXBvbmVudC5zY3NzJ11cbn0pXG5leHBvcnQgY2xhc3MgRGVmYXVsdEZjTm9kZUNvbXBvbmVudCBleHRlbmRzIEZjTm9kZUNvbXBvbmVudCB7XG5cbiAgY29uc3RydWN0b3IoKSB7XG4gICAgc3VwZXIoKTtcbiAgfVxuXG59XG4iXX0=
\ No newline at end of file
This diff is collapsed.
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { Injectable } from '@angular/core';
import { FlowchartConstants } from './ngx-flowchart.models';
var FcEdgeDrawingService = /** @class */ (function () {
function FcEdgeDrawingService() {
}
/**
* @param {?} pt1
* @param {?} pt2
* @param {?} style
* @return {?}
*/
FcEdgeDrawingService.prototype.getEdgeDAttribute = /**
* @param {?} pt1
* @param {?} pt2
* @param {?} style
* @return {?}
*/
function (pt1, pt2, style) {
/** @type {?} */
var dAddribute = "M " + pt1.x + ", " + pt1.y + " ";
if (style === FlowchartConstants.curvedStyle) {
/** @type {?} */
var sourceTangent = this.computeEdgeSourceTangent(pt1, pt2);
/** @type {?} */
var destinationTangent = this.computeEdgeDestinationTangent(pt1, pt2);
dAddribute += "C " + sourceTangent.x + ", " + sourceTangent.y + " " + (destinationTangent.x - 50) + ", " + destinationTangent.y + " " + pt2.x + ", " + pt2.y;
}
else {
dAddribute += "L " + pt2.x + ", " + pt2.y;
}
return dAddribute;
};
/**
* @param {?} pt1
* @param {?} pt2
* @return {?}
*/
FcEdgeDrawingService.prototype.getEdgeCenter = /**
* @param {?} pt1
* @param {?} pt2
* @return {?}
*/
function (pt1, pt2) {
return {
x: (pt1.x + pt2.x) / 2,
y: (pt1.y + pt2.y) / 2
};
};
/**
* @private
* @param {?} pt1
* @param {?} pt2
* @return {?}
*/
FcEdgeDrawingService.prototype.computeEdgeTangentOffset = /**
* @private
* @param {?} pt1
* @param {?} pt2
* @return {?}
*/
function (pt1, pt2) {
return (pt2.y - pt1.y) / 2;
};
/**
* @private
* @param {?} pt1
* @param {?} pt2
* @return {?}
*/
FcEdgeDrawingService.prototype.computeEdgeSourceTangent = /**
* @private
* @param {?} pt1
* @param {?} pt2
* @return {?}
*/
function (pt1, pt2) {
return {
x: pt1.x,
y: pt1.y + this.computeEdgeTangentOffset(pt1, pt2)
};
};
/**
* @private
* @param {?} pt1
* @param {?} pt2
* @return {?}
*/
FcEdgeDrawingService.prototype.computeEdgeDestinationTangent = /**
* @private
* @param {?} pt1
* @param {?} pt2
* @return {?}
*/
function (pt1, pt2) {
return {
x: pt2.x,
y: pt2.y - this.computeEdgeTangentOffset(pt1, pt2)
};
};
FcEdgeDrawingService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
FcEdgeDrawingService.ctorParameters = function () { return []; };
return FcEdgeDrawingService;
}());
export { FcEdgeDrawingService };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRnZS1kcmF3aW5nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZmxvd2NoYXJ0LyIsInNvdXJjZXMiOlsibGliL2VkZ2UtZHJhd2luZy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBWSxrQkFBa0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBRXRFO0lBR0U7SUFDQSxDQUFDOzs7Ozs7O0lBRU0sZ0RBQWlCOz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F0ZSBjb21wdXRlRWRnZVNvdXJjZVRhbmdlbnQocHQxOiBGY0Nvb3JkcywgcHQyOiBGY0Nvb3Jkcyk6IEZjQ29vcmRzIHtcbiAgICByZXR1cm4ge1xuICAgICAgeDogcHQxLngsXG4gICAgICB5OiBwdDEueSArIHRoaXMuY29tcHV0ZUVkZ2VUYW5nZW50T2Zmc2V0KHB0MSwgcHQyKVxuICAgIH07XG4gIH1cblxuICBwcml2YXRlIGNvbXB1dGVFZGdlRGVzdGluYXRpb25UYW5nZW50KHB0MTogRmNDb29yZHMsIHB0MjogRmNDb29yZHMpOiBGY0Nvb3JkcyB7XG4gICAgcmV0dXJuIHtcbiAgICAgIHg6IHB0Mi54LFxuICAgICAgeTogcHQyLnkgLSB0aGlzLmNvbXB1dGVFZGdlVGFuZ2VudE9mZnNldChwdDEsIHB0MilcbiAgICB9O1xuICB9XG5cbn1cbiJdfQ==
\ No newline at end of file
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { Directive, ElementRef, HostListener, Input } from '@angular/core';
import { FlowchartConstants } from './ngx-flowchart.models';
var FcMagnetDirective = /** @class */ (function () {
function FcMagnetDirective(elementRef) {
this.elementRef = elementRef;
}
/**
* @return {?}
*/
FcMagnetDirective.prototype.ngOnInit = /**
* @return {?}
*/
function () {
/** @type {?} */
var element = $(this.elementRef.nativeElement);
element.addClass(FlowchartConstants.magnetClass);
};
/**
* @param {?} event
* @return {?}
*/
FcMagnetDirective.prototype.dragover = /**
* @param {?} event
* @return {?}
*/
function (event) {
return this.callbacks.edgeDragoverMagnet(event, this.connector);
};
/**
* @param {?} event
* @return {?}
*/
FcMagnetDirective.prototype.dragleave = /**
* @param {?} event
* @return {?}
*/
function (event) {
this.callbacks.edgeDragleaveMagnet(event);
};
/**
* @param {?} event
* @return {?}
*/
FcMagnetDirective.prototype.drop = /**
* @param {?} event
* @return {?}
*/
function (event) {
return this.callbacks.edgeDrop(event, this.connector);
};
/**
* @param {?} event
* @return {?}
*/
FcMagnetDirective.prototype.dragend = /**
* @param {?} event
* @return {?}
*/
function (event) {
this.callbacks.edgeDragend(event);
};
FcMagnetDirective.decorators = [
{ type: Directive, args: [{
// tslint:disable-next-line:directive-selector
selector: '[fc-magnet]'
},] }
];
/** @nocollapse */
FcMagnetDirective.ctorParameters = function () { return [
{ type: ElementRef }
]; };
FcMagnetDirective.propDecorators = {
callbacks: [{ type: Input }],
connector: [{ type: Input }],
dragover: [{ type: HostListener, args: ['dragover', ['$event'],] }],
dragleave: [{ type: HostListener, args: ['dragleave', ['$event'],] }],
drop: [{ type: HostListener, args: ['drop', ['$event'],] }],
dragend: [{ type: HostListener, args: ['dragend', ['$event'],] }]
};
return FcMagnetDirective;
}());
export { FcMagnetDirective };
if (false) {
/** @type {?} */
FcMagnetDirective.prototype.callbacks;
/** @type {?} */
FcMagnetDirective.prototype.connector;
/** @type {?} */
FcMagnetDirective.prototype.elementRef;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFnbmV0LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1mbG93Y2hhcnQvIiwic291cmNlcyI6WyJsaWIvbWFnbmV0LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUNuRixPQUFPLEVBQTRCLGtCQUFrQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFdEY7SUFZRSwyQkFBbUIsVUFBbUM7UUFBbkMsZUFBVSxHQUFWLFVBQVUsQ0FBeUI7SUFDdEQsQ0FBQzs7OztJQUVELG9DQUFROzs7SUFBUjs7WUFDUSxPQUFPLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyx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iYWNrcy5lZGdlRHJhZ292ZXJNYWduZXQoZXZlbnQsIHRoaXMuY29ubmVjdG9yKTtcbiAgfVxuXG4gIEBIb3N0TGlzdGVuZXIoJ2RyYWdsZWF2ZScsIFsnJGV2ZW50J10pXG4gIGRyYWdsZWF2ZShldmVudDogRHJhZ0V2ZW50KSB7XG4gICAgdGhpcy5jYWxsYmFja3MuZWRnZURyYWdsZWF2ZU1hZ25ldChldmVudCk7XG4gIH1cblxuICBASG9zdExpc3RlbmVyKCdkcm9wJywgWyckZXZlbnQnXSlcbiAgZHJvcChldmVudDogRHJhZ0V2ZW50KSB7XG4gICAgcmV0dXJuIHRoaXMuY2FsbGJhY2tzLmVkZ2VEcm9wKGV2ZW50LCB0aGlzLmNvbm5lY3Rvcik7XG4gIH1cblxuICBASG9zdExpc3RlbmVyKCdkcmFnZW5kJywgWyckZXZlbnQnXSlcbiAgZHJhZ2VuZChldmVudDogRHJhZ0V2ZW50KSB7XG4gICAgdGhpcy5jYWxsYmFja3MuZWRnZURyYWdlbmQoZXZlbnQpO1xuICB9XG5cbn1cbiJdfQ==
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var FcMouseOverService = /** @class */ (function () {
function FcMouseOverService(applyFunction) {
this.mouseoverscope = {
connector: null,
edge: null,
node: null
};
this.applyFunction = applyFunction;
}
/**
* @param {?} event
* @param {?} node
* @return {?}
*/
FcMouseOverService.prototype.nodeMouseOver = /**
* @param {?} event
* @param {?} node
* @return {?}
*/
function (event, node) {
var _this = this;
return this.applyFunction((/**
* @return {?}
*/
function () {
_this.mouseoverscope.node = node;
}));
};
/**
* @param {?} event
* @param {?} node
* @return {?}
*/
FcMouseOverService.prototype.nodeMouseOut = /**
* @param {?} event
* @param {?} node
* @return {?}
*/
function (event, node) {
var _this = this;
return this.applyFunction((/**
* @return {?}
*/
function () {
_this.mouseoverscope.node = null;
}));
};
/**
* @param {?} event
* @param {?} connector
* @return {?}
*/
FcMouseOverService.prototype.connectorMouseEnter = /**
* @param {?} event
* @param {?} connector
* @return {?}
*/
function (event, connector) {
var _this = this;
return this.applyFunction((/**
* @return {?}
*/
function () {
_this.mouseoverscope.connector = connector;
}));
};
/**
* @param {?} event
* @param {?} connector
* @return {?}
*/
FcMouseOverService.prototype.connectorMouseLeave = /**
* @param {?} event
* @param {?} connector
* @return {?}
*/
function (event, connector) {
var _this = this;
return this.applyFunction((/**
* @return {?}
*/
function () {
_this.mouseoverscope.connector = null;
}));
};
/**
* @param {?} event
* @param {?} edge
* @return {?}
*/
FcMouseOverService.prototype.edgeMouseEnter = /**
* @param {?} event
* @param {?} edge
* @return {?}
*/
function (event, edge) {
this.mouseoverscope.edge = edge;
};
/**
* @param {?} event
* @param {?} edge
* @return {?}
*/
FcMouseOverService.prototype.edgeMouseLeave = /**
* @param {?} event
* @param {?} edge
* @return {?}
*/
function (event, edge) {
this.mouseoverscope.edge = null;
};
return FcMouseOverService;
}());
export { FcMouseOverService };
if (false) {
/** @type {?} */
FcMouseOverService.prototype.mouseoverscope;
/**
* @type {?}
* @private
*/
FcMouseOverService.prototype.applyFunction;
}
/**
* @record
*/
export function MouseOverScope() { }
if (false) {
/** @type {?} */
MouseOverScope.prototype.connector;
/** @type {?} */
MouseOverScope.prototype.edge;
/** @type {?} */
MouseOverScope.prototype.node;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW91c2VvdmVyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZmxvd2NoYXJ0LyIsInNvdXJjZXMiOlsibGliL21vdXNlb3Zlci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFFQTtJQVVFLDRCQUFZLGFBQWtEO1FBUjlELG1CQUFjLEdBQW1CO1lBQy9CLFNBQVMsRUFBRSxJQUFJ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WxsO1xuICB9XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgTW91c2VPdmVyU2NvcGUge1xuICBjb25uZWN0b3I6IEZjQ29ubmVjdG9yO1xuICBlZGdlOiBGY0VkZ2U7XG4gIG5vZGU6IEZjTm9kZTtcbn1cbiJdfQ==
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
import { FcNodeComponent } from './node.component';
export declare class DefaultFcNodeComponent extends FcNodeComponent {
constructor();
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
declare const scrollparent: (node: HTMLElement) => HTMLElement;
export default scrollparent;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment