bruce-models 5.0.5 → 5.0.6
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 +1 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +1 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/project/project-view-bookmark.d.ts +37 -16
- package/package.json +1 -1
package/dist/lib/bruce-models.js
CHANGED
|
@@ -103,5 +103,5 @@ __exportStar(require("./plugin/plugin"), exports);
|
|
|
103
103
|
__exportStar(require("./environment"), exports);
|
|
104
104
|
__exportStar(require("./data-source/data-source"), exports);
|
|
105
105
|
// This is updated with the package.json version on build.
|
|
106
|
-
exports.VERSION = "5.0.
|
|
106
|
+
exports.VERSION = "5.0.6";
|
|
107
107
|
//# sourceMappingURL=bruce-models.js.map
|
|
@@ -14,11 +14,11 @@ import { ProjectViewTile } from "./project-view-tile";
|
|
|
14
14
|
* A bookmark is a snapshot of what should be displayed and how in a particular project view.
|
|
15
15
|
*/
|
|
16
16
|
export declare namespace ProjectViewBookmark {
|
|
17
|
-
const DEFAULT_DATA_VERSION = 2;
|
|
17
|
+
export const DEFAULT_DATA_VERSION = 2;
|
|
18
18
|
/**
|
|
19
19
|
* Describes a bookmark record.
|
|
20
20
|
*/
|
|
21
|
-
interface IBookmark {
|
|
21
|
+
export interface IBookmark {
|
|
22
22
|
ID?: string;
|
|
23
23
|
Title?: string;
|
|
24
24
|
Note?: string;
|
|
@@ -33,14 +33,34 @@ export declare namespace ProjectViewBookmark {
|
|
|
33
33
|
Camera?: Web3d.ICamera | Web2d.ICamera;
|
|
34
34
|
sections?: Section.ISection[];
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Describes a bookmark file node.
|
|
38
|
+
*/
|
|
39
|
+
enum EBookmarkType {
|
|
40
|
+
BOOKMARK = "bookmark",
|
|
41
|
+
FOLDER = "folder"
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Describes a bookmark file node.
|
|
45
|
+
*/
|
|
46
|
+
export interface IBookmarkNode {
|
|
47
|
+
id: number;
|
|
48
|
+
parent: number;
|
|
49
|
+
droppable?: boolean;
|
|
50
|
+
text: string;
|
|
51
|
+
data?: {
|
|
52
|
+
bookmarkData?: IBookmark;
|
|
53
|
+
type?: EBookmarkType;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export type Settings = ISettings | IWeb3dSettings | IWeb2dSettings;
|
|
57
|
+
export interface ISettings {
|
|
38
58
|
}
|
|
39
59
|
/**
|
|
40
60
|
* Describes the content of a bookmark.
|
|
41
61
|
* As part of a deal we've been commissioned to create an alternative bookmark type to embed content.
|
|
42
62
|
*/
|
|
43
|
-
enum EContentType {
|
|
63
|
+
export enum EContentType {
|
|
44
64
|
WEB_3D = "WEB_3D",
|
|
45
65
|
IFRAME = "IFRAME"
|
|
46
66
|
}
|
|
@@ -48,7 +68,7 @@ export declare namespace ProjectViewBookmark {
|
|
|
48
68
|
* These are the base settings expected in any 3D bookmark.
|
|
49
69
|
* The only exception is data-version = 1 which is our deprecated legacy format.
|
|
50
70
|
*/
|
|
51
|
-
interface IWeb3dSettings extends ISettings {
|
|
71
|
+
export interface IWeb3dSettings extends ISettings {
|
|
52
72
|
contentType?: EContentType;
|
|
53
73
|
iframeUrl?: string;
|
|
54
74
|
menuItemIds?: string[];
|
|
@@ -83,7 +103,7 @@ export declare namespace ProjectViewBookmark {
|
|
|
83
103
|
* This is our WIP graph viewer.
|
|
84
104
|
* @warning as this project is in beta, all updates are subject to breaking changes.
|
|
85
105
|
*/
|
|
86
|
-
interface IWeb2dSettings extends ISettings {
|
|
106
|
+
export interface IWeb2dSettings extends ISettings {
|
|
87
107
|
background?: Web2d.IBackground;
|
|
88
108
|
camera?: Web2d.ICamera;
|
|
89
109
|
selectedIds?: string[];
|
|
@@ -96,7 +116,7 @@ export declare namespace ProjectViewBookmark {
|
|
|
96
116
|
* @param params
|
|
97
117
|
* @returns
|
|
98
118
|
*/
|
|
99
|
-
function Get(params: {
|
|
119
|
+
export function Get(params: {
|
|
100
120
|
api?: BruceApi.Api;
|
|
101
121
|
viewId: string;
|
|
102
122
|
bookmarkId: string;
|
|
@@ -108,7 +128,7 @@ export declare namespace ProjectViewBookmark {
|
|
|
108
128
|
* Deletes a bookmark record.
|
|
109
129
|
* @param params
|
|
110
130
|
*/
|
|
111
|
-
function Delete(params: {
|
|
131
|
+
export function Delete(params: {
|
|
112
132
|
api?: BruceApi.Api;
|
|
113
133
|
viewId: string;
|
|
114
134
|
bookmarkId: string;
|
|
@@ -119,7 +139,7 @@ export declare namespace ProjectViewBookmark {
|
|
|
119
139
|
* @param params
|
|
120
140
|
* @returns
|
|
121
141
|
*/
|
|
122
|
-
function GetList(params: {
|
|
142
|
+
export function GetList(params: {
|
|
123
143
|
api?: BruceApi.Api;
|
|
124
144
|
viewId: string;
|
|
125
145
|
req?: Api.IReqParams;
|
|
@@ -131,7 +151,7 @@ export declare namespace ProjectViewBookmark {
|
|
|
131
151
|
* @param params
|
|
132
152
|
* @returns
|
|
133
153
|
*/
|
|
134
|
-
function Update(params: {
|
|
154
|
+
export function Update(params: {
|
|
135
155
|
api?: BruceApi.Api;
|
|
136
156
|
viewId: string;
|
|
137
157
|
bookmark: IBookmark;
|
|
@@ -143,7 +163,7 @@ export declare namespace ProjectViewBookmark {
|
|
|
143
163
|
* Sets the order of bookmarks within a project view.
|
|
144
164
|
* @param params
|
|
145
165
|
*/
|
|
146
|
-
function SetOrder(params: {
|
|
166
|
+
export function SetOrder(params: {
|
|
147
167
|
api?: BruceApi.Api;
|
|
148
168
|
viewId: string;
|
|
149
169
|
bookmarkIds: string[];
|
|
@@ -152,7 +172,7 @@ export declare namespace ProjectViewBookmark {
|
|
|
152
172
|
/**
|
|
153
173
|
* Interfaces for 3D bookmark settings.
|
|
154
174
|
*/
|
|
155
|
-
namespace Web3d {
|
|
175
|
+
export namespace Web3d {
|
|
156
176
|
/**
|
|
157
177
|
* Describes the terrain contours overlay.
|
|
158
178
|
*/
|
|
@@ -221,7 +241,7 @@ export declare namespace ProjectViewBookmark {
|
|
|
221
241
|
* Interfaces for 2D bookmark settings.
|
|
222
242
|
* @warning as this project is in beta, all updates are subject to breaking changes.
|
|
223
243
|
*/
|
|
224
|
-
namespace Web2d {
|
|
244
|
+
export namespace Web2d {
|
|
225
245
|
interface ICamera {
|
|
226
246
|
x: number;
|
|
227
247
|
y: number;
|
|
@@ -270,7 +290,7 @@ export declare namespace ProjectViewBookmark {
|
|
|
270
290
|
* @param bookmarkId
|
|
271
291
|
* @returns
|
|
272
292
|
*/
|
|
273
|
-
function GetCacheKey(viewId: string, bookmarkId: string): string;
|
|
293
|
+
export function GetCacheKey(viewId: string, bookmarkId: string): string;
|
|
274
294
|
/**
|
|
275
295
|
* Returns cache identifier for a list of bookmarks.
|
|
276
296
|
* Example: {
|
|
@@ -281,5 +301,6 @@ export declare namespace ProjectViewBookmark {
|
|
|
281
301
|
* @param viewId
|
|
282
302
|
* @returns
|
|
283
303
|
*/
|
|
284
|
-
function GetListCacheKey(viewId: string): string;
|
|
304
|
+
export function GetListCacheKey(viewId: string): string;
|
|
305
|
+
export {};
|
|
285
306
|
}
|