-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathconstants.js
71 lines (60 loc) · 1.4 KB
/
constants.js
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { id } from "./helpers";
export const DESIGNER = "designer"
export const VISUALIZER = "visualizer"
export const extension = {
path: "/api/provider/extension*",
alias: "extensionFileLoad"
};
export const designEndpoint = {
path: "/api/pattern*",
alias: "designEp",
wait: "@designEp",
absolutePath: "/api/pattern"
}
export const MESHMAP_PATH = "/extension/meshmap";
export const CANVAS_CONTAINER_ID = "cy-canvas-container"
export const TIME = {
SMALL: 500,
MEDIUM: 1000,
LARGE: 1500,
XLARGE: 2000,
XXLARGE: 5000,
XXXLARGE: 10000,
X4LARGE: 15_000
}
export const canvasContainer = {
query: id(CANVAS_CONTAINER_ID),
alias: "canvas"
}
export const cypressTestDesign = {
url: "/extension/meshmap?design=142f0054-d9ae-4352-8618-887104a81928",
id: "142f0054-d9ae-4352-8618-887104a81928",
}
export const hierarchyRelationshipDesign = cypressTestDesign;
export const cytoConversion = {
url: "/api/pattern?output=cytoscape",
method: "POST",
alias: "cytoPatternConversion",
wait: "@cytoPatternConversion"
}
/**
* Selection and general Event Binding Layer
*/
export const canvasLayer0 = {
query: '[data-id="layer0-selectbox"]',
alias: "layer0"
}
/**
* drag and drop Layer
*/
export const canvasLayer1 = {
query: '[data-id="layer1-drag"]',
alias: "layer1"
}
/**
* Node and Element Layer
*/
export const canvaslayer2 = {
query: '[data-id="layer2-node"]',
alias: "layer2"
}