gd-canvas
Version:
This set of libraries was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.0 and no dependencies accept gd-tree (it has jquery and jstree) and gd-graph (it has jquery and chart.js).
129 lines (128 loc) • 4.26 kB
TypeScript
import { AfterViewInit } from '@angular/core';
import { ElementRef } from '@angular/core';
import { OnDestroy } from '@angular/core';
import { DoCheck } from '@angular/core';
import { KeyValueDiffers } from '@angular/core';
import { DefaultTypes } from './gd-canvas.base';
import { DefaultActions } from './gd-canvas.base';
import { CustomTypes } from 'gd-canvas-custom-types';
import { CustomActions } from 'gd-canvas-custom-types';
import { GDTooltipComponent } from 'gd-tooltip';
import { GDCanvasService } from './gd-canvas.service';
import { Selector } from './gd-canvas.selector';
import { WireText } from './gd-canvas.wireText';
import { Tools } from './gd-canvas.tools';
import { Point } from 'gd-common';
import { GDCommonTools } from 'gd-common';
import { GDCommonService } from 'gd-common';
import * as i0 from "@angular/core";
export declare class GDCanvasComponent implements AfterViewInit, OnDestroy, DoCheck {
private el;
private _differs;
private service;
private service1;
tooltip: GDTooltipComponent;
width: number;
height: number;
parent: any;
private scrollContainer;
context: Array<any>;
private cxtHidden;
private _action;
get action(): DefaultActions | CustomActions;
set action(a: DefaultActions | CustomActions);
canvasHidden: any;
tools: Tools;
tools2: GDCommonTools;
text: WireText;
currPos: Point;
private prevPos;
private focusedInitPos;
private theImageOn;
private theImageZoomOn;
private theImagePanOn;
private theImageOffsetX;
private theImageOffsetY;
/*********************/
private id;
get ID(): string;
private undoRedo;
selector: Selector;
isAltKey: boolean;
private isMouseDown;
private canvas;
scale: number;
offsetLeft: number;
offsetTop: number;
canvasOffsetX: number;
canvasOffsetY: number;
private startX;
private startY;
private timer;
Mode: string;
Action: string;
IsActive: boolean;
theTooltipOn: boolean;
tooltipContent: string;
map: any;
mapChildren: any;
mapVisibility: any;
private _differ;
/*********************/
private subscription;
constructor(el: ElementRef, _differs: KeyValueDiffers, service: GDCanvasService, service1: GDCommonService);
ngDoCheck(): void;
private onRedrawRefChildren;
setCustomVisibility(type: CustomTypes, visibile: boolean): string;
addCustomContainer(type: CustomTypes, children: CustomTypes | DefaultTypes): string;
addCustomObject(type: CustomTypes): string;
ngAfterViewInit(): void;
SetSizeView(w: number, h: number): void;
SetSizeDrawing(w: number, h: number): void;
ngOnDestroy(): void;
private OnKeyDown;
private t;
OnMouseWheel(event: any): void;
OnMouseUp(event: MouseEvent): void;
OnMouseMove(event: MouseEvent): void;
OnMouseDown(event: MouseEvent): void;
private IsDragEnough;
private selectInRect;
private selectShapesInOrder;
private selectShapes;
private pan;
private adjustScrollbar;
private zoom;
GetObjectTooltip(point: Point): any;
GetObjectClicked(point: Point): any;
ClearDrawing(): void;
DrawCustom(i: number): void;
DrawPolygons(): void;
DrawReferences(): void;
DrawBlocks(): void;
DrawShapes(): void;
DrawTexts(): void;
DrawPolylines(): void;
DrawDimensions(): void;
DrawSegments(): void;
DrawArcs(): void;
DrawCallouts(): void;
DrawSelected(): void;
DrawHelper(): void;
private drawPolygons;
private drawReferences;
private drawShapes;
private drawTexts;
private drawCallouts;
private drawSegments;
private drawBlocks;
private drawPolylines;
private drawArcs;
private drawDimensions;
private drawSelected;
private drawHelper;
private drawImage;
DRAW(res: Array<string>): void;
static ɵfac: i0.ɵɵFactoryDef<GDCanvasComponent, never>;
static ɵcmp: i0.ɵɵComponentDefWithMeta<GDCanvasComponent, "gd-canvas", never, { "width": "width"; "height": "height"; "parent": "parent"; }, {}, never, never>;
}