Commit 671b505b authored by Igor Kulikov's avatar Igor Kulikov

Fix

parent 3abd1987
(function (global, factory) { (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common')) : typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@angular/common')) :
typeof define === 'function' && define.amd ? define('ngx-flowchart', ['exports', '@angular/core', 'rxjs', '@angular/common'], factory) : typeof define === 'function' && define.amd ? define('ngx-flowchart', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', '@angular/common'], factory) :
(global = global || self, factory(global['ngx-flowchart'] = {}, global.ng.core, global.rxjs, global.ng.common)); (global = global || self, factory(global['ngx-flowchart'] = {}, global.ng.core, global.rxjs, global.rxjs.operators, global.ng.common));
}(this, (function (exports, core, rxjs, common) { 'use strict'; }(this, (function (exports, core, rxjs, operators, common) { 'use strict';
/*! ***************************************************************************** /*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved. Copyright (c) Microsoft Corporation. All rights reserved.
...@@ -548,11 +548,13 @@ ...@@ -548,11 +548,13 @@
*/ */
var FcModelService = /** @class */ (function () { var FcModelService = /** @class */ (function () {
function FcModelService(modelValidation, model, modelChanged, cd, selectedObjects, dropNode, createEdge, edgeAddedCallback, nodeRemovedCallback, edgeRemovedCallback, canvasHtmlElement, svgHtmlElement) { function FcModelService(modelValidation, model, modelChanged, cd, selectedObjects, dropNode, createEdge, edgeAddedCallback, nodeRemovedCallback, edgeRemovedCallback, canvasHtmlElement, svgHtmlElement) {
var _this = this;
this.connectorsHtmlElements = {}; this.connectorsHtmlElements = {};
this.nodesHtmlElements = {}; this.nodesHtmlElements = {};
this.canvasHtmlElement = null; this.canvasHtmlElement = null;
this.dragImage = null; this.dragImage = null;
this.svgHtmlElement = null; this.svgHtmlElement = null;
this.debouncer = new rxjs.Subject();
this.modelValidation = modelValidation; this.modelValidation = modelValidation;
this.model = model; this.model = model;
this.modelChanged = modelChanged; this.modelChanged = modelChanged;
...@@ -586,6 +588,12 @@ ...@@ -586,6 +588,12 @@
this.connectors = new ConnectorsModel(this); this.connectors = new ConnectorsModel(this);
this.nodes = new NodesModel(this); this.nodes = new NodesModel(this);
this.edges = new EdgesModel(this); this.edges = new EdgesModel(this);
this.debouncer
.pipe(operators.debounceTime(100))
.subscribe((/**
* @return {?}
*/
function () { return _this.modelChanged.emit(); }));
} }
/** /**
* @return {?} * @return {?}
...@@ -594,7 +602,7 @@ ...@@ -594,7 +602,7 @@
* @return {?} * @return {?}
*/ */
function () { function () {
this.modelChanged.emit(); this.debouncer.next();
}; };
/** /**
* @return {?} * @return {?}
...@@ -985,8 +993,16 @@ ...@@ -985,8 +993,16 @@
FcModelService.prototype.edgeRemovedCallback; FcModelService.prototype.edgeRemovedCallback;
/** @type {?} */ /** @type {?} */
FcModelService.prototype.dropTargetId; FcModelService.prototype.dropTargetId;
/** @type {?} */ /**
* @type {?}
* @private
*/
FcModelService.prototype.modelChanged; FcModelService.prototype.modelChanged;
/**
* @type {?}
* @private
*/
FcModelService.prototype.debouncer;
/** @type {?} */ /** @type {?} */
FcModelService.prototype.connectors; FcModelService.prototype.connectors;
/** @type {?} */ /** @type {?} */
......
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.
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
* @fileoverview added by tsickle * @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/ */
import { of } from 'rxjs'; import { of, Subject } from 'rxjs';
import { debounceTime } from 'rxjs/operators';
export class FcModelService { export class FcModelService {
/** /**
* @param {?} modelValidation * @param {?} modelValidation
...@@ -24,6 +25,7 @@ export class FcModelService { ...@@ -24,6 +25,7 @@ export class FcModelService {
this.canvasHtmlElement = null; this.canvasHtmlElement = null;
this.dragImage = null; this.dragImage = null;
this.svgHtmlElement = null; this.svgHtmlElement = null;
this.debouncer = new Subject();
this.modelValidation = modelValidation; this.modelValidation = modelValidation;
this.model = model; this.model = model;
this.modelChanged = modelChanged; this.modelChanged = modelChanged;
...@@ -57,12 +59,18 @@ export class FcModelService { ...@@ -57,12 +59,18 @@ export class FcModelService {
this.connectors = new ConnectorsModel(this); this.connectors = new ConnectorsModel(this);
this.nodes = new NodesModel(this); this.nodes = new NodesModel(this);
this.edges = new EdgesModel(this); this.edges = new EdgesModel(this);
this.debouncer
.pipe(debounceTime(100))
.subscribe((/**
* @return {?}
*/
() => this.modelChanged.emit()));
} }
/** /**
* @return {?} * @return {?}
*/ */
notifyModelChanged() { notifyModelChanged() {
this.modelChanged.emit(); this.debouncer.next();
} }
/** /**
* @return {?} * @return {?}
...@@ -364,8 +372,16 @@ if (false) { ...@@ -364,8 +372,16 @@ if (false) {
FcModelService.prototype.edgeRemovedCallback; FcModelService.prototype.edgeRemovedCallback;
/** @type {?} */ /** @type {?} */
FcModelService.prototype.dropTargetId; FcModelService.prototype.dropTargetId;
/** @type {?} */ /**
* @type {?}
* @private
*/
FcModelService.prototype.modelChanged; FcModelService.prototype.modelChanged;
/**
* @type {?}
* @private
*/
FcModelService.prototype.debouncer;
/** @type {?} */ /** @type {?} */
FcModelService.prototype.connectors; FcModelService.prototype.connectors;
/** @type {?} */ /** @type {?} */
...@@ -791,4 +807,4 @@ class EdgesModel extends AbstractFcModel { ...@@ -791,4 +807,4 @@ class EdgesModel extends AbstractFcModel {
})); }));
} }
} }
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kZWwuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1mbG93Y2hhcnQvIiwic291cmNlcyI6WyJsaWIvbW9kZWwuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHB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-3,14 +3,17 @@
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/ */
import * as tslib_1 from "tslib"; import * as tslib_1 from "tslib";
import { of } from 'rxjs'; import { of, Subject } from 'rxjs';
import { debounceTime } from 'rxjs/operators';
var FcModelService = /** @class */ (function () { var FcModelService = /** @class */ (function () {
function FcModelService(modelValidation, model, modelChanged, cd, selectedObjects, dropNode, createEdge, edgeAddedCallback, nodeRemovedCallback, edgeRemovedCallback, canvasHtmlElement, svgHtmlElement) { function FcModelService(modelValidation, model, modelChanged, cd, selectedObjects, dropNode, createEdge, edgeAddedCallback, nodeRemovedCallback, edgeRemovedCallback, canvasHtmlElement, svgHtmlElement) {
var _this = this;
this.connectorsHtmlElements = {}; this.connectorsHtmlElements = {};
this.nodesHtmlElements = {}; this.nodesHtmlElements = {};
this.canvasHtmlElement = null; this.canvasHtmlElement = null;
this.dragImage = null; this.dragImage = null;
this.svgHtmlElement = null; this.svgHtmlElement = null;
this.debouncer = new Subject();
this.modelValidation = modelValidation; this.modelValidation = modelValidation;
this.model = model; this.model = model;
this.modelChanged = modelChanged; this.modelChanged = modelChanged;
...@@ -44,6 +47,12 @@ var FcModelService = /** @class */ (function () { ...@@ -44,6 +47,12 @@ var FcModelService = /** @class */ (function () {
this.connectors = new ConnectorsModel(this); this.connectors = new ConnectorsModel(this);
this.nodes = new NodesModel(this); this.nodes = new NodesModel(this);
this.edges = new EdgesModel(this); this.edges = new EdgesModel(this);
this.debouncer
.pipe(debounceTime(100))
.subscribe((/**
* @return {?}
*/
function () { return _this.modelChanged.emit(); }));
} }
/** /**
* @return {?} * @return {?}
...@@ -52,7 +61,7 @@ var FcModelService = /** @class */ (function () { ...@@ -52,7 +61,7 @@ var FcModelService = /** @class */ (function () {
* @return {?} * @return {?}
*/ */
function () { function () {
this.modelChanged.emit(); this.debouncer.next();
}; };
/** /**
* @return {?} * @return {?}
...@@ -444,8 +453,16 @@ if (false) { ...@@ -444,8 +453,16 @@ if (false) {
FcModelService.prototype.edgeRemovedCallback; FcModelService.prototype.edgeRemovedCallback;
/** @type {?} */ /** @type {?} */
FcModelService.prototype.dropTargetId; FcModelService.prototype.dropTargetId;
/** @type {?} */ /**
* @type {?}
* @private
*/
FcModelService.prototype.modelChanged; FcModelService.prototype.modelChanged;
/**
* @type {?}
* @private
*/
FcModelService.prototype.debouncer;
/** @type {?} */ /** @type {?} */
FcModelService.prototype.connectors; FcModelService.prototype.connectors;
/** @type {?} */ /** @type {?} */
...@@ -1031,4 +1048,4 @@ var EdgesModel = /** @class */ (function (_super) { ...@@ -1031,4 +1048,4 @@ var EdgesModel = /** @class */ (function (_super) {
}; };
return EdgesModel; return EdgesModel;
}(AbstractFcModel)); }(AbstractFcModel));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kZWwuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1mbG93Y2hhcnQvIiwic291cmNlcyI6WyJsaWIvbW9kZWwuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUVBLE9BQU8sRUFBYyxFQUFFLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFHdEM7SUEyQkUsd0JBQVksZUFBeUMsRUFDekMsS0FBYyxFQUNkLFlBQStCLEVBQy9CLEVBQXFCLEVBQ3JCLGVBQXNCLEVBQ3RCLFFBQThDLEVBQzlDLFVBQThELEVBQzlELGlCQUF5QyxFQUN6QyxtQkFBMkMsRUFDM0MsbUJBQTJDLEVBQzNDLGlCQUE4QixFQUM5QixjQUEwQjtRQS9CdEMsMkJBQXNCLEdBQW1CLEVBQUUsQ0FBQztRQUM1QyxzQkFBaUIsR0FBbUIsRUFBRSxDQUFDO1FBQ3ZDLHNCQUFpQixHQUFnQixJQUFJLENBQUM7UUFDdEMsY0FBUyx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WRnZXMobW9kZWwuZWRnZXMuY29uY2F0KFtlZGdlXSksIG1vZGVsLm5vZGVzKTtcbiAgICB0aGlzLm1vZGVsU2VydmljZS5jcmVhdGVFZGdlKGV2ZW50LCBlZGdlKS5zdWJzY3JpYmUoXG4gICAgICAoY3JlYXRlZCkgPT4ge1xuICAgICAgICBtb2RlbC5lZGdlcy5wdXNoKGNyZWF0ZWQpO1xuICAgICAgICB0aGlzLm1vZGVsU2VydmljZS5ub3RpZnlNb2RlbENoYW5nZWQoKTtcbiAgICAgICAgdGhpcy5tb2RlbFNlcnZpY2UuZWRnZUFkZGVkQ2FsbGJhY2soY3JlYXRlZCk7XG4gICAgICB9XG4gICAgKTtcbiAgfVxufVxuIl19
\ No newline at end of file \ No newline at end of file
import { InjectionToken, Injectable, EventEmitter, Component, ChangeDetectionStrategy, ElementRef, IterableDiffers, ChangeDetectorRef, NgZone, HostBinding, Input, Output, HostListener, Directive, Inject, ComponentFactoryResolver, ViewChild, ViewContainerRef, NgModule } from '@angular/core'; import { InjectionToken, Injectable, EventEmitter, Component, ChangeDetectionStrategy, ElementRef, IterableDiffers, ChangeDetectorRef, NgZone, HostBinding, Input, Output, HostListener, Directive, Inject, ComponentFactoryResolver, ViewChild, ViewContainerRef, NgModule } from '@angular/core';
import { of } from 'rxjs'; import { Subject, of } from 'rxjs';
import { debounceTime } from 'rxjs/operators';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
/** /**
...@@ -346,6 +347,7 @@ class FcModelService { ...@@ -346,6 +347,7 @@ class FcModelService {
this.canvasHtmlElement = null; this.canvasHtmlElement = null;
this.dragImage = null; this.dragImage = null;
this.svgHtmlElement = null; this.svgHtmlElement = null;
this.debouncer = new Subject();
this.modelValidation = modelValidation; this.modelValidation = modelValidation;
this.model = model; this.model = model;
this.modelChanged = modelChanged; this.modelChanged = modelChanged;
...@@ -379,12 +381,18 @@ class FcModelService { ...@@ -379,12 +381,18 @@ class FcModelService {
this.connectors = new ConnectorsModel(this); this.connectors = new ConnectorsModel(this);
this.nodes = new NodesModel(this); this.nodes = new NodesModel(this);
this.edges = new EdgesModel(this); this.edges = new EdgesModel(this);
this.debouncer
.pipe(debounceTime(100))
.subscribe((/**
* @return {?}
*/
() => this.modelChanged.emit()));
} }
/** /**
* @return {?} * @return {?}
*/ */
notifyModelChanged() { notifyModelChanged() {
this.modelChanged.emit(); this.debouncer.next();
} }
/** /**
* @return {?} * @return {?}
...@@ -686,8 +694,16 @@ if (false) { ...@@ -686,8 +694,16 @@ if (false) {
FcModelService.prototype.edgeRemovedCallback; FcModelService.prototype.edgeRemovedCallback;
/** @type {?} */ /** @type {?} */
FcModelService.prototype.dropTargetId; FcModelService.prototype.dropTargetId;
/** @type {?} */ /**
* @type {?}
* @private
*/
FcModelService.prototype.modelChanged; FcModelService.prototype.modelChanged;
/**
* @type {?}
* @private
*/
FcModelService.prototype.debouncer;
/** @type {?} */ /** @type {?} */
FcModelService.prototype.connectors; FcModelService.prototype.connectors;
/** @type {?} */ /** @type {?} */
......
This source diff could not be displayed because it is too large. You can view the blob instead.
import { __extends, __values, __assign } from 'tslib'; import { __extends, __values, __assign } from 'tslib';
import { InjectionToken, Injectable, EventEmitter, Component, ChangeDetectionStrategy, ElementRef, IterableDiffers, ChangeDetectorRef, NgZone, HostBinding, Input, Output, HostListener, Directive, Inject, ComponentFactoryResolver, ViewChild, ViewContainerRef, NgModule } from '@angular/core'; import { InjectionToken, Injectable, EventEmitter, Component, ChangeDetectionStrategy, ElementRef, IterableDiffers, ChangeDetectorRef, NgZone, HostBinding, Input, Output, HostListener, Directive, Inject, ComponentFactoryResolver, ViewChild, ViewContainerRef, NgModule } from '@angular/core';
import { of } from 'rxjs'; import { Subject, of } from 'rxjs';
import { debounceTime } from 'rxjs/operators';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
/** /**
...@@ -350,11 +351,13 @@ function fcTopSort(graph) { ...@@ -350,11 +351,13 @@ function fcTopSort(graph) {
*/ */
var FcModelService = /** @class */ (function () { var FcModelService = /** @class */ (function () {
function FcModelService(modelValidation, model, modelChanged, cd, selectedObjects, dropNode, createEdge, edgeAddedCallback, nodeRemovedCallback, edgeRemovedCallback, canvasHtmlElement, svgHtmlElement) { function FcModelService(modelValidation, model, modelChanged, cd, selectedObjects, dropNode, createEdge, edgeAddedCallback, nodeRemovedCallback, edgeRemovedCallback, canvasHtmlElement, svgHtmlElement) {
var _this = this;
this.connectorsHtmlElements = {}; this.connectorsHtmlElements = {};
this.nodesHtmlElements = {}; this.nodesHtmlElements = {};
this.canvasHtmlElement = null; this.canvasHtmlElement = null;
this.dragImage = null; this.dragImage = null;
this.svgHtmlElement = null; this.svgHtmlElement = null;
this.debouncer = new Subject();
this.modelValidation = modelValidation; this.modelValidation = modelValidation;
this.model = model; this.model = model;
this.modelChanged = modelChanged; this.modelChanged = modelChanged;
...@@ -388,6 +391,12 @@ var FcModelService = /** @class */ (function () { ...@@ -388,6 +391,12 @@ var FcModelService = /** @class */ (function () {
this.connectors = new ConnectorsModel(this); this.connectors = new ConnectorsModel(this);
this.nodes = new NodesModel(this); this.nodes = new NodesModel(this);
this.edges = new EdgesModel(this); this.edges = new EdgesModel(this);
this.debouncer
.pipe(debounceTime(100))
.subscribe((/**
* @return {?}
*/
function () { return _this.modelChanged.emit(); }));
} }
/** /**
* @return {?} * @return {?}
...@@ -396,7 +405,7 @@ var FcModelService = /** @class */ (function () { ...@@ -396,7 +405,7 @@ var FcModelService = /** @class */ (function () {
* @return {?} * @return {?}
*/ */
function () { function () {
this.modelChanged.emit(); this.debouncer.next();
}; };
/** /**
* @return {?} * @return {?}
...@@ -787,8 +796,16 @@ if (false) { ...@@ -787,8 +796,16 @@ if (false) {
FcModelService.prototype.edgeRemovedCallback; FcModelService.prototype.edgeRemovedCallback;
/** @type {?} */ /** @type {?} */
FcModelService.prototype.dropTargetId; FcModelService.prototype.dropTargetId;
/** @type {?} */ /**
* @type {?}
* @private
*/
FcModelService.prototype.modelChanged; FcModelService.prototype.modelChanged;
/**
* @type {?}
* @private
*/
FcModelService.prototype.debouncer;
/** @type {?} */ /** @type {?} */
FcModelService.prototype.connectors; FcModelService.prototype.connectors;
/** @type {?} */ /** @type {?} */
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -18,7 +18,8 @@ export declare class FcModelService { ...@@ -18,7 +18,8 @@ export declare class FcModelService {
nodeRemovedCallback: (node: FcNode) => void; nodeRemovedCallback: (node: FcNode) => void;
edgeRemovedCallback: (edge: FcEdge) => void; edgeRemovedCallback: (edge: FcEdge) => void;
dropTargetId: string; dropTargetId: string;
modelChanged: EventEmitter<any>; private readonly modelChanged;
private readonly debouncer;
connectors: ConnectorsModel; connectors: ConnectorsModel;
nodes: NodesModel; nodes: NodesModel;
edges: EdgesModel; edges: EdgesModel;
......
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