bruce-models 0.8.6 → 0.8.7

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.
@@ -4,218 +4,220 @@ import { Cartes, EntityAttachmentType } from "../bruce-models";
4
4
  */
5
5
  export declare namespace Markup {
6
6
  interface IMarkup {
7
- divs?: Element.Div.IDiv[];
8
- vectors?: Element.Drawing.Drawing[];
9
- cesiumObjects?: Element.Entity3d.Entity3d[];
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 Element {
15
- namespace Div {
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
+ element?: HTMLElement;
44
+ items: IRowItem[];
45
+ height: number;
46
+ }
47
+ enum EItemType {
48
+ Default = "DEFAULT",
49
+ Embed = "EMBED"
50
+ }
51
+ interface IRowItem {
52
+ text: string;
53
+ embedRaw?: string;
54
+ action?: ItemAction.IItemAction;
55
+ bgImage?: IRowItemImage;
56
+ backgroundColor?: string;
57
+ fontColor?: string;
58
+ fontSize?: number;
59
+ textAlign?: string;
60
+ verticalAlign?: string;
61
+ padding?: number;
62
+ textShadow?: ITextShadow;
63
+ contentType: EItemType;
64
+ width: number;
65
+ }
66
+ interface IRowItemImage {
67
+ FileID?: string;
68
+ UseEntityDefault?: boolean;
69
+ }
70
+ interface ITextShadow {
71
+ horizontal: number;
72
+ vertical: number;
73
+ blur: number;
74
+ color: string;
75
+ }
76
+ namespace ItemAction {
77
+ interface IActionLinkParams {
78
+ URL?: string;
79
+ openInNewTab?: boolean;
80
+ closeMarkupOnOpen?: boolean;
81
+ }
82
+ interface IActionBookmarkParams {
83
+ bookmarkID?: string;
84
+ }
85
+ interface IActionInfoViewParams {
86
+ }
87
+ interface IActionRelationParams {
88
+ }
89
+ interface IActionGalleryParams {
90
+ documentType?: EntityAttachmentType.EType | string;
91
+ }
92
+ interface IItemAction {
93
+ type: ItemAction.EType;
94
+ params: IActionLinkParams | IActionInfoViewParams | IActionRelationParams | IActionGalleryParams;
95
+ }
16
96
  enum EType {
17
- Default = "default",
18
- Callout = "callout"
97
+ None = "NONE",
98
+ OpenLink = "LINK",
99
+ OpenInfoView = "INFOVIEW",
100
+ OpenEntityGallery = "GALLERY",
101
+ ToggleRelationships = "RELATIONSHIPS",
102
+ Draggable = "DRAGABBLE",
103
+ Close = "CLOSE",
104
+ OpenBookmark = "BOOKMARK"
19
105
  }
20
- interface IDiv {
21
- id: string;
22
- type?: EType;
23
- contentRows: IRow[];
24
- boxShadow?: IBoxShadow;
25
- borderRadius?: number;
26
- borderUsingPercent?: boolean;
27
- borderColor?: string;
28
- borderWidth?: number;
29
- x: number;
30
- y: number;
31
- width: number;
32
- height: number;
106
+ }
107
+ }
108
+ namespace Drawing {
109
+ type Drawing = Line.ILine | Line.IAnchor | FreePaint.IPaint;
110
+ namespace Line {
111
+ interface ILine {
112
+ pathType: "LINE";
113
+ path: string;
114
+ transform: string;
115
+ snaps: IAnchor[];
116
+ brushColor?: string;
117
+ brushSize?: number;
118
+ angled?: boolean;
119
+ screenHeight?: number;
33
120
  screenWidth?: number;
121
+ brushHead?: EAnchorHeadStyle;
122
+ }
123
+ enum EAnchorDivSide {
124
+ TopLeft = 0,
125
+ TopRight = 1,
126
+ BottomLeft = 2,
127
+ BottomRight = 3,
128
+ Center = 4,
129
+ CenterLeft = 5,
130
+ CenterRight = 6,
131
+ CenterTop = 7,
132
+ CenterBottom = 8
133
+ }
134
+ enum EAnchorLineSide {
135
+ Start = 0,
136
+ End = 1
137
+ }
138
+ enum EAnchorHeadStyle {
139
+ None = "NONE",
140
+ Circle = "CIRCLE",
141
+ Arrow = "ARROW"
142
+ }
143
+ interface IAnchor {
144
+ id?: string;
145
+ snapPosition?: EAnchorDivSide;
146
+ side?: EAnchorLineSide;
147
+ brushHead?: EAnchorHeadStyle;
148
+ fill?: string;
149
+ size?: number;
150
+ outlineFactor?: number;
151
+ stroke?: string;
152
+ cartesian?: Cartes.ICartes3;
153
+ screenPos?: Cartes.ICartes3;
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;
34
165
  screenHeight?: number;
166
+ screenWidth?: number;
35
167
  }
36
- interface IBoxShadow {
37
- horizontal: number;
38
- vertical: number;
39
- blur: number;
40
- spread: number;
41
- color: string;
42
- }
43
- interface IRow {
44
- element?: HTMLElement;
45
- items: IRowItem[];
46
- height: number;
47
- }
48
- enum EItemType {
49
- Default = "DEFAULT",
50
- Embed = "EMBED"
51
- }
52
- interface IRowItem {
53
- text: string;
54
- embedRaw?: string;
55
- action?: ItemAction.IItemAction;
56
- bgImage?: IRowItemImage;
57
- backgroundColor?: string;
58
- fontColor?: string;
59
- fontSize?: number;
60
- textAlign?: string;
61
- verticalAlign?: string;
62
- padding?: number;
63
- textShadow?: ITextShadow;
64
- contentType: EItemType;
65
- width: number;
66
- }
67
- interface IRowItemImage {
68
- FileID?: string;
69
- UseEntityDefault?: boolean;
70
- }
71
- interface ITextShadow {
72
- horizontal: number;
73
- vertical: number;
74
- blur: number;
75
- color: string;
76
- }
77
- namespace ItemAction {
78
- interface IActionLinkParams {
79
- URL?: string;
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
- }
168
+ const DEFAULT: IPaint;
169
+ }
170
+ }
171
+ namespace Entity3d {
172
+ type Entity3d = Polygon.IPolygon | Polyline.IPolyline | Circle.ICircle | Walkscore.Walkscore;
173
+ namespace Polygon {
174
+ enum EClassificationType {
175
+ Both = "BOTH",
176
+ Terrain = "TERRAIN"
177
+ }
178
+ interface IPolygon {
179
+ type: "POLYGON";
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
+ type: "POLYLINE";
194
+ id: string;
195
+ positions: Cartes.ICartes3[];
196
+ color?: string;
197
+ outlineWidth?: number;
198
+ smoothen?: number;
107
199
  }
200
+ const DEFAULT: IPolyline;
108
201
  }
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;
202
+ namespace Circle {
203
+ interface ICircle {
204
+ type: "CIRCLE";
205
+ id: string;
206
+ position: Cartes.ICartes3;
207
+ radius: number;
208
+ color?: string;
209
+ outlineWidth?: number;
210
+ extrudedHeight?: number;
211
+ outlineExtrusion?: number;
170
212
  }
213
+ const DEFAULT: ICircle;
171
214
  }
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
- }
215
+ namespace Walkscore {
216
+ interface Walkscore {
217
+ type: "WALKSCORE";
218
+ id: string;
219
+ cartesian: Cartes.ICartes3;
220
+ details: number;
219
221
  }
220
222
  }
221
223
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-models",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-models.umd.js",