ol 7.4.1-dev.1686055044262 → 7.4.1-dev.1686166152921

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.
@@ -13,6 +13,11 @@ export type Options = {
13
13
  * should be re-rendered. This is called in a `requestAnimationFrame` callback.
14
14
  */
15
15
  render?: ((arg0: import("../MapEvent.js").default) => void) | undefined;
16
+ /**
17
+ * Specify a target if you want the control to be
18
+ * rendered outside of the map's viewport.
19
+ */
20
+ target?: string | HTMLElement | undefined;
16
21
  };
17
22
  /**
18
23
  * @typedef {Object} Options
@@ -20,6 +25,8 @@ export type Options = {
20
25
  * @property {number} [duration=200] Animation duration in milliseconds.
21
26
  * @property {function(import("../MapEvent.js").default):void} [render] Function called when the control
22
27
  * should be re-rendered. This is called in a `requestAnimationFrame` callback.
28
+ * @property {HTMLElement|string} [target] Specify a target if you want the control to be
29
+ * rendered outside of the map's viewport.
23
30
  */
24
31
  /**
25
32
  * @classdesc
@@ -1 +1 @@
1
- {"version":3,"file":"ZoomSlider.d.ts","sourceRoot":"","sources":["ZoomSlider.js"],"names":[],"mappings":";;;;;;;;;;;;;;qBA2BuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;AAJ7D;;;;;;GAMG;AAEH;;;;;;;;;GASG;AACH;IACE;;OAEG;IACH,2CAkHC;IA1GC;;;OAGG;IACH,0BAA2B;IAE3B;;;;;OAKG;IACH,2BAAmC;IAEnC;;;;;;OAMG;IACH,mBAAoC;IAEpC;;;OAGG;IACH,kBAAc;IAEd;;;OAGG;IACH,qBAAqB;IAErB;;;OAGG;IACH,oBAAoB;IAEpB;;;OAGG;IACH,gBAAY;IAEZ;;;OAGG;IACH,gBAAY;IAEZ;;;;;OAKG;IACH,mBAAsB;IAEtB;;;;OAIG;IACH,2BAA+B;IAE/B;;;OAGG;IACH,kBAAwE;IAmD1E;;;;;;;OAOG;IACH,oBAmCC;IAED;;;OAGG;IACH,8BAgBC;IAED;;;;OAIG;IACH,4BAoBC;IAED;;;;;OAKG;IACH,2BASC;IAED;;;;OAIG;IACH,0BAWC;IAED;;;;;OAKG;IACH,0BASC;IAED;;;;;;;;;OASG;IACH,6BAQC;IAED;;;;;;;OAOG;IACH,kCAGC;IAED;;;;;;;;OAQG;IACH,kCAGC;CAkBF;oBA7XmB,cAAc"}
1
+ {"version":3,"file":"ZoomSlider.d.ts","sourceRoot":"","sources":["ZoomSlider.js"],"names":[],"mappings":";;;;;;;;;;;;;;qBA2BuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;;;AAJ7D;;;;;;;;GAQG;AAEH;;;;;;;;;GASG;AACH;IACE;;OAEG;IACH,2CAmHC;IA1GC;;;OAGG;IACH,0BAA2B;IAE3B;;;;;OAKG;IACH,2BAAmC;IAEnC;;;;;;OAMG;IACH,mBAAoC;IAEpC;;;OAGG;IACH,kBAAc;IAEd;;;OAGG;IACH,qBAAqB;IAErB;;;OAGG;IACH,oBAAoB;IAEpB;;;OAGG;IACH,gBAAY;IAEZ;;;OAGG;IACH,gBAAY;IAEZ;;;;;OAKG;IACH,mBAAsB;IAEtB;;;;OAIG;IACH,2BAA+B;IAE/B;;;OAGG;IACH,kBAAwE;IAmD1E;;;;;;;OAOG;IACH,oBAmCC;IAED;;;OAGG;IACH,8BAgBC;IAED;;;;OAIG;IACH,4BAoBC;IAED;;;;;OAKG;IACH,2BASC;IAED;;;;OAIG;IACH,0BAWC;IAED;;;;;OAKG;IACH,0BASC;IAED;;;;;;;;;OASG;IACH,6BAQC;IAED;;;;;;;OAOG;IACH,kCAGC;IAED;;;;;;;;OAQG;IACH,kCAGC;CAkBF;oBAhYmB,cAAc"}
@@ -27,6 +27,8 @@ const Direction = {
27
27
  * @property {number} [duration=200] Animation duration in milliseconds.
28
28
  * @property {function(import("../MapEvent.js").default):void} [render] Function called when the control
29
29
  * should be re-rendered. This is called in a `requestAnimationFrame` callback.
30
+ * @property {HTMLElement|string} [target] Specify a target if you want the control to be
31
+ * rendered outside of the map's viewport.
30
32
  */
31
33
 
32
34
  /**
@@ -47,6 +49,7 @@ class ZoomSlider extends Control {
47
49
  options = options ? options : {};
48
50
 
49
51
  super({
52
+ target: options.target,
50
53
  element: document.createElement('div'),
51
54
  render: options.render,
52
55
  });