ry-vue-map 0.1.2 → 0.1.4
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/README.MD +1 -1
- package/lib/ryui.common.js +38444 -73751
- package/lib/ryui.common.js.gz +0 -0
- package/lib/ryui.css +1 -1
- package/lib/ryui.umd.js +38444 -73751
- package/lib/ryui.umd.js.gz +0 -0
- package/lib/ryui.umd.min.js +6 -13
- package/lib/ryui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/components/maps/ryClustersMarker/src/index.vue +1 -1
- package/src/components/maps/ryMap/src/index.vue +3 -2
- package/src/utils/lMapServices.js +2 -3
- package/src/views/map/index.vue +11 -3
- package/lib/ryui.common.0.js +0 -6852
- package/lib/ryui.common.0.js.gz +0 -0
- package/lib/ryui.common.2.js +0 -1034
- package/lib/ryui.common.2.js.gz +0 -0
- package/lib/ryui.common.3.js +0 -268
- package/lib/ryui.common.4.js +0 -163
- package/lib/ryui.common.5.js +0 -144
- package/lib/ryui.common.6.js +0 -177
- package/lib/ryui.common.7.js +0 -2373
- package/lib/ryui.common.7.js.gz +0 -0
- package/lib/ryui.common.8.js +0 -47
- package/lib/ryui.common.8.js.gz +0 -0
- package/lib/ryui.common.9.js +0 -23
- package/lib/ryui.umd.0.js +0 -6852
- package/lib/ryui.umd.0.js.gz +0 -0
- package/lib/ryui.umd.2.js +0 -1034
- package/lib/ryui.umd.2.js.gz +0 -0
- package/lib/ryui.umd.3.js +0 -268
- package/lib/ryui.umd.4.js +0 -163
- package/lib/ryui.umd.5.js +0 -144
- package/lib/ryui.umd.6.js +0 -177
- package/lib/ryui.umd.7.js +0 -2373
- package/lib/ryui.umd.7.js.gz +0 -0
- package/lib/ryui.umd.8.js +0 -47
- package/lib/ryui.umd.8.js.gz +0 -0
- package/lib/ryui.umd.9.js +0 -23
- package/lib/ryui.umd.min.0.js +0 -3
- package/lib/ryui.umd.min.0.js.gz +0 -0
- package/lib/ryui.umd.min.2.js +0 -1
- package/lib/ryui.umd.min.2.js.gz +0 -0
- package/lib/ryui.umd.min.3.js +0 -1
- package/lib/ryui.umd.min.4.js +0 -1
- package/lib/ryui.umd.min.5.js +0 -1
- package/lib/ryui.umd.min.6.js +0 -1
- package/lib/ryui.umd.min.7.js +0 -2
- package/lib/ryui.umd.min.7.js.gz +0 -0
- package/lib/ryui.umd.min.8.js +0 -1
- package/lib/ryui.umd.min.8.js.gz +0 -0
- package/lib/ryui.umd.min.9.js +0 -1
package/lib/ryui.common.6.js
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
((typeof self !== 'undefined' ? self : this)["webpackJsonpryui"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpryui"] || []).push([[6],{
|
|
2
|
-
|
|
3
|
-
/***/ "b3f7":
|
|
4
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
|
|
8
|
-
// EXPORTS
|
|
9
|
-
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ basedecoder_BaseDecoder; });
|
|
10
|
-
|
|
11
|
-
// CONCATENATED MODULE: ./node_modules/geotiff/dist-module/predictor.js
|
|
12
|
-
function decodeRowAcc(row, stride) {
|
|
13
|
-
let length = row.length - stride;
|
|
14
|
-
let offset = 0;
|
|
15
|
-
do {
|
|
16
|
-
for (let i = stride; i > 0; i--) {
|
|
17
|
-
row[offset + stride] += row[offset];
|
|
18
|
-
offset++;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
length -= stride;
|
|
22
|
-
} while (length > 0);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function decodeRowFloatingPoint(row, stride, bytesPerSample) {
|
|
26
|
-
let index = 0;
|
|
27
|
-
let count = row.length;
|
|
28
|
-
const wc = count / bytesPerSample;
|
|
29
|
-
|
|
30
|
-
while (count > stride) {
|
|
31
|
-
for (let i = stride; i > 0; --i) {
|
|
32
|
-
row[index + stride] += row[index];
|
|
33
|
-
++index;
|
|
34
|
-
}
|
|
35
|
-
count -= stride;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const copy = row.slice();
|
|
39
|
-
for (let i = 0; i < wc; ++i) {
|
|
40
|
-
for (let b = 0; b < bytesPerSample; ++b) {
|
|
41
|
-
row[(bytesPerSample * i) + b] = copy[((bytesPerSample - b - 1) * wc) + i];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function applyPredictor(block, predictor, width, height, bitsPerSample,
|
|
47
|
-
planarConfiguration) {
|
|
48
|
-
if (!predictor || predictor === 1) {
|
|
49
|
-
return block;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
for (let i = 0; i < bitsPerSample.length; ++i) {
|
|
53
|
-
if (bitsPerSample[i] % 8 !== 0) {
|
|
54
|
-
throw new Error('When decoding with predictor, only multiple of 8 bits are supported.');
|
|
55
|
-
}
|
|
56
|
-
if (bitsPerSample[i] !== bitsPerSample[0]) {
|
|
57
|
-
throw new Error('When decoding with predictor, all samples must have the same size.');
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const bytesPerSample = bitsPerSample[0] / 8;
|
|
62
|
-
const stride = planarConfiguration === 2 ? 1 : bitsPerSample.length;
|
|
63
|
-
|
|
64
|
-
for (let i = 0; i < height; ++i) {
|
|
65
|
-
// Last strip will be truncated if height % stripHeight != 0
|
|
66
|
-
if (i * stride * width * bytesPerSample >= block.byteLength) {
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
let row;
|
|
70
|
-
if (predictor === 2) { // horizontal prediction
|
|
71
|
-
switch (bitsPerSample[0]) {
|
|
72
|
-
case 8:
|
|
73
|
-
row = new Uint8Array(
|
|
74
|
-
block, i * stride * width * bytesPerSample, stride * width * bytesPerSample,
|
|
75
|
-
);
|
|
76
|
-
break;
|
|
77
|
-
case 16:
|
|
78
|
-
row = new Uint16Array(
|
|
79
|
-
block, i * stride * width * bytesPerSample, stride * width * bytesPerSample / 2,
|
|
80
|
-
);
|
|
81
|
-
break;
|
|
82
|
-
case 32:
|
|
83
|
-
row = new Uint32Array(
|
|
84
|
-
block, i * stride * width * bytesPerSample, stride * width * bytesPerSample / 4,
|
|
85
|
-
);
|
|
86
|
-
break;
|
|
87
|
-
default:
|
|
88
|
-
throw new Error(`Predictor 2 not allowed with ${bitsPerSample[0]} bits per sample.`);
|
|
89
|
-
}
|
|
90
|
-
decodeRowAcc(row, stride, bytesPerSample);
|
|
91
|
-
} else if (predictor === 3) { // horizontal floating point
|
|
92
|
-
row = new Uint8Array(
|
|
93
|
-
block, i * stride * width * bytesPerSample, stride * width * bytesPerSample,
|
|
94
|
-
);
|
|
95
|
-
decodeRowFloatingPoint(row, stride, bytesPerSample);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
return block;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// CONCATENATED MODULE: ./node_modules/geotiff/dist-module/compression/basedecoder.js
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
class basedecoder_BaseDecoder {
|
|
105
|
-
async decode(fileDirectory, buffer) {
|
|
106
|
-
const decoded = await this.decodeBlock(buffer);
|
|
107
|
-
const predictor = fileDirectory.Predictor || 1;
|
|
108
|
-
if (predictor !== 1) {
|
|
109
|
-
const isTiled = !fileDirectory.StripOffsets;
|
|
110
|
-
const tileWidth = isTiled ? fileDirectory.TileWidth : fileDirectory.ImageWidth;
|
|
111
|
-
const tileHeight = isTiled ? fileDirectory.TileLength : (
|
|
112
|
-
fileDirectory.RowsPerStrip || fileDirectory.ImageLength
|
|
113
|
-
);
|
|
114
|
-
return applyPredictor(
|
|
115
|
-
decoded, predictor, tileWidth, tileHeight, fileDirectory.BitsPerSample,
|
|
116
|
-
fileDirectory.PlanarConfiguration,
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
return decoded;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/***/ }),
|
|
125
|
-
|
|
126
|
-
/***/ "ee5b":
|
|
127
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
128
|
-
|
|
129
|
-
"use strict";
|
|
130
|
-
__webpack_require__.r(__webpack_exports__);
|
|
131
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return WebImageDecoder; });
|
|
132
|
-
/* harmony import */ var _basedecoder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b3f7");
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* class WebImageDecoder
|
|
137
|
-
*
|
|
138
|
-
* This decoder uses the browsers image decoding facilities to read image
|
|
139
|
-
* formats like WebP when supported.
|
|
140
|
-
*/
|
|
141
|
-
class WebImageDecoder extends _basedecoder_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"] {
|
|
142
|
-
constructor() {
|
|
143
|
-
super();
|
|
144
|
-
if (typeof createImageBitmap === 'undefined') {
|
|
145
|
-
throw new Error('Cannot decode WebImage as `createImageBitmap` is not available');
|
|
146
|
-
} else if (typeof document === 'undefined' && typeof OffscreenCanvas === 'undefined') {
|
|
147
|
-
throw new Error('Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available');
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
async decode(fileDirectory, buffer) {
|
|
152
|
-
const blob = new Blob([buffer]);
|
|
153
|
-
const imageBitmap = await createImageBitmap(blob);
|
|
154
|
-
|
|
155
|
-
let canvas;
|
|
156
|
-
if (typeof document !== 'undefined') {
|
|
157
|
-
canvas = document.createElement('canvas');
|
|
158
|
-
canvas.width = imageBitmap.width;
|
|
159
|
-
canvas.height = imageBitmap.height;
|
|
160
|
-
} else {
|
|
161
|
-
canvas = new OffscreenCanvas(imageBitmap.width, imageBitmap.height);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
const ctx = canvas.getContext('2d');
|
|
165
|
-
ctx.drawImage(imageBitmap, 0, 0);
|
|
166
|
-
|
|
167
|
-
// TODO: check how many samples per pixel we have, and return RGB/RGBA accordingly
|
|
168
|
-
// it seems like GDAL always encodes via RGBA which does not require a translation
|
|
169
|
-
|
|
170
|
-
return ctx.getImageData(0, 0, imageBitmap.width, imageBitmap.height).data.buffer;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
/***/ })
|
|
176
|
-
|
|
177
|
-
}]);
|