@vaadin/bundles 23.1.0 → 23.1.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.
Files changed (38) hide show
  1. package/node_modules_ol_ImageCanvas_js.js +121 -0
  2. package/node_modules_ol_ImageCanvas_js.js.map +1 -0
  3. package/node_modules_ol_ImageTile_js.js +177 -0
  4. package/node_modules_ol_ImageTile_js.js.map +1 -0
  5. package/node_modules_ol_TileRange_js.js +154 -0
  6. package/node_modules_ol_TileRange_js.js.map +1 -0
  7. package/node_modules_ol_VectorRenderTile_js.js +182 -0
  8. package/node_modules_ol_VectorRenderTile_js.js.map +1 -0
  9. package/node_modules_ol_VectorTile_js.js +158 -0
  10. package/node_modules_ol_VectorTile_js.js.map +1 -0
  11. package/node_modules_ol_geom_flat_geodesic_js.js +171 -0
  12. package/node_modules_ol_geom_flat_geodesic_js.js.map +1 -0
  13. package/node_modules_ol_render_js.js +131 -0
  14. package/node_modules_ol_render_js.js.map +1 -0
  15. package/node_modules_ol_structs_LRUCache_js.js +275 -0
  16. package/node_modules_ol_structs_LRUCache_js.js.map +1 -0
  17. package/node_modules_ol_style_js.js +47 -0
  18. package/node_modules_ol_style_js.js.map +1 -0
  19. package/node_modules_ol_tilecoord_js.js +115 -0
  20. package/node_modules_ol_tilecoord_js.js.map +1 -0
  21. package/package.json +148 -120
  22. package/vaadin-bundle.json +2614 -996
  23. package/vaadin.js +83021 -36220
  24. package/vaadin.js.map +1 -1
  25. package/vendors-node_modules_ol_Geolocation_js.js +379 -0
  26. package/vendors-node_modules_ol_Geolocation_js.js.map +1 -0
  27. package/vendors-node_modules_ol_TileCache_js.js +461 -0
  28. package/vendors-node_modules_ol_TileCache_js.js.map +1 -0
  29. package/vendors-node_modules_ol_Tile_js.js +330 -0
  30. package/vendors-node_modules_ol_Tile_js.js.map +1 -0
  31. package/vendors-node_modules_ol_index_js.js +874 -0
  32. package/vendors-node_modules_ol_index_js.js.map +1 -0
  33. package/vendors-node_modules_ol_layer_Graticule_js.js +1359 -0
  34. package/vendors-node_modules_ol_layer_Graticule_js.js.map +1 -0
  35. package/vendors-node_modules_ol_style_Text_js.js +509 -0
  36. package/vendors-node_modules_ol_style_Text_js.js.map +1 -0
  37. package/vendors-node_modules_rbush_index_js.js +531 -0
  38. package/vendors-node_modules_rbush_index_js.js.map +1 -0
@@ -0,0 +1,121 @@
1
+ (self["webpackChunk_vaadin_bundles"] = self["webpackChunk_vaadin_bundles"] || []).push([["node_modules_ol_ImageCanvas_js"],{
2
+
3
+ /***/ "./node_modules/ol/ImageCanvas.js":
4
+ /*!****************************************!*\
5
+ !*** ./node_modules/ol/ImageCanvas.js ***!
6
+ \****************************************/
7
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
8
+
9
+ __webpack_require__.r(__webpack_exports__);
10
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
12
+ /* harmony export */ });
13
+ /* harmony import */ var _ImageBase_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ImageBase.js */ "./node_modules/ol/ImageBase.js");
14
+ /* harmony import */ var _ImageState_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ImageState.js */ "./node_modules/ol/ImageState.js");
15
+ var __extends = (undefined && undefined.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ /**
31
+ * @module ol/ImageCanvas
32
+ */
33
+
34
+
35
+ /**
36
+ * A function that is called to trigger asynchronous canvas drawing. It is
37
+ * called with a "done" callback that should be called when drawing is done.
38
+ * If any error occurs during drawing, the "done" callback should be called with
39
+ * that error.
40
+ *
41
+ * @typedef {function(function(Error=): void): void} Loader
42
+ */
43
+ var ImageCanvas = /** @class */ (function (_super) {
44
+ __extends(ImageCanvas, _super);
45
+ /**
46
+ * @param {import("./extent.js").Extent} extent Extent.
47
+ * @param {number} resolution Resolution.
48
+ * @param {number} pixelRatio Pixel ratio.
49
+ * @param {HTMLCanvasElement} canvas Canvas.
50
+ * @param {Loader} [opt_loader] Optional loader function to
51
+ * support asynchronous canvas drawing.
52
+ */
53
+ function ImageCanvas(extent, resolution, pixelRatio, canvas, opt_loader) {
54
+ var _this = this;
55
+ var state = opt_loader !== undefined ? _ImageState_js__WEBPACK_IMPORTED_MODULE_0__["default"].IDLE : _ImageState_js__WEBPACK_IMPORTED_MODULE_0__["default"].LOADED;
56
+ _this = _super.call(this, extent, resolution, pixelRatio, state) || this;
57
+ /**
58
+ * Optional canvas loader function.
59
+ * @type {?Loader}
60
+ * @private
61
+ */
62
+ _this.loader_ = opt_loader !== undefined ? opt_loader : null;
63
+ /**
64
+ * @private
65
+ * @type {HTMLCanvasElement}
66
+ */
67
+ _this.canvas_ = canvas;
68
+ /**
69
+ * @private
70
+ * @type {?Error}
71
+ */
72
+ _this.error_ = null;
73
+ return _this;
74
+ }
75
+ /**
76
+ * Get any error associated with asynchronous rendering.
77
+ * @return {?Error} Any error that occurred during rendering.
78
+ */
79
+ ImageCanvas.prototype.getError = function () {
80
+ return this.error_;
81
+ };
82
+ /**
83
+ * Handle async drawing complete.
84
+ * @param {Error} [err] Any error during drawing.
85
+ * @private
86
+ */
87
+ ImageCanvas.prototype.handleLoad_ = function (err) {
88
+ if (err) {
89
+ this.error_ = err;
90
+ this.state = _ImageState_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERROR;
91
+ }
92
+ else {
93
+ this.state = _ImageState_js__WEBPACK_IMPORTED_MODULE_0__["default"].LOADED;
94
+ }
95
+ this.changed();
96
+ };
97
+ /**
98
+ * Load not yet loaded URI.
99
+ */
100
+ ImageCanvas.prototype.load = function () {
101
+ if (this.state == _ImageState_js__WEBPACK_IMPORTED_MODULE_0__["default"].IDLE) {
102
+ this.state = _ImageState_js__WEBPACK_IMPORTED_MODULE_0__["default"].LOADING;
103
+ this.changed();
104
+ this.loader_(this.handleLoad_.bind(this));
105
+ }
106
+ };
107
+ /**
108
+ * @return {HTMLCanvasElement} Canvas element.
109
+ */
110
+ ImageCanvas.prototype.getImage = function () {
111
+ return this.canvas_;
112
+ };
113
+ return ImageCanvas;
114
+ }(_ImageBase_js__WEBPACK_IMPORTED_MODULE_1__["default"]));
115
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ImageCanvas);
116
+ //# sourceMappingURL=ImageCanvas.js.map
117
+
118
+ /***/ })
119
+
120
+ }])
121
+ //# sourceMappingURL=node_modules_ol_ImageCanvas_js.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node_modules_ol_ImageCanvas_js.js","mappings":";;;;;;;;;;;;;;AAAA,iBAAiB,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACD;AACA;AACA;AACuC;AACE;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wCAAwC;AACrD;AACA;AACA;AACA;AACA,eAAe,8BAA8B;AAC7C,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB,eAAe,mBAAmB;AAClC,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,+CAA+C,2DAAe,GAAG,6DAAiB;AAClF;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA,yBAAyB,4DAAgB;AACzC;AACA;AACA,yBAAyB,6DAAiB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,2DAAe;AACzC,yBAAyB,8DAAkB;AAC3C;AACA;AACA;AACA;AACA;AACA,gBAAgB,mBAAmB;AACnC;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC,qDAAS;AACX,iEAAe,WAAW,EAAC;AAC3B","sources":["webpack://@vaadin/bundles/./node_modules/ol/ImageCanvas.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/**\n * @module ol/ImageCanvas\n */\nimport ImageBase from './ImageBase.js';\nimport ImageState from './ImageState.js';\n/**\n * A function that is called to trigger asynchronous canvas drawing. It is\n * called with a \"done\" callback that should be called when drawing is done.\n * If any error occurs during drawing, the \"done\" callback should be called with\n * that error.\n *\n * @typedef {function(function(Error=): void): void} Loader\n */\nvar ImageCanvas = /** @class */ (function (_super) {\n __extends(ImageCanvas, _super);\n /**\n * @param {import(\"./extent.js\").Extent} extent Extent.\n * @param {number} resolution Resolution.\n * @param {number} pixelRatio Pixel ratio.\n * @param {HTMLCanvasElement} canvas Canvas.\n * @param {Loader} [opt_loader] Optional loader function to\n * support asynchronous canvas drawing.\n */\n function ImageCanvas(extent, resolution, pixelRatio, canvas, opt_loader) {\n var _this = this;\n var state = opt_loader !== undefined ? ImageState.IDLE : ImageState.LOADED;\n _this = _super.call(this, extent, resolution, pixelRatio, state) || this;\n /**\n * Optional canvas loader function.\n * @type {?Loader}\n * @private\n */\n _this.loader_ = opt_loader !== undefined ? opt_loader : null;\n /**\n * @private\n * @type {HTMLCanvasElement}\n */\n _this.canvas_ = canvas;\n /**\n * @private\n * @type {?Error}\n */\n _this.error_ = null;\n return _this;\n }\n /**\n * Get any error associated with asynchronous rendering.\n * @return {?Error} Any error that occurred during rendering.\n */\n ImageCanvas.prototype.getError = function () {\n return this.error_;\n };\n /**\n * Handle async drawing complete.\n * @param {Error} [err] Any error during drawing.\n * @private\n */\n ImageCanvas.prototype.handleLoad_ = function (err) {\n if (err) {\n this.error_ = err;\n this.state = ImageState.ERROR;\n }\n else {\n this.state = ImageState.LOADED;\n }\n this.changed();\n };\n /**\n * Load not yet loaded URI.\n */\n ImageCanvas.prototype.load = function () {\n if (this.state == ImageState.IDLE) {\n this.state = ImageState.LOADING;\n this.changed();\n this.loader_(this.handleLoad_.bind(this));\n }\n };\n /**\n * @return {HTMLCanvasElement} Canvas element.\n */\n ImageCanvas.prototype.getImage = function () {\n return this.canvas_;\n };\n return ImageCanvas;\n}(ImageBase));\nexport default ImageCanvas;\n//# sourceMappingURL=ImageCanvas.js.map"],"names":[],"sourceRoot":""}
@@ -0,0 +1,177 @@
1
+ (self["webpackChunk_vaadin_bundles"] = self["webpackChunk_vaadin_bundles"] || []).push([["node_modules_ol_ImageTile_js"],{
2
+
3
+ /***/ "./node_modules/ol/ImageTile.js":
4
+ /*!**************************************!*\
5
+ !*** ./node_modules/ol/ImageTile.js ***!
6
+ \**************************************/
7
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
8
+
9
+ __webpack_require__.r(__webpack_exports__);
10
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
12
+ /* harmony export */ });
13
+ /* harmony import */ var _Tile_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Tile.js */ "./node_modules/ol/Tile.js");
14
+ /* harmony import */ var _TileState_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TileState.js */ "./node_modules/ol/TileState.js");
15
+ /* harmony import */ var _dom_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dom.js */ "./node_modules/ol/dom.js");
16
+ /* harmony import */ var _Image_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Image.js */ "./node_modules/ol/Image.js");
17
+ var __extends = (undefined && undefined.__extends) || (function () {
18
+ var extendStatics = function (d, b) {
19
+ extendStatics = Object.setPrototypeOf ||
20
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
21
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
22
+ return extendStatics(d, b);
23
+ };
24
+ return function (d, b) {
25
+ if (typeof b !== "function" && b !== null)
26
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
27
+ extendStatics(d, b);
28
+ function __() { this.constructor = d; }
29
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
30
+ };
31
+ })();
32
+ /**
33
+ * @module ol/ImageTile
34
+ */
35
+
36
+
37
+
38
+
39
+ var ImageTile = /** @class */ (function (_super) {
40
+ __extends(ImageTile, _super);
41
+ /**
42
+ * @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate.
43
+ * @param {import("./TileState.js").default} state State.
44
+ * @param {string} src Image source URI.
45
+ * @param {?string} crossOrigin Cross origin.
46
+ * @param {import("./Tile.js").LoadFunction} tileLoadFunction Tile load function.
47
+ * @param {import("./Tile.js").Options} [opt_options] Tile options.
48
+ */
49
+ function ImageTile(tileCoord, state, src, crossOrigin, tileLoadFunction, opt_options) {
50
+ var _this = _super.call(this, tileCoord, state, opt_options) || this;
51
+ /**
52
+ * @private
53
+ * @type {?string}
54
+ */
55
+ _this.crossOrigin_ = crossOrigin;
56
+ /**
57
+ * Image URI
58
+ *
59
+ * @private
60
+ * @type {string}
61
+ */
62
+ _this.src_ = src;
63
+ _this.key = src;
64
+ /**
65
+ * @private
66
+ * @type {HTMLImageElement|HTMLCanvasElement}
67
+ */
68
+ _this.image_ = new Image();
69
+ if (crossOrigin !== null) {
70
+ _this.image_.crossOrigin = crossOrigin;
71
+ }
72
+ /**
73
+ * @private
74
+ * @type {?function():void}
75
+ */
76
+ _this.unlisten_ = null;
77
+ /**
78
+ * @private
79
+ * @type {import("./Tile.js").LoadFunction}
80
+ */
81
+ _this.tileLoadFunction_ = tileLoadFunction;
82
+ return _this;
83
+ }
84
+ /**
85
+ * Get the HTML image element for this tile (may be a Canvas, Image, or Video).
86
+ * @return {HTMLCanvasElement|HTMLImageElement|HTMLVideoElement} Image.
87
+ * @api
88
+ */
89
+ ImageTile.prototype.getImage = function () {
90
+ return this.image_;
91
+ };
92
+ /**
93
+ * Sets an HTML image element for this tile (may be a Canvas or preloaded Image).
94
+ * @param {HTMLCanvasElement|HTMLImageElement} element Element.
95
+ */
96
+ ImageTile.prototype.setImage = function (element) {
97
+ this.image_ = element;
98
+ this.state = _TileState_js__WEBPACK_IMPORTED_MODULE_0__["default"].LOADED;
99
+ this.unlistenImage_();
100
+ this.changed();
101
+ };
102
+ /**
103
+ * Tracks loading or read errors.
104
+ *
105
+ * @private
106
+ */
107
+ ImageTile.prototype.handleImageError_ = function () {
108
+ this.state = _TileState_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERROR;
109
+ this.unlistenImage_();
110
+ this.image_ = getBlankImage();
111
+ this.changed();
112
+ };
113
+ /**
114
+ * Tracks successful image load.
115
+ *
116
+ * @private
117
+ */
118
+ ImageTile.prototype.handleImageLoad_ = function () {
119
+ var image = /** @type {HTMLImageElement} */ (this.image_);
120
+ if (image.naturalWidth && image.naturalHeight) {
121
+ this.state = _TileState_js__WEBPACK_IMPORTED_MODULE_0__["default"].LOADED;
122
+ }
123
+ else {
124
+ this.state = _TileState_js__WEBPACK_IMPORTED_MODULE_0__["default"].EMPTY;
125
+ }
126
+ this.unlistenImage_();
127
+ this.changed();
128
+ };
129
+ /**
130
+ * Load not yet loaded URI.
131
+ * @api
132
+ */
133
+ ImageTile.prototype.load = function () {
134
+ if (this.state == _TileState_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERROR) {
135
+ this.state = _TileState_js__WEBPACK_IMPORTED_MODULE_0__["default"].IDLE;
136
+ this.image_ = new Image();
137
+ if (this.crossOrigin_ !== null) {
138
+ this.image_.crossOrigin = this.crossOrigin_;
139
+ }
140
+ }
141
+ if (this.state == _TileState_js__WEBPACK_IMPORTED_MODULE_0__["default"].IDLE) {
142
+ this.state = _TileState_js__WEBPACK_IMPORTED_MODULE_0__["default"].LOADING;
143
+ this.changed();
144
+ this.tileLoadFunction_(this, this.src_);
145
+ this.unlisten_ = (0,_Image_js__WEBPACK_IMPORTED_MODULE_1__.listenImage)(this.image_, this.handleImageLoad_.bind(this), this.handleImageError_.bind(this));
146
+ }
147
+ };
148
+ /**
149
+ * Discards event handlers which listen for load completion or errors.
150
+ *
151
+ * @private
152
+ */
153
+ ImageTile.prototype.unlistenImage_ = function () {
154
+ if (this.unlisten_) {
155
+ this.unlisten_();
156
+ this.unlisten_ = null;
157
+ }
158
+ };
159
+ return ImageTile;
160
+ }(_Tile_js__WEBPACK_IMPORTED_MODULE_2__["default"]));
161
+ /**
162
+ * Get a 1-pixel blank image.
163
+ * @return {HTMLCanvasElement} Blank image.
164
+ */
165
+ function getBlankImage() {
166
+ var ctx = (0,_dom_js__WEBPACK_IMPORTED_MODULE_3__.createCanvasContext2D)(1, 1);
167
+ ctx.fillStyle = 'rgba(0,0,0,0)';
168
+ ctx.fillRect(0, 0, 1, 1);
169
+ return ctx.canvas;
170
+ }
171
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ImageTile);
172
+ //# sourceMappingURL=ImageTile.js.map
173
+
174
+ /***/ })
175
+
176
+ }])
177
+ //# sourceMappingURL=node_modules_ol_ImageTile_js.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node_modules_ol_ImageTile_js.js","mappings":";;;;;;;;;;;;;;;;AAAA,iBAAiB,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACD;AACA;AACA;AAC6B;AACU;AACU;AACR;AACzC;AACA;AACA;AACA,eAAe,oCAAoC;AACnD,eAAe,kCAAkC;AACjD,eAAe,QAAQ;AACvB,eAAe,SAAS;AACxB,eAAe,kCAAkC;AACjD,eAAe,6BAA6B;AAC5C;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,qDAAqD;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,oCAAoC;AACnD;AACA;AACA;AACA,qBAAqB,4DAAgB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,2DAAe;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,kBAAkB;AACjD;AACA,yBAAyB,4DAAgB;AACzC;AACA;AACA,yBAAyB,2DAAe;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,2DAAe;AACzC,yBAAyB,0DAAc;AACvC;AACA;AACA;AACA;AACA;AACA,0BAA0B,0DAAc;AACxC,yBAAyB,6DAAiB;AAC1C;AACA;AACA,6BAA6B,sDAAW;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC,gDAAI;AACN;AACA;AACA,YAAY,mBAAmB;AAC/B;AACA;AACA,cAAc,8DAAqB;AACnC;AACA;AACA;AACA;AACA,iEAAe,SAAS,EAAC;AACzB","sources":["webpack://@vaadin/bundles/./node_modules/ol/ImageTile.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/**\n * @module ol/ImageTile\n */\nimport Tile from './Tile.js';\nimport TileState from './TileState.js';\nimport { createCanvasContext2D } from './dom.js';\nimport { listenImage } from './Image.js';\nvar ImageTile = /** @class */ (function (_super) {\n __extends(ImageTile, _super);\n /**\n * @param {import(\"./tilecoord.js\").TileCoord} tileCoord Tile coordinate.\n * @param {import(\"./TileState.js\").default} state State.\n * @param {string} src Image source URI.\n * @param {?string} crossOrigin Cross origin.\n * @param {import(\"./Tile.js\").LoadFunction} tileLoadFunction Tile load function.\n * @param {import(\"./Tile.js\").Options} [opt_options] Tile options.\n */\n function ImageTile(tileCoord, state, src, crossOrigin, tileLoadFunction, opt_options) {\n var _this = _super.call(this, tileCoord, state, opt_options) || this;\n /**\n * @private\n * @type {?string}\n */\n _this.crossOrigin_ = crossOrigin;\n /**\n * Image URI\n *\n * @private\n * @type {string}\n */\n _this.src_ = src;\n _this.key = src;\n /**\n * @private\n * @type {HTMLImageElement|HTMLCanvasElement}\n */\n _this.image_ = new Image();\n if (crossOrigin !== null) {\n _this.image_.crossOrigin = crossOrigin;\n }\n /**\n * @private\n * @type {?function():void}\n */\n _this.unlisten_ = null;\n /**\n * @private\n * @type {import(\"./Tile.js\").LoadFunction}\n */\n _this.tileLoadFunction_ = tileLoadFunction;\n return _this;\n }\n /**\n * Get the HTML image element for this tile (may be a Canvas, Image, or Video).\n * @return {HTMLCanvasElement|HTMLImageElement|HTMLVideoElement} Image.\n * @api\n */\n ImageTile.prototype.getImage = function () {\n return this.image_;\n };\n /**\n * Sets an HTML image element for this tile (may be a Canvas or preloaded Image).\n * @param {HTMLCanvasElement|HTMLImageElement} element Element.\n */\n ImageTile.prototype.setImage = function (element) {\n this.image_ = element;\n this.state = TileState.LOADED;\n this.unlistenImage_();\n this.changed();\n };\n /**\n * Tracks loading or read errors.\n *\n * @private\n */\n ImageTile.prototype.handleImageError_ = function () {\n this.state = TileState.ERROR;\n this.unlistenImage_();\n this.image_ = getBlankImage();\n this.changed();\n };\n /**\n * Tracks successful image load.\n *\n * @private\n */\n ImageTile.prototype.handleImageLoad_ = function () {\n var image = /** @type {HTMLImageElement} */ (this.image_);\n if (image.naturalWidth && image.naturalHeight) {\n this.state = TileState.LOADED;\n }\n else {\n this.state = TileState.EMPTY;\n }\n this.unlistenImage_();\n this.changed();\n };\n /**\n * Load not yet loaded URI.\n * @api\n */\n ImageTile.prototype.load = function () {\n if (this.state == TileState.ERROR) {\n this.state = TileState.IDLE;\n this.image_ = new Image();\n if (this.crossOrigin_ !== null) {\n this.image_.crossOrigin = this.crossOrigin_;\n }\n }\n if (this.state == TileState.IDLE) {\n this.state = TileState.LOADING;\n this.changed();\n this.tileLoadFunction_(this, this.src_);\n this.unlisten_ = listenImage(this.image_, this.handleImageLoad_.bind(this), this.handleImageError_.bind(this));\n }\n };\n /**\n * Discards event handlers which listen for load completion or errors.\n *\n * @private\n */\n ImageTile.prototype.unlistenImage_ = function () {\n if (this.unlisten_) {\n this.unlisten_();\n this.unlisten_ = null;\n }\n };\n return ImageTile;\n}(Tile));\n/**\n * Get a 1-pixel blank image.\n * @return {HTMLCanvasElement} Blank image.\n */\nfunction getBlankImage() {\n var ctx = createCanvasContext2D(1, 1);\n ctx.fillStyle = 'rgba(0,0,0,0)';\n ctx.fillRect(0, 0, 1, 1);\n return ctx.canvas;\n}\nexport default ImageTile;\n//# sourceMappingURL=ImageTile.js.map"],"names":[],"sourceRoot":""}
@@ -0,0 +1,154 @@
1
+ (self["webpackChunk_vaadin_bundles"] = self["webpackChunk_vaadin_bundles"] || []).push([["node_modules_ol_TileRange_js"],{
2
+
3
+ /***/ "./node_modules/ol/TileRange.js":
4
+ /*!**************************************!*\
5
+ !*** ./node_modules/ol/TileRange.js ***!
6
+ \**************************************/
7
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
8
+
9
+ __webpack_require__.r(__webpack_exports__);
10
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11
+ /* harmony export */ "createOrUpdate": () => (/* binding */ createOrUpdate),
12
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
13
+ /* harmony export */ });
14
+ /**
15
+ * @module ol/TileRange
16
+ */
17
+ /**
18
+ * A representation of a contiguous block of tiles. A tile range is specified
19
+ * by its min/max tile coordinates and is inclusive of coordinates.
20
+ */
21
+ var TileRange = /** @class */ (function () {
22
+ /**
23
+ * @param {number} minX Minimum X.
24
+ * @param {number} maxX Maximum X.
25
+ * @param {number} minY Minimum Y.
26
+ * @param {number} maxY Maximum Y.
27
+ */
28
+ function TileRange(minX, maxX, minY, maxY) {
29
+ /**
30
+ * @type {number}
31
+ */
32
+ this.minX = minX;
33
+ /**
34
+ * @type {number}
35
+ */
36
+ this.maxX = maxX;
37
+ /**
38
+ * @type {number}
39
+ */
40
+ this.minY = minY;
41
+ /**
42
+ * @type {number}
43
+ */
44
+ this.maxY = maxY;
45
+ }
46
+ /**
47
+ * @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate.
48
+ * @return {boolean} Contains tile coordinate.
49
+ */
50
+ TileRange.prototype.contains = function (tileCoord) {
51
+ return this.containsXY(tileCoord[1], tileCoord[2]);
52
+ };
53
+ /**
54
+ * @param {TileRange} tileRange Tile range.
55
+ * @return {boolean} Contains.
56
+ */
57
+ TileRange.prototype.containsTileRange = function (tileRange) {
58
+ return (this.minX <= tileRange.minX &&
59
+ tileRange.maxX <= this.maxX &&
60
+ this.minY <= tileRange.minY &&
61
+ tileRange.maxY <= this.maxY);
62
+ };
63
+ /**
64
+ * @param {number} x Tile coordinate x.
65
+ * @param {number} y Tile coordinate y.
66
+ * @return {boolean} Contains coordinate.
67
+ */
68
+ TileRange.prototype.containsXY = function (x, y) {
69
+ return this.minX <= x && x <= this.maxX && this.minY <= y && y <= this.maxY;
70
+ };
71
+ /**
72
+ * @param {TileRange} tileRange Tile range.
73
+ * @return {boolean} Equals.
74
+ */
75
+ TileRange.prototype.equals = function (tileRange) {
76
+ return (this.minX == tileRange.minX &&
77
+ this.minY == tileRange.minY &&
78
+ this.maxX == tileRange.maxX &&
79
+ this.maxY == tileRange.maxY);
80
+ };
81
+ /**
82
+ * @param {TileRange} tileRange Tile range.
83
+ */
84
+ TileRange.prototype.extend = function (tileRange) {
85
+ if (tileRange.minX < this.minX) {
86
+ this.minX = tileRange.minX;
87
+ }
88
+ if (tileRange.maxX > this.maxX) {
89
+ this.maxX = tileRange.maxX;
90
+ }
91
+ if (tileRange.minY < this.minY) {
92
+ this.minY = tileRange.minY;
93
+ }
94
+ if (tileRange.maxY > this.maxY) {
95
+ this.maxY = tileRange.maxY;
96
+ }
97
+ };
98
+ /**
99
+ * @return {number} Height.
100
+ */
101
+ TileRange.prototype.getHeight = function () {
102
+ return this.maxY - this.minY + 1;
103
+ };
104
+ /**
105
+ * @return {import("./size.js").Size} Size.
106
+ */
107
+ TileRange.prototype.getSize = function () {
108
+ return [this.getWidth(), this.getHeight()];
109
+ };
110
+ /**
111
+ * @return {number} Width.
112
+ */
113
+ TileRange.prototype.getWidth = function () {
114
+ return this.maxX - this.minX + 1;
115
+ };
116
+ /**
117
+ * @param {TileRange} tileRange Tile range.
118
+ * @return {boolean} Intersects.
119
+ */
120
+ TileRange.prototype.intersects = function (tileRange) {
121
+ return (this.minX <= tileRange.maxX &&
122
+ this.maxX >= tileRange.minX &&
123
+ this.minY <= tileRange.maxY &&
124
+ this.maxY >= tileRange.minY);
125
+ };
126
+ return TileRange;
127
+ }());
128
+ /**
129
+ * @param {number} minX Minimum X.
130
+ * @param {number} maxX Maximum X.
131
+ * @param {number} minY Minimum Y.
132
+ * @param {number} maxY Maximum Y.
133
+ * @param {TileRange} [tileRange] TileRange.
134
+ * @return {TileRange} Tile range.
135
+ */
136
+ function createOrUpdate(minX, maxX, minY, maxY, tileRange) {
137
+ if (tileRange !== undefined) {
138
+ tileRange.minX = minX;
139
+ tileRange.maxX = maxX;
140
+ tileRange.minY = minY;
141
+ tileRange.maxY = maxY;
142
+ return tileRange;
143
+ }
144
+ else {
145
+ return new TileRange(minX, maxX, minY, maxY);
146
+ }
147
+ }
148
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TileRange);
149
+ //# sourceMappingURL=TileRange.js.map
150
+
151
+ /***/ })
152
+
153
+ }])
154
+ //# sourceMappingURL=node_modules_ol_TileRange_js.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node_modules_ol_TileRange_js.js","mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA,eAAe,oCAAoC;AACnD,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA,eAAe,WAAW;AAC1B,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA,eAAe,WAAW;AAC1B,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA,gBAAgB,0BAA0B;AAC1C;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA,eAAe,WAAW;AAC1B,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,WAAW;AACtB,YAAY,WAAW;AACvB;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAe,SAAS,EAAC;AACzB","sources":["webpack://@vaadin/bundles/./node_modules/ol/TileRange.js"],"sourcesContent":["/**\n * @module ol/TileRange\n */\n/**\n * A representation of a contiguous block of tiles. A tile range is specified\n * by its min/max tile coordinates and is inclusive of coordinates.\n */\nvar TileRange = /** @class */ (function () {\n /**\n * @param {number} minX Minimum X.\n * @param {number} maxX Maximum X.\n * @param {number} minY Minimum Y.\n * @param {number} maxY Maximum Y.\n */\n function TileRange(minX, maxX, minY, maxY) {\n /**\n * @type {number}\n */\n this.minX = minX;\n /**\n * @type {number}\n */\n this.maxX = maxX;\n /**\n * @type {number}\n */\n this.minY = minY;\n /**\n * @type {number}\n */\n this.maxY = maxY;\n }\n /**\n * @param {import(\"./tilecoord.js\").TileCoord} tileCoord Tile coordinate.\n * @return {boolean} Contains tile coordinate.\n */\n TileRange.prototype.contains = function (tileCoord) {\n return this.containsXY(tileCoord[1], tileCoord[2]);\n };\n /**\n * @param {TileRange} tileRange Tile range.\n * @return {boolean} Contains.\n */\n TileRange.prototype.containsTileRange = function (tileRange) {\n return (this.minX <= tileRange.minX &&\n tileRange.maxX <= this.maxX &&\n this.minY <= tileRange.minY &&\n tileRange.maxY <= this.maxY);\n };\n /**\n * @param {number} x Tile coordinate x.\n * @param {number} y Tile coordinate y.\n * @return {boolean} Contains coordinate.\n */\n TileRange.prototype.containsXY = function (x, y) {\n return this.minX <= x && x <= this.maxX && this.minY <= y && y <= this.maxY;\n };\n /**\n * @param {TileRange} tileRange Tile range.\n * @return {boolean} Equals.\n */\n TileRange.prototype.equals = function (tileRange) {\n return (this.minX == tileRange.minX &&\n this.minY == tileRange.minY &&\n this.maxX == tileRange.maxX &&\n this.maxY == tileRange.maxY);\n };\n /**\n * @param {TileRange} tileRange Tile range.\n */\n TileRange.prototype.extend = function (tileRange) {\n if (tileRange.minX < this.minX) {\n this.minX = tileRange.minX;\n }\n if (tileRange.maxX > this.maxX) {\n this.maxX = tileRange.maxX;\n }\n if (tileRange.minY < this.minY) {\n this.minY = tileRange.minY;\n }\n if (tileRange.maxY > this.maxY) {\n this.maxY = tileRange.maxY;\n }\n };\n /**\n * @return {number} Height.\n */\n TileRange.prototype.getHeight = function () {\n return this.maxY - this.minY + 1;\n };\n /**\n * @return {import(\"./size.js\").Size} Size.\n */\n TileRange.prototype.getSize = function () {\n return [this.getWidth(), this.getHeight()];\n };\n /**\n * @return {number} Width.\n */\n TileRange.prototype.getWidth = function () {\n return this.maxX - this.minX + 1;\n };\n /**\n * @param {TileRange} tileRange Tile range.\n * @return {boolean} Intersects.\n */\n TileRange.prototype.intersects = function (tileRange) {\n return (this.minX <= tileRange.maxX &&\n this.maxX >= tileRange.minX &&\n this.minY <= tileRange.maxY &&\n this.maxY >= tileRange.minY);\n };\n return TileRange;\n}());\n/**\n * @param {number} minX Minimum X.\n * @param {number} maxX Maximum X.\n * @param {number} minY Minimum Y.\n * @param {number} maxY Maximum Y.\n * @param {TileRange} [tileRange] TileRange.\n * @return {TileRange} Tile range.\n */\nexport function createOrUpdate(minX, maxX, minY, maxY, tileRange) {\n if (tileRange !== undefined) {\n tileRange.minX = minX;\n tileRange.maxX = maxX;\n tileRange.minY = minY;\n tileRange.maxY = maxY;\n return tileRange;\n }\n else {\n return new TileRange(minX, maxX, minY, maxY);\n }\n}\nexport default TileRange;\n//# sourceMappingURL=TileRange.js.map"],"names":[],"sourceRoot":""}
@@ -0,0 +1,182 @@
1
+ (self["webpackChunk_vaadin_bundles"] = self["webpackChunk_vaadin_bundles"] || []).push([["node_modules_ol_VectorRenderTile_js"],{
2
+
3
+ /***/ "./node_modules/ol/VectorRenderTile.js":
4
+ /*!*********************************************!*\
5
+ !*** ./node_modules/ol/VectorRenderTile.js ***!
6
+ \*********************************************/
7
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
8
+
9
+ __webpack_require__.r(__webpack_exports__);
10
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
12
+ /* harmony export */ });
13
+ /* harmony import */ var _Tile_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Tile.js */ "./node_modules/ol/Tile.js");
14
+ /* harmony import */ var _dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dom.js */ "./node_modules/ol/dom.js");
15
+ /* harmony import */ var _util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util.js */ "./node_modules/ol/util.js");
16
+ var __extends = (undefined && undefined.__extends) || (function () {
17
+ var extendStatics = function (d, b) {
18
+ extendStatics = Object.setPrototypeOf ||
19
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
21
+ return extendStatics(d, b);
22
+ };
23
+ return function (d, b) {
24
+ if (typeof b !== "function" && b !== null)
25
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
26
+ extendStatics(d, b);
27
+ function __() { this.constructor = d; }
28
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
29
+ };
30
+ })();
31
+ /**
32
+ * @module ol/VectorRenderTile
33
+ */
34
+
35
+
36
+
37
+ /**
38
+ * @typedef {Object} ReplayState
39
+ * @property {boolean} dirty Dirty.
40
+ * @property {null|import("./render.js").OrderFunction} renderedRenderOrder RenderedRenderOrder.
41
+ * @property {number} renderedTileRevision RenderedTileRevision.
42
+ * @property {number} renderedResolution RenderedResolution.
43
+ * @property {number} renderedRevision RenderedRevision.
44
+ * @property {number} renderedTileResolution RenderedTileResolution.
45
+ * @property {number} renderedTileZ RenderedTileZ.
46
+ */
47
+ /**
48
+ * @type {Array<HTMLCanvasElement>}
49
+ */
50
+ var canvasPool = [];
51
+ var VectorRenderTile = /** @class */ (function (_super) {
52
+ __extends(VectorRenderTile, _super);
53
+ /**
54
+ * @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate.
55
+ * @param {import("./TileState.js").default} state State.
56
+ * @param {import("./tilecoord.js").TileCoord} urlTileCoord Wrapped tile coordinate for source urls.
57
+ * @param {function(VectorRenderTile):Array<import("./VectorTile").default>} getSourceTiles Function
58
+ * to get source tiles for this tile.
59
+ */
60
+ function VectorRenderTile(tileCoord, state, urlTileCoord, getSourceTiles) {
61
+ var _this = _super.call(this, tileCoord, state, { transition: 0 }) || this;
62
+ /**
63
+ * @private
64
+ * @type {!Object<string, CanvasRenderingContext2D>}
65
+ */
66
+ _this.context_ = {};
67
+ /**
68
+ * Executor groups by layer uid. Entries are read/written by the renderer.
69
+ * @type {Object<string, Array<import("./render/canvas/ExecutorGroup.js").default>>}
70
+ */
71
+ _this.executorGroups = {};
72
+ /**
73
+ * Executor groups for decluttering, by layer uid. Entries are read/written by the renderer.
74
+ * @type {Object<string, Array<import("./render/canvas/ExecutorGroup.js").default>>}
75
+ */
76
+ _this.declutterExecutorGroups = {};
77
+ /**
78
+ * Number of loading source tiles. Read/written by the source.
79
+ * @type {number}
80
+ */
81
+ _this.loadingSourceTiles = 0;
82
+ /**
83
+ * @type {Object<number, ImageData>}
84
+ */
85
+ _this.hitDetectionImageData = {};
86
+ /**
87
+ * @private
88
+ * @type {!Object<string, ReplayState>}
89
+ */
90
+ _this.replayState_ = {};
91
+ /**
92
+ * @type {Array<import("./VectorTile.js").default>}
93
+ */
94
+ _this.sourceTiles = [];
95
+ /**
96
+ * @type {Object<string, boolean>}
97
+ */
98
+ _this.errorTileKeys = {};
99
+ /**
100
+ * @type {number}
101
+ */
102
+ _this.wantedResolution;
103
+ /**
104
+ * @type {!function():Array<import("./VectorTile.js").default>}
105
+ */
106
+ _this.getSourceTiles = getSourceTiles.bind(undefined, _this);
107
+ /**
108
+ * @type {import("./tilecoord.js").TileCoord}
109
+ */
110
+ _this.wrappedTileCoord = urlTileCoord;
111
+ return _this;
112
+ }
113
+ /**
114
+ * @param {import("./layer/Layer.js").default} layer Layer.
115
+ * @return {CanvasRenderingContext2D} The rendering context.
116
+ */
117
+ VectorRenderTile.prototype.getContext = function (layer) {
118
+ var key = (0,_util_js__WEBPACK_IMPORTED_MODULE_0__.getUid)(layer);
119
+ if (!(key in this.context_)) {
120
+ this.context_[key] = (0,_dom_js__WEBPACK_IMPORTED_MODULE_1__.createCanvasContext2D)(1, 1, canvasPool);
121
+ }
122
+ return this.context_[key];
123
+ };
124
+ /**
125
+ * @param {import("./layer/Layer.js").default} layer Layer.
126
+ * @return {boolean} Tile has a rendering context for the given layer.
127
+ */
128
+ VectorRenderTile.prototype.hasContext = function (layer) {
129
+ return (0,_util_js__WEBPACK_IMPORTED_MODULE_0__.getUid)(layer) in this.context_;
130
+ };
131
+ /**
132
+ * Get the Canvas for this tile.
133
+ * @param {import("./layer/Layer.js").default} layer Layer.
134
+ * @return {HTMLCanvasElement} Canvas.
135
+ */
136
+ VectorRenderTile.prototype.getImage = function (layer) {
137
+ return this.hasContext(layer) ? this.getContext(layer).canvas : null;
138
+ };
139
+ /**
140
+ * @param {import("./layer/Layer.js").default} layer Layer.
141
+ * @return {ReplayState} The replay state.
142
+ */
143
+ VectorRenderTile.prototype.getReplayState = function (layer) {
144
+ var key = (0,_util_js__WEBPACK_IMPORTED_MODULE_0__.getUid)(layer);
145
+ if (!(key in this.replayState_)) {
146
+ this.replayState_[key] = {
147
+ dirty: false,
148
+ renderedRenderOrder: null,
149
+ renderedResolution: NaN,
150
+ renderedRevision: -1,
151
+ renderedTileResolution: NaN,
152
+ renderedTileRevision: -1,
153
+ renderedTileZ: -1,
154
+ };
155
+ }
156
+ return this.replayState_[key];
157
+ };
158
+ /**
159
+ * Load the tile.
160
+ */
161
+ VectorRenderTile.prototype.load = function () {
162
+ this.getSourceTiles();
163
+ };
164
+ /**
165
+ * Remove from the cache due to expiry
166
+ */
167
+ VectorRenderTile.prototype.release = function () {
168
+ for (var key in this.context_) {
169
+ canvasPool.push(this.context_[key].canvas);
170
+ delete this.context_[key];
171
+ }
172
+ _super.prototype.release.call(this);
173
+ };
174
+ return VectorRenderTile;
175
+ }(_Tile_js__WEBPACK_IMPORTED_MODULE_2__["default"]));
176
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VectorRenderTile);
177
+ //# sourceMappingURL=VectorRenderTile.js.map
178
+
179
+ /***/ })
180
+
181
+ }])
182
+ //# sourceMappingURL=node_modules_ol_VectorRenderTile_js.js.map