1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export function isLabelExternal(semantic: Element): boolean;
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export function hasExternalLabel(element: Element): boolean;
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export function getFlowLabelPosition(waypoints: Point[]): Point;
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | export function getWaypointsMid(waypoints: Point[]): Point;
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | export function getExternalLabelMid(element: Element): Point;
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 | export function getExternalLabelBounds(di: ModdleElement, element: Element): Rect;
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 | export function getLabel(element: Element): string;
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 | export function setLabel(element: Element, text: string): Element;
|
71 |
|
72 | export { isLabel } from "diagram-js/lib/util/ModelUtil";
|
73 |
|
74 | export namespace DEFAULT_LABEL_SIZE {
|
75 | const width: number;
|
76 | const height: number;
|
77 | }
|
78 |
|
79 | export const FLOW_LABEL_INDENT: number;
|
80 | type Point = import('diagram-js/lib/util/Types').Point;
|
81 | type Rect = import('diagram-js/lib/util/Types').Rect;
|
82 | type Element = import('../model/Types').Element;
|
83 | type ModdleElement = import('../model/Types').ModdleElement;
|