jmapcloud-ng-core-types 2.0.10-qa.1 → 2.0.10-qa.11
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/package.json +1 -1
- package/public/core.d.ts +11 -30
- package/public/jmap/startup-options.d.ts +4 -29
package/package.json
CHANGED
package/public/core.d.ts
CHANGED
|
@@ -5897,18 +5897,17 @@ export namespace JMap {
|
|
|
5897
5897
|
/**
|
|
5898
5898
|
* **JMap.Project.getBase64ImageThumbnail**
|
|
5899
5899
|
*
|
|
5900
|
-
* Returns
|
|
5900
|
+
* Returns the active JMap project's base64 image preview.
|
|
5901
5901
|
*
|
|
5902
|
-
*
|
|
5903
|
-
*
|
|
5904
|
-
*
|
|
5905
|
-
* If no thumbnail has been loaded it returns an empty string.
|
|
5902
|
+
* Project preview thumbnails are not available on the JMap Cloud server yet, so this
|
|
5903
|
+
* currently returns an empty string for most projects. It will return the real project
|
|
5904
|
+
* preview once the server provides one.
|
|
5906
5905
|
*
|
|
5907
5906
|
* @throws If no project is loaded
|
|
5908
5907
|
* @example
|
|
5909
5908
|
* ```ts
|
|
5910
|
-
* // returns the project
|
|
5911
|
-
* JMap.Project.
|
|
5909
|
+
* // returns the project base64 image thumbnail if loaded
|
|
5910
|
+
* JMap.Project.getBase64ImageThumbnail()
|
|
5912
5911
|
* ```
|
|
5913
5912
|
*/
|
|
5914
5913
|
function getBase64ImageThumbnail(): string
|
|
@@ -5975,31 +5974,13 @@ export namespace JMap {
|
|
|
5975
5974
|
/**
|
|
5976
5975
|
* **JMap.Project.loadAllProjectThumbnails**
|
|
5977
5976
|
*
|
|
5978
|
-
*
|
|
5977
|
+
* Project preview thumbnails are not available on the JMap Cloud server, so this is a no-op
|
|
5978
|
+
* that resolves immediately. Kept for API compatibility with on-premise JMap Server.
|
|
5979
5979
|
*
|
|
5980
|
-
*
|
|
5980
|
+
* The `params` argument is ignored.
|
|
5981
5981
|
*
|
|
5982
|
-
*
|
|
5983
|
-
*
|
|
5984
|
-
* @throws if params are not correct
|
|
5985
|
-
* @param params width (0 < width < 1280) and height (0 < height < 720) for the thumbnails
|
|
5986
|
-
* @example
|
|
5987
|
-
* ```ts
|
|
5988
|
-
* // Will load all projects thumbnail images
|
|
5989
|
-
* JMap.Project
|
|
5990
|
-
* .loadAllProjectThumbnails({
|
|
5991
|
-
* width: 200,
|
|
5992
|
-
* height: 200
|
|
5993
|
-
* })
|
|
5994
|
-
* .then(() => console.info("All project images has been loaded"))
|
|
5995
|
-
* .catch(error => console.error("Cannot load project images"))
|
|
5996
|
-
*
|
|
5997
|
-
* // Then you can get current project thumnail like that
|
|
5998
|
-
* const thumbnail = JMap.Project.getBase64ImageThumbnail()
|
|
5999
|
-
*
|
|
6000
|
-
* // Or you can get the project id=3 thumbnail like this
|
|
6001
|
-
* const otherThumbnail = JMap.Project.getById(3).base64ImageThumbnail
|
|
6002
|
-
* ```
|
|
5982
|
+
* @deprecated Project thumbnails are not available on JMap Cloud; this is a no-op.
|
|
5983
|
+
* @param params ignored on JMap Cloud
|
|
6003
5984
|
*/
|
|
6004
5985
|
function loadAllProjectThumbnails(params?: JProjectLoadThumbnailsParams): Promise<void>
|
|
6005
5986
|
/**
|
|
@@ -123,37 +123,12 @@ export interface JCoreOptions {
|
|
|
123
123
|
*/
|
|
124
124
|
onProjectsChange?(params: JProjectAllEventParams): void
|
|
125
125
|
/**
|
|
126
|
-
*
|
|
127
|
-
*
|
|
126
|
+
* Project preview thumbnails are not available on the JMap Cloud server, so this option has
|
|
127
|
+
* no effect. The `base64ImageThumbnail` property of a project is always "" (empty string).
|
|
128
128
|
*
|
|
129
|
-
*
|
|
129
|
+
* Kept for API compatibility with on-premise JMap Server.
|
|
130
130
|
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* The thumbnail is stored as a base64 string image, that you can use to set an img src attribute directly.
|
|
134
|
-
*
|
|
135
|
-
* For a project object, if thumbnail is not loaded, default value of its property "base64ImageThumbnail" is "" (empty string).
|
|
136
|
-
*
|
|
137
|
-
* ```html
|
|
138
|
-
* <html>
|
|
139
|
-
* ...
|
|
140
|
-
* <body>
|
|
141
|
-
* <script type="text/javascript">
|
|
142
|
-
* window.JMAP_OPTIONS = {
|
|
143
|
-
* ...
|
|
144
|
-
* loadProjectThumbnails: true
|
|
145
|
-
* }
|
|
146
|
-
* </script>
|
|
147
|
-
* ...
|
|
148
|
-
* </body>
|
|
149
|
-
* </html>
|
|
150
|
-
* ```
|
|
151
|
-
*
|
|
152
|
-
* Then you will be able to get a project and use its thumbnail :
|
|
153
|
-
* ```javascript
|
|
154
|
-
* JMap.Project.getBase64ImageThumbnail() // return loaded project image, "" if no image loaded
|
|
155
|
-
* JMap.Project.getById(3).base64ImageThumbnail // return project id=3 image, "" if no image loaded
|
|
156
|
-
* ```
|
|
131
|
+
* @deprecated Project thumbnails are not available on JMap Cloud; this option has no effect.
|
|
157
132
|
*/
|
|
158
133
|
loadProjectThumbnails?: boolean
|
|
159
134
|
/**
|