Commit 02481d99 authored by Igor Kulikov's avatar Igor Kulikov

Fix

parent 4c59134f
......@@ -575,9 +575,11 @@
*/
function () { }));
this.createEdge = createEdge || ((/**
* @param {?} event
* @param {?} edge
* @return {?}
*/
function () { return rxjs.of({ label: 'label' }); }));
function (event, edge) { return rxjs.of(__assign({}, edge, { label: 'label' })); }));
this.edgeAddedCallback = edgeAddedCallback || ((/**
* @return {?}
*/
......
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.
......@@ -367,9 +367,11 @@ class FcModelService {
*/
() => { }));
this.createEdge = createEdge || ((/**
* @param {?} event
* @param {?} edge
* @return {?}
*/
() => of({ label: 'label' })));
(event, edge) => of(Object.assign({}, edge, { label: 'label' }))));
this.edgeAddedCallback = edgeAddedCallback || ((/**
* @return {?}
*/
......
This source diff could not be displayed because it is too large. You can view the blob instead.
import { __extends, __values } from 'tslib';
import { __extends, __values, __assign } from 'tslib';
import { InjectionToken, Injectable, Component, ChangeDetectionStrategy, ElementRef, IterableDiffers, ChangeDetectorRef, NgZone, HostBinding, Input, HostListener, Directive, Inject, ComponentFactoryResolver, ViewChild, ViewContainerRef, NgModule } from '@angular/core';
import { of } from 'rxjs';
import { CommonModule } from '@angular/common';
......@@ -377,9 +377,11 @@ var FcModelService = /** @class */ (function () {
*/
function () { }));
this.createEdge = createEdge || ((/**
* @param {?} event
* @param {?} edge
* @return {?}
*/
function () { return of({ label: 'label' }); }));
function (event, edge) { return of(__assign({}, edge, { label: 'label' })); }));
this.edgeAddedCallback = edgeAddedCallback || ((/**
* @return {?}
*/
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -49,7 +49,7 @@ export class FcModelService {
this.selectedObjects = selectedObjects;
this.dropNode = dropNode || (() => {});
this.createEdge = createEdge || (() => of({label: 'label'}));
this.createEdge = createEdge || ((event, edge) => of({...edge, label: 'label'}));
this.edgeAddedCallback = edgeAddedCallback || (() => {});
this.nodeRemovedCallback = nodeRemovedCallback || (() => {});
this.edgeRemovedCallback = edgeRemovedCallback || (() => {});
......
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