-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.component.ts
54 lines (49 loc) · 1.51 KB
/
app.component.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { Component, ViewEncapsulation, ViewChild } from "@angular/core";
import { extend } from "@syncfusion/ej2-base";
import { isNullOrUndefined as isNOU } from "@syncfusion/ej2-base";
import { ChartComponent } from "@syncfusion/ej2-angular-charts";
import {
IAccTextRenderEventArgs,
IAccLoadedEventArgs,
AccumulationChartComponent,
IAccAnimationCompleteEventArgs,
ILoadedEventArgs
} from "@syncfusion/ej2-angular-charts";
import {
DiagramComponent,
DiagramTools,
NodeModel,
NodeConstraints
} from "@syncfusion/ej2-angular-diagrams";
import { GridComponent } from "@syncfusion/ej2-angular-grids";
import { expenseData, startDate, endDate } from "./complexShapes.data";
import { Query, DataManager, Predicate } from "@syncfusion/ej2-data";
import { RangeEventArgs } from "@syncfusion/ej2-calendars";
import { DateRangePickerComponent } from "@syncfusion/ej2-angular-calendars";
/**
* Sample for ComplexShapes
*/
@Component({
selector: "app-root",
templateUrl: "app.component.html",
styleUrls: ["app.component.css"],
encapsulation: ViewEncapsulation.None
})
export class AppComponent {
@ViewChild("diagram") diagram: DiagramComponent;
// custom code end
// define the JSON of data
public nodes: NodeModel[] = [
{
id: "node1_template",
offsetX: 409,
offsetY: 400,
width: 200,
height: 175,
shape: { type: "HTML" }
}
];
public targetElement: HTMLElement;
public created(): void {}
}
// custom code end