azure-maps-control 3.4.0 → 3.5.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "azure-maps-control",
3
3
  "author": "Microsoft Corporation",
4
- "version": "3.4.0",
4
+ "version": "3.5.0",
5
5
  "description": "Map SDK for Azure Maps",
6
6
  "keywords": [
7
7
  "azure",
@@ -43,14 +43,14 @@
43
43
  "@mapbox/mapbox-gl-rtl-text": "^0.2.3",
44
44
  "@microsoft/applicationinsights-web": "^3.3.0",
45
45
  "@playwright/test": "^1.42.1",
46
- "@rollup/plugin-commonjs": "^25.0.4",
46
+ "@rollup/plugin-commonjs": "^25.0.7",
47
47
  "@rollup/plugin-json": "^6.0.0",
48
48
  "@rollup/plugin-node-resolve": "^15.1.0",
49
49
  "@testing-library/dom": "^9.3.3",
50
50
  "@turf/intersect": "^6.3.0",
51
51
  "@types/jest": "^29.5.3",
52
52
  "@types/jwt-decode": "^3.0.0",
53
- "@types/lodash": "4.17.0",
53
+ "@types/lodash": "4.17.12",
54
54
  "@typescript-eslint/eslint-plugin": "^6.4.0",
55
55
  "@typescript-eslint/parser": "^6.4.0",
56
56
  "atob": "^2.1.2",
@@ -69,7 +69,7 @@
69
69
  "jest-trx-results-processor": "^3.0.1",
70
70
  "jwt-decode": "^3.0.0",
71
71
  "less": "^4.2.0",
72
- "less-plugin-clean-css": "^1.5.1",
72
+ "less-plugin-clean-css": "^1.6.0",
73
73
  "lodash": "4.17.21",
74
74
  "node-fetch": "^2.6.8",
75
75
  "playwright-trx-reporter": "^1.0.6",
@@ -78,15 +78,15 @@
78
78
  "rollup-plugin-sourcemaps": "^0.6.3",
79
79
  "rollup-plugin-uglify": "^6.0.4",
80
80
  "simplify-ts": "^1.0.2",
81
- "ts-jest": "^29.1.1",
81
+ "ts-jest": "^29.2.2",
82
82
  "ts-node": "^10.0.0",
83
83
  "typescript": "^5.0.0",
84
- "utf-8-validate": "^6.0.0",
84
+ "utf-8-validate": "^6.0.3",
85
85
  "uuid-random": "^1.3.2",
86
86
  "yargs": "^17.7.2"
87
87
  },
88
88
  "overrides": {
89
- "@babel/core": "7.24.4",
89
+ "@babel/core": "7.25.8",
90
90
  "rollup": "^3.28.0"
91
91
  },
92
92
  "license": "SEE LICENSE.TXT",
Binary file
@@ -889,6 +889,47 @@ declare namespace atlas {
889
889
  onAdd (map: Map): HTMLElement;
890
890
  private buildTrafficLegendDiv;
891
891
  }
892
+
893
+ /**
894
+ * A control to make the map or a specified element fullscreen.
895
+ */
896
+ export class FullscreenControl extends ControlBase {
897
+ private map: Map | null;
898
+ private options: FullscreenControlOptions;
899
+ private control;
900
+ private isFullscreenState: boolean;
901
+
902
+ /**
903
+ * A control to make the map or a specified element fullscreen.
904
+ * @param options Options for defining how the control is rendered and the container to be made fullscreen.
905
+ */
906
+ constructor(options?: FullscreenControlOptions);
907
+
908
+ /**
909
+ * Initialization method for the control which is called when added to the map.
910
+ * @param map The map that the control will be added to.
911
+ * @param options The ControlOptions for this control.
912
+ * @return An HTMLElement to be placed on the map for the control.
913
+ */
914
+ onAdd(map: Map): HTMLElement;
915
+
916
+ /**
917
+ * Method that is called when the control is removed from the map. Should perform any necessary cleanup for the control.
918
+ */
919
+ onRemove(): void;
920
+
921
+ /**
922
+ * Gets the current fullscreen state of the map.
923
+ * @returns A boolean indicating if the container is in fullscreen mode.
924
+ */
925
+ isFullscreen(): boolean;
926
+
927
+ /**
928
+ * Checks to see if the browser supports going into fullscreen mode.
929
+ * @returns A boolean indicating if the browser supports fullscreen mode.
930
+ */
931
+ static isSupported(): boolean;
932
+ }
892
933
  }
893
934
 
894
935
  //internal classes
@@ -3397,7 +3438,7 @@ declare namespace atlas {
3397
3438
  * Name of image in sprite to use for drawing image fills.
3398
3439
  * For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).
3399
3440
  */
3400
- fillPattern?: string;
3441
+ fillPattern?: string | DataDrivenPropertyValueSpecification<string>;
3401
3442
  /**
3402
3443
  * The polygons' pixel offset.
3403
3444
  * Values are [x, y] where negatives indicate left and up, respectively.
@@ -3938,6 +3979,31 @@ declare namespace atlas {
3938
3979
  style?: ControlStyle;
3939
3980
  }
3940
3981
 
3982
+ /**
3983
+ * The options for a FullscreenControl object.
3984
+ */
3985
+ export interface FullscreenControlOptions extends Options {
3986
+ /**
3987
+ * The style of the control.
3988
+ * Default `ControlStyle.light`
3989
+ * @default ControlStyle.light
3990
+ */
3991
+ style?: ControlStyle;
3992
+
3993
+ /**
3994
+ * Indicates if the control should be hidden if the browser does not support fullscreen mode.
3995
+ * Default `false`
3996
+ * @default false
3997
+ */
3998
+ hideIfUnsupported?: boolean;
3999
+
4000
+ /**
4001
+ * The HTML element which should be made full screen.
4002
+ * If not specified, the map container element will be used.
4003
+ */
4004
+ container?: HTMLElement;
4005
+ }
4006
+
3941
4007
  /**
3942
4008
  * The options for animating changes to the map control's camera.
3943
4009
  */