bruce-models 0.8.6 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bruce-models.es5.js +235 -139
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +235 -139
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/common/cartes.js +68 -0
- package/dist/lib/common/cartes.js.map +1 -1
- package/dist/lib/markup/markup.js +167 -139
- package/dist/lib/markup/markup.js.map +1 -1
- package/dist/types/common/cartes.d.ts +32 -0
- package/dist/types/markup/markup.d.ts +208 -203
- package/package.json +1 -1
|
@@ -4,218 +4,223 @@ import { Cartes, EntityAttachmentType } from "../bruce-models";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare namespace Markup {
|
|
6
6
|
interface IMarkup {
|
|
7
|
-
divs?:
|
|
8
|
-
vectors?:
|
|
9
|
-
cesiumObjects?:
|
|
7
|
+
divs?: Div.IDiv[];
|
|
8
|
+
vectors?: Drawing.Drawing[];
|
|
9
|
+
cesiumObjects?: Entity3d.Entity3d[];
|
|
10
10
|
width?: number;
|
|
11
11
|
height?: number;
|
|
12
12
|
defaultCameraPos?: any;
|
|
13
13
|
}
|
|
14
|
-
namespace
|
|
15
|
-
|
|
14
|
+
namespace Div {
|
|
15
|
+
enum EType {
|
|
16
|
+
Default = "default",
|
|
17
|
+
Callout = "callout"
|
|
18
|
+
}
|
|
19
|
+
interface IDiv {
|
|
20
|
+
id: string;
|
|
21
|
+
type?: EType;
|
|
22
|
+
contentRows: IRow[];
|
|
23
|
+
boxShadow?: IBoxShadow;
|
|
24
|
+
borderRadius?: number;
|
|
25
|
+
borderUsingPercent?: boolean;
|
|
26
|
+
borderColor?: string;
|
|
27
|
+
borderWidth?: number;
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
screenWidth?: number;
|
|
33
|
+
screenHeight?: number;
|
|
34
|
+
}
|
|
35
|
+
interface IBoxShadow {
|
|
36
|
+
horizontal: number;
|
|
37
|
+
vertical: number;
|
|
38
|
+
blur: number;
|
|
39
|
+
spread: number;
|
|
40
|
+
color: string;
|
|
41
|
+
}
|
|
42
|
+
interface IRow {
|
|
43
|
+
items: IRowItem[];
|
|
44
|
+
height: number;
|
|
45
|
+
}
|
|
46
|
+
enum EItemType {
|
|
47
|
+
Default = "DEFAULT",
|
|
48
|
+
Embed = "EMBED"
|
|
49
|
+
}
|
|
50
|
+
interface IRowItem {
|
|
51
|
+
text: string;
|
|
52
|
+
embedRaw?: string;
|
|
53
|
+
action?: ItemAction.IItemAction;
|
|
54
|
+
bgImage?: IRowItemImage;
|
|
55
|
+
backgroundColor?: string;
|
|
56
|
+
fontColor?: string;
|
|
57
|
+
fontSize?: number;
|
|
58
|
+
textAlign?: string;
|
|
59
|
+
verticalAlign?: string;
|
|
60
|
+
padding?: number;
|
|
61
|
+
textShadow?: ITextShadow;
|
|
62
|
+
contentType: EItemType;
|
|
63
|
+
width: number;
|
|
64
|
+
}
|
|
65
|
+
interface IRowItemImage {
|
|
66
|
+
FileID?: string;
|
|
67
|
+
UseEntityDefault?: boolean;
|
|
68
|
+
}
|
|
69
|
+
interface ITextShadow {
|
|
70
|
+
horizontal: number;
|
|
71
|
+
vertical: number;
|
|
72
|
+
blur: number;
|
|
73
|
+
color: string;
|
|
74
|
+
}
|
|
75
|
+
namespace ItemAction {
|
|
76
|
+
interface IActionLinkParams {
|
|
77
|
+
URL?: string;
|
|
78
|
+
openInNewTab?: boolean;
|
|
79
|
+
closeMarkupOnOpen?: boolean;
|
|
80
|
+
}
|
|
81
|
+
interface IActionBookmarkParams {
|
|
82
|
+
bookmarkID?: string;
|
|
83
|
+
}
|
|
84
|
+
interface IActionInfoViewParams {
|
|
85
|
+
}
|
|
86
|
+
interface IActionRelationParams {
|
|
87
|
+
}
|
|
88
|
+
interface IActionGalleryParams {
|
|
89
|
+
documentType?: EntityAttachmentType.EType | string;
|
|
90
|
+
}
|
|
91
|
+
interface IItemAction {
|
|
92
|
+
type: ItemAction.EType;
|
|
93
|
+
params: IActionLinkParams | IActionInfoViewParams | IActionRelationParams | IActionGalleryParams;
|
|
94
|
+
}
|
|
16
95
|
enum EType {
|
|
17
|
-
|
|
18
|
-
|
|
96
|
+
None = "NONE",
|
|
97
|
+
OpenLink = "LINK",
|
|
98
|
+
OpenInfoView = "INFOVIEW",
|
|
99
|
+
OpenEntityGallery = "GALLERY",
|
|
100
|
+
ToggleRelationships = "RELATIONSHIPS",
|
|
101
|
+
Draggable = "DRAGABBLE",
|
|
102
|
+
Close = "CLOSE",
|
|
103
|
+
OpenBookmark = "BOOKMARK"
|
|
19
104
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
105
|
+
}
|
|
106
|
+
const DEFAULT: IDiv;
|
|
107
|
+
}
|
|
108
|
+
namespace Drawing {
|
|
109
|
+
type Drawing = Line.ILine | Line.IAnchor | FreePaint.IPaint;
|
|
110
|
+
enum EHeadStyle {
|
|
111
|
+
None = "NONE",
|
|
112
|
+
Circle = "CIRCLE",
|
|
113
|
+
Arrow = "ARROW"
|
|
114
|
+
}
|
|
115
|
+
namespace Line {
|
|
116
|
+
interface ILine {
|
|
117
|
+
pathType: "LINE";
|
|
118
|
+
path: string;
|
|
119
|
+
transform: string;
|
|
120
|
+
snaps: IAnchor[];
|
|
121
|
+
brushColor?: string;
|
|
122
|
+
brushSize?: number;
|
|
123
|
+
angled?: boolean;
|
|
124
|
+
screenHeight?: number;
|
|
33
125
|
screenWidth?: number;
|
|
126
|
+
brushHead?: EHeadStyle;
|
|
127
|
+
}
|
|
128
|
+
enum EAnchorDivSide {
|
|
129
|
+
TopLeft = 0,
|
|
130
|
+
TopRight = 1,
|
|
131
|
+
BottomLeft = 2,
|
|
132
|
+
BottomRight = 3,
|
|
133
|
+
Center = 4,
|
|
134
|
+
CenterLeft = 5,
|
|
135
|
+
CenterRight = 6,
|
|
136
|
+
CenterTop = 7,
|
|
137
|
+
CenterBottom = 8
|
|
138
|
+
}
|
|
139
|
+
enum EAnchorLineSide {
|
|
140
|
+
Start = 0,
|
|
141
|
+
End = 1
|
|
142
|
+
}
|
|
143
|
+
interface IAnchor {
|
|
144
|
+
id?: string;
|
|
145
|
+
snapPosition?: EAnchorDivSide;
|
|
146
|
+
side?: EAnchorLineSide;
|
|
147
|
+
brushHead?: EHeadStyle;
|
|
148
|
+
fill?: string;
|
|
149
|
+
size?: number;
|
|
150
|
+
outlineFactor?: number;
|
|
151
|
+
stroke?: string;
|
|
152
|
+
cartesian?: Cartes.ICartes3;
|
|
153
|
+
screenPos?: Cartes.ICartes2;
|
|
154
|
+
positionFromEntity?: boolean;
|
|
155
|
+
}
|
|
156
|
+
const DEFAULT: ILine;
|
|
157
|
+
}
|
|
158
|
+
namespace FreePaint {
|
|
159
|
+
interface IPaint {
|
|
160
|
+
pathType: "PLAIN";
|
|
161
|
+
path: string;
|
|
162
|
+
transform: string;
|
|
163
|
+
brushColor?: string;
|
|
164
|
+
brushSize?: number;
|
|
165
|
+
brushHead?: EHeadStyle;
|
|
166
|
+
outlineColor?: string;
|
|
34
167
|
screenHeight?: number;
|
|
168
|
+
screenWidth?: number;
|
|
169
|
+
}
|
|
170
|
+
const DEFAULT: IPaint;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
namespace Entity3d {
|
|
174
|
+
type Entity3d = Polygon.IPolygon | Polyline.IPolyline | Circle.ICircle | Walkscore.IWalkscore;
|
|
175
|
+
namespace Polygon {
|
|
176
|
+
enum EClassificationType {
|
|
177
|
+
Both = "BOTH",
|
|
178
|
+
Terrain = "TERRAIN"
|
|
35
179
|
}
|
|
36
|
-
interface
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
openInNewTab?: boolean;
|
|
81
|
-
closeMarkupOnOpen?: boolean;
|
|
82
|
-
}
|
|
83
|
-
interface IActionBookmarkParams {
|
|
84
|
-
bookmarkID?: string;
|
|
85
|
-
}
|
|
86
|
-
interface IActionInfoViewParams {
|
|
87
|
-
}
|
|
88
|
-
interface IActionRelationParams {
|
|
89
|
-
}
|
|
90
|
-
interface IActionGalleryParams {
|
|
91
|
-
documentType?: EntityAttachmentType.EType | string;
|
|
92
|
-
}
|
|
93
|
-
interface IItemAction {
|
|
94
|
-
type: ItemAction.EType;
|
|
95
|
-
params: IActionLinkParams | IActionInfoViewParams | IActionRelationParams | IActionGalleryParams;
|
|
96
|
-
}
|
|
97
|
-
enum EType {
|
|
98
|
-
None = "NONE",
|
|
99
|
-
OpenLink = "LINK",
|
|
100
|
-
OpenInfoView = "INFOVIEW",
|
|
101
|
-
OpenEntityGallery = "GALLERY",
|
|
102
|
-
ToggleRelationships = "RELATIONSHIPS",
|
|
103
|
-
Draggable = "DRAGABBLE",
|
|
104
|
-
Close = "CLOSE",
|
|
105
|
-
OpenBookmark = "BOOKMARK"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
namespace Drawing {
|
|
110
|
-
type Drawing = Line.ILine | Line.IAnchor | FreePaint.IPaint;
|
|
111
|
-
namespace Line {
|
|
112
|
-
interface ILine {
|
|
113
|
-
pathType: "LINE";
|
|
114
|
-
path: string;
|
|
115
|
-
transform: string;
|
|
116
|
-
snaps: IAnchor[];
|
|
117
|
-
brushColor?: string;
|
|
118
|
-
brushSize?: number;
|
|
119
|
-
angled?: boolean;
|
|
120
|
-
screenHeight?: number;
|
|
121
|
-
screenWidth?: number;
|
|
122
|
-
brushHead?: EAnchorHeadStyle;
|
|
123
|
-
}
|
|
124
|
-
enum EAnchorDivSide {
|
|
125
|
-
TopLeft = 0,
|
|
126
|
-
TopRight = 1,
|
|
127
|
-
BottomLeft = 2,
|
|
128
|
-
BottomRight = 3,
|
|
129
|
-
Center = 4,
|
|
130
|
-
CenterLeft = 5,
|
|
131
|
-
CenterRight = 6,
|
|
132
|
-
CenterTop = 7,
|
|
133
|
-
CenterBottom = 8
|
|
134
|
-
}
|
|
135
|
-
enum EAnchorLineSide {
|
|
136
|
-
Start = 0,
|
|
137
|
-
End = 1
|
|
138
|
-
}
|
|
139
|
-
enum EAnchorHeadStyle {
|
|
140
|
-
None = "NONE",
|
|
141
|
-
Circle = "CIRCLE",
|
|
142
|
-
Arrow = "ARROW"
|
|
143
|
-
}
|
|
144
|
-
interface IAnchor {
|
|
145
|
-
id?: string;
|
|
146
|
-
snapPosition?: EAnchorDivSide;
|
|
147
|
-
side?: EAnchorLineSide;
|
|
148
|
-
brushHead?: EAnchorHeadStyle;
|
|
149
|
-
fill?: string;
|
|
150
|
-
size?: number;
|
|
151
|
-
outlineFactor?: number;
|
|
152
|
-
stroke?: string;
|
|
153
|
-
cartesian?: Cartes.ICartes3;
|
|
154
|
-
screenPos?: Cartes.ICartes3;
|
|
155
|
-
positionFromEntity?: boolean;
|
|
156
|
-
}
|
|
157
|
-
const DEFAULT: ILine;
|
|
158
|
-
}
|
|
159
|
-
namespace FreePaint {
|
|
160
|
-
interface IPaint {
|
|
161
|
-
pathType: "PLAIN";
|
|
162
|
-
path: string;
|
|
163
|
-
transform: string;
|
|
164
|
-
brushColor?: string;
|
|
165
|
-
brushSize?: number;
|
|
166
|
-
screenHeight?: number;
|
|
167
|
-
screenWidth?: number;
|
|
168
|
-
}
|
|
169
|
-
const DEFAULT: IPaint;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
namespace Entity3d {
|
|
173
|
-
type Entity3d = Polygon.IPolygon | Polyline.IPolyline | Circle.ICircle | Walkscore.Walkscore;
|
|
174
|
-
namespace Polygon {
|
|
175
|
-
enum EClassificationType {
|
|
176
|
-
Both = "BOTH",
|
|
177
|
-
Terrain = "TERRAIN"
|
|
178
|
-
}
|
|
179
|
-
interface IPolygon {
|
|
180
|
-
id: any;
|
|
181
|
-
positions: Cartes.ICartes3[];
|
|
182
|
-
color?: string;
|
|
183
|
-
outlineColor?: string;
|
|
184
|
-
outlineWidth?: number;
|
|
185
|
-
extrudedHeight?: number;
|
|
186
|
-
classificationType?: EClassificationType;
|
|
187
|
-
smoothen?: number;
|
|
188
|
-
}
|
|
189
|
-
const DEFAULT: IPolygon;
|
|
190
|
-
}
|
|
191
|
-
namespace Polyline {
|
|
192
|
-
interface IPolyline {
|
|
193
|
-
id: string;
|
|
194
|
-
positions: Cartes.ICartes3[];
|
|
195
|
-
color?: string;
|
|
196
|
-
outlineWidth?: number;
|
|
197
|
-
smoothen?: number;
|
|
198
|
-
}
|
|
199
|
-
const DEFAULT: IPolyline;
|
|
200
|
-
}
|
|
201
|
-
namespace Circle {
|
|
202
|
-
interface ICircle {
|
|
203
|
-
id: string;
|
|
204
|
-
position: Cartes.ICartes3;
|
|
205
|
-
radius: number;
|
|
206
|
-
color?: string;
|
|
207
|
-
outlineWidth?: number;
|
|
208
|
-
extrudedHeight?: number;
|
|
209
|
-
outlineExtrusion?: number;
|
|
210
|
-
}
|
|
211
|
-
const DEFAULT: ICircle;
|
|
212
|
-
}
|
|
213
|
-
namespace Walkscore {
|
|
214
|
-
interface Walkscore {
|
|
215
|
-
id: string;
|
|
216
|
-
cartesian: Cartes.ICartes3;
|
|
217
|
-
details: number;
|
|
218
|
-
}
|
|
180
|
+
interface IPolygon {
|
|
181
|
+
type: "POLYGON";
|
|
182
|
+
id: any;
|
|
183
|
+
positions: Cartes.ICartes3[];
|
|
184
|
+
color?: string;
|
|
185
|
+
outlineColor?: string;
|
|
186
|
+
outlineWidth?: number;
|
|
187
|
+
extrudedHeight?: number;
|
|
188
|
+
classificationType?: EClassificationType;
|
|
189
|
+
smoothen?: number;
|
|
190
|
+
}
|
|
191
|
+
const DEFAULT: IPolygon;
|
|
192
|
+
}
|
|
193
|
+
namespace Polyline {
|
|
194
|
+
interface IPolyline {
|
|
195
|
+
type: "POLYLINE";
|
|
196
|
+
id: string;
|
|
197
|
+
positions: Cartes.ICartes3[];
|
|
198
|
+
color?: string;
|
|
199
|
+
outlineWidth?: number;
|
|
200
|
+
smoothen?: number;
|
|
201
|
+
}
|
|
202
|
+
const DEFAULT: IPolyline;
|
|
203
|
+
}
|
|
204
|
+
namespace Circle {
|
|
205
|
+
interface ICircle {
|
|
206
|
+
type: "CIRCLE";
|
|
207
|
+
id: string;
|
|
208
|
+
position: Cartes.ICartes3;
|
|
209
|
+
radius: number;
|
|
210
|
+
color?: string;
|
|
211
|
+
outlineWidth?: number;
|
|
212
|
+
extrudedHeight?: number;
|
|
213
|
+
outlineExtrusion?: number;
|
|
214
|
+
outlineColor?: string;
|
|
215
|
+
}
|
|
216
|
+
const DEFAULT: ICircle;
|
|
217
|
+
}
|
|
218
|
+
namespace Walkscore {
|
|
219
|
+
interface IWalkscore {
|
|
220
|
+
type: "WALKSCORE";
|
|
221
|
+
id: string;
|
|
222
|
+
cartesian: Cartes.ICartes3;
|
|
223
|
+
details: number;
|
|
219
224
|
}
|
|
220
225
|
}
|
|
221
226
|
}
|