jmapcloud-ng-types 2.0.4 → 2.0.6-qa.3

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/index.ts CHANGED
@@ -127,6 +127,8 @@ export interface JAppPrintState {
127
127
  isNorthArrowVisible: boolean
128
128
  isScaleVisible: boolean
129
129
  isLegend: boolean
130
+ customContent: HTMLElement | null
131
+ customContentWidthInPercent: number
130
132
  legendTitle: string
131
133
  legendPosition: JAPP_PRINT_LEGEND_POSITION
132
134
  filterList: any[]
@@ -350,6 +352,8 @@ export interface JAppPrintService {
350
352
  takeCapture(returnAsScreenCaptureResult?: boolean, customRatioWidth?: number, customRatioHeight?: number): Promise<void | JAppPrintCaptureResult>
351
353
  setLegendVisibility(isVisible: boolean): void
352
354
  isLegendVisible(): boolean
355
+ setCustomContentWidthInPercent(percent: number): void
356
+ setCustomContent(html: HTMLElement | null): void
353
357
  }
354
358
 
355
359
  export interface JAppLayerService {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-types",
3
- "version": "2.0.4",
3
+ "version": "2.0.6-qa.3",
4
4
  "description": "JMap Cloud specific version of JMap Cloud NG types and interfaces",
5
5
  "main": "src/app.ts",
6
6
  "types": "ambient.d.ts",
package/public/app.d.ts CHANGED
@@ -25,11 +25,11 @@ declare global {
25
25
  /**
26
26
  * **JMap.Application.getVersion**
27
27
  *
28
- * Returns the application build version.
28
+ * Returns the JMap Cloud NG npm package version.
29
29
  *
30
30
  * @example
31
31
  * ```ts
32
- * // return the build version, for example "1.0.1"
32
+ * // return the package version, for example "2.0.5-qa.10"
33
33
  * JMap.Application.getVersion()
34
34
  * ```
35
35
  */
@@ -38,13 +38,11 @@ declare global {
38
38
  /**
39
39
  * **JMap.Application.getApiVersion**
40
40
  *
41
- * Returns the application API (Typescript interfaces) version.
42
- *
43
- * For the same API version, multiple implementation versions can exist.
41
+ * Returns the JMap Cloud NG npm package version.
44
42
  *
45
43
  * @example
46
44
  * ```ts
47
- * // return the build version, for example "1.0.1"
45
+ * // return the package version, for example "2.0.5-qa.10"
48
46
  * JMap.Application.getApiVersion()
49
47
  * ```
50
48
  */
@@ -2338,6 +2336,50 @@ declare global {
2338
2336
  */
2339
2337
  function setLegendVisibility(isVisible: boolean): void
2340
2338
 
2339
+ /**
2340
+ * **JMap.Application.Print.setCustomContentWidthInPercent**
2341
+ *
2342
+ * Sets the width used by the custom content area as a percentage of the available width left by the print legend.
2343
+ *
2344
+ * The value must be between 0 and 100.
2345
+ *
2346
+ * @throws if percent is not a finite number between 0 and 100
2347
+ * @param percent The percentage of the available width used by the custom content area
2348
+ * @example
2349
+ * ```ts
2350
+ * // Use 40 percent of the available width left by the print legend
2351
+ * JMap.Application.Print.setCustomContentWidthInPercent(40)
2352
+ * ```
2353
+ */
2354
+ function setCustomContentWidthInPercent(percent: number): void
2355
+
2356
+ /**
2357
+ * **JMap.Application.Print.setCustomContent**
2358
+ *
2359
+ * Sets the custom HTML content displayed in the print layout, in the available area left by the print legend.
2360
+ *
2361
+ * The custom content is displayed top-right aligned. Pass null to clear the custom content.
2362
+ *
2363
+ * @throws if html is not an HTMLElement or null
2364
+ * @param html The HTML element to display in the print layout, or null to clear it
2365
+ * @example
2366
+ * ```ts
2367
+ * // Add custom content
2368
+ * const content = document.createElement("div")
2369
+ * content.innerHTML = `
2370
+ * <svg width="120" height="60" viewBox="0 0 120 60">
2371
+ * <rect width="120" height="60" fill="white" />
2372
+ * <circle cx="30" cy="30" r="20" fill="red" />
2373
+ * </svg>
2374
+ * `
2375
+ * JMap.Application.Print.setCustomContent(content)
2376
+ *
2377
+ * // Clear custom content
2378
+ * JMap.Application.Print.setCustomContent(null)
2379
+ * ```
2380
+ */
2381
+ function setCustomContent(html: HTMLElement | null): void
2382
+
2341
2383
  /**
2342
2384
  * **JMap.Application.Print.getAllPaperFormats**
2343
2385
  *