You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.5 KiB
TypeScript
72 lines
2.5 KiB
TypeScript
import { ComponentFactoryResolver, ElementRef, OnChanges, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
import { FcCallbacks, FcConnector, FcNode, FcNodeComponentConfig, UserNodeCallbacks } from './ngx-flowchart.models';
|
|
import { FcModelService } from './model.service';
|
|
export declare class FcNodeContainerComponent implements OnInit, OnChanges {
|
|
private nodeComponentConfig;
|
|
private elementRef;
|
|
private componentFactoryResolver;
|
|
callbacks: FcCallbacks;
|
|
userNodeCallbacks: UserNodeCallbacks;
|
|
node: FcNode;
|
|
selected: boolean;
|
|
edit: boolean;
|
|
underMouse: boolean;
|
|
mouseOverConnector: FcConnector;
|
|
modelservice: FcModelService;
|
|
dragging: boolean;
|
|
readonly nodeId: string;
|
|
readonly top: string;
|
|
readonly left: string;
|
|
nodeComponent: FcNodeComponent;
|
|
nodeContentContainer: ViewContainerRef;
|
|
constructor(nodeComponentConfig: FcNodeComponentConfig, elementRef: ElementRef<HTMLElement>, componentFactoryResolver: ComponentFactoryResolver);
|
|
ngOnInit(): void;
|
|
ngOnChanges(changes: SimpleChanges): void;
|
|
private updateNodeClass;
|
|
private updateNodeComponent;
|
|
private toggleClass;
|
|
mousedown(event: MouseEvent): void;
|
|
dragstart(event: DragEvent): void;
|
|
dragend(event: DragEvent): void;
|
|
click(event: MouseEvent): void;
|
|
mouseover(event: MouseEvent): void;
|
|
mouseout(event: MouseEvent): void;
|
|
}
|
|
export declare abstract class FcNodeComponent implements OnInit {
|
|
callbacks: FcCallbacks;
|
|
userNodeCallbacks: UserNodeCallbacks;
|
|
node: FcNode;
|
|
selected: boolean;
|
|
edit: boolean;
|
|
underMouse: boolean;
|
|
mouseOverConnector: FcConnector;
|
|
modelservice: FcModelService;
|
|
dragging: boolean;
|
|
flowchartConstants: {
|
|
htmlPrefix: string;
|
|
leftConnectorType: string;
|
|
rightConnectorType: string;
|
|
curvedStyle: string;
|
|
lineStyle: string;
|
|
dragAnimationRepaint: string;
|
|
dragAnimationShadow: string;
|
|
canvasClass: string;
|
|
selectedClass: string;
|
|
editClass: string;
|
|
activeClass: string;
|
|
hoverClass: string;
|
|
draggingClass: string;
|
|
edgeClass: string;
|
|
edgeLabelClass: string;
|
|
connectorClass: string;
|
|
magnetClass: string;
|
|
nodeClass: string;
|
|
nodeOverlayClass: string;
|
|
leftConnectorClass: string;
|
|
rightConnectorClass: string;
|
|
canvasResizeThreshold: number;
|
|
canvasResizeStep: number;
|
|
};
|
|
ngOnInit(): void;
|
|
}
|