blue-chestnut-solar-expert 0.0.68 → 0.0.70
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/dist/stencil-library/{decoder-DNOvLSaS.js → decoder-CuK4bYyT.js} +3 -3
- package/dist/stencil-library/{decoder-DNOvLSaS.js.map → decoder-CuK4bYyT.js.map} +1 -1
- package/dist/stencil-library/decoder-DO85tL09.js +39 -0
- package/dist/stencil-library/decoder-DO85tL09.js.map +1 -0
- package/dist/stencil-library/{deflate-0Vdd6-55.js → deflate-B_19Wwe5.js} +3 -3
- package/dist/stencil-library/{deflate-0Vdd6-55.js.map → deflate-B_19Wwe5.js.map} +1 -1
- package/dist/stencil-library/deflate-BnZRAamW.js +21 -0
- package/dist/stencil-library/deflate-BnZRAamW.js.map +1 -0
- package/dist/stencil-library/{jpeg-Dd5nnHR5.js → jpeg-BYwBjmYM.js} +3 -3
- package/dist/stencil-library/{jpeg-Dd5nnHR5.js.map → jpeg-BYwBjmYM.js.map} +1 -1
- package/dist/stencil-library/jpeg-Carqigwf.js +910 -0
- package/dist/stencil-library/jpeg-Carqigwf.js.map +1 -0
- package/dist/stencil-library/{lerc-7W4E8EBs.js → lerc-BrKFrpOl.js} +3 -3
- package/dist/stencil-library/{lerc-7W4E8EBs.js.map → lerc-BrKFrpOl.js.map} +1 -1
- package/dist/stencil-library/lerc-C23gVCZY.js +2469 -0
- package/dist/stencil-library/lerc-C23gVCZY.js.map +1 -0
- package/dist/stencil-library/loading-widget.entry.js +1 -1
- package/dist/stencil-library/{lzw--P4c0ZHH.js → lzw-Cv4Jzqw8.js} +3 -3
- package/dist/stencil-library/{lzw--P4c0ZHH.js.map → lzw-Cv4Jzqw8.js.map} +1 -1
- package/dist/stencil-library/lzw-CyjveJk_.js +144 -0
- package/dist/stencil-library/lzw-CyjveJk_.js.map +1 -0
- package/dist/stencil-library/{map-draw-Cx9WZoKH.js → map-draw-I6HehGjN.js} +20 -20
- package/dist/stencil-library/map-draw-I6HehGjN.js.map +1 -0
- package/dist/stencil-library/map-draw-s4wyOrpW.js +25568 -0
- package/dist/stencil-library/{map-draw-Cx9WZoKH.js.map → map-draw-s4wyOrpW.js.map} +1 -1
- package/dist/stencil-library/map-draw.entry.js +1 -1
- package/dist/stencil-library/map-selector.entry.js +3 -3
- package/dist/stencil-library/{packbits-X3R_utTs.js → packbits-DYI_WQMn.js} +3 -3
- package/dist/stencil-library/{packbits-X3R_utTs.js.map → packbits-DYI_WQMn.js.map} +1 -1
- package/dist/stencil-library/packbits-DZ08I0fK.js +39 -0
- package/dist/stencil-library/packbits-DZ08I0fK.js.map +1 -0
- package/dist/stencil-library/polygon-buttons.entry.js +1 -1
- package/dist/stencil-library/polygon-information.entry.js +2 -2
- package/dist/stencil-library/{raw-BxukYehy.js → raw-DmgLt5Xw.js} +3 -3
- package/dist/stencil-library/{raw-BxukYehy.js.map → raw-DmgLt5Xw.js.map} +1 -1
- package/dist/stencil-library/raw-DxHWSwjD.js +20 -0
- package/dist/stencil-library/raw-DxHWSwjD.js.map +1 -0
- package/dist/stencil-library/settings-modal.entry.js +8 -8
- package/dist/stencil-library/solar-expert.entry.esm.js.map +1 -1
- package/dist/stencil-library/solar-expert.entry.js +3 -2
- package/dist/stencil-library/solar-expert.entry.js.map +1 -1
- package/dist/stencil-library/solar-system-form.entry.esm.js.map +1 -1
- package/dist/stencil-library/solar-system-form.entry.js +38 -36
- package/dist/stencil-library/solar-system-form.entry.js.map +1 -1
- package/dist/stencil-library/stencil-library.esm.js +1 -1
- package/dist/stencil-library/tool-box.entry.js +3 -3
- package/dist/stencil-library/tutorial-component.entry.js +3 -3
- package/dist/stencil-library/{webimage-CBrfoxHM.js → webimage-DjTbF9dC.js} +3 -3
- package/dist/stencil-library/{webimage-CBrfoxHM.js.map → webimage-DjTbF9dC.js.map} +1 -1
- package/dist/stencil-library/webimage-DpQLhKY4.js +53 -0
- package/dist/stencil-library/webimage-DpQLhKY4.js.map +1 -0
- package/dist/types/components/map-draw/map-draw.d.ts +1 -0
- package/dist/types/components/solar-expert/solar-expert.d.ts +1 -0
- package/dist/types/components/solar-system-form/solar-system-form.d.ts +1 -0
- package/dist/types/components.d.ts +6 -0
- package/dist/types/utils/api.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
|
|
2
|
+
if (typeof global === "undefined") { var global = globalThis || window || self; }
|
|
3
|
+
import { a as BaseDecoder } from './map-draw-I6HehGjN.js';
|
|
4
|
+
import './index-ICfDNUMe.js';
|
|
5
|
+
import './constants-hboFofU4.js';
|
|
6
|
+
import './tools-BNYKV5H5.js';
|
|
7
|
+
import './config-CWfV1nKn.js';
|
|
8
|
+
import './utils-BCUZxI9u.js';
|
|
9
|
+
import './store-CcqrFuBK.js';
|
|
10
|
+
|
|
11
|
+
const MIN_BITS = 9;
|
|
12
|
+
const CLEAR_CODE = 256; // clear code
|
|
13
|
+
const EOI_CODE = 257; // end of information
|
|
14
|
+
const MAX_BYTELENGTH = 12;
|
|
15
|
+
|
|
16
|
+
function getByte(array, position, length) {
|
|
17
|
+
const d = position % 8;
|
|
18
|
+
const a = Math.floor(position / 8);
|
|
19
|
+
const de = 8 - d;
|
|
20
|
+
const ef = (position + length) - ((a + 1) * 8);
|
|
21
|
+
let fg = (8 * (a + 2)) - (position + length);
|
|
22
|
+
const dg = ((a + 2) * 8) - position;
|
|
23
|
+
fg = Math.max(0, fg);
|
|
24
|
+
if (a >= array.length) {
|
|
25
|
+
console.warn('ran off the end of the buffer before finding EOI_CODE (end on input code)');
|
|
26
|
+
return EOI_CODE;
|
|
27
|
+
}
|
|
28
|
+
let chunk1 = array[a] & ((2 ** (8 - d)) - 1);
|
|
29
|
+
chunk1 <<= (length - de);
|
|
30
|
+
let chunks = chunk1;
|
|
31
|
+
if (a + 1 < array.length) {
|
|
32
|
+
let chunk2 = array[a + 1] >>> fg;
|
|
33
|
+
chunk2 <<= Math.max(0, (length - dg));
|
|
34
|
+
chunks += chunk2;
|
|
35
|
+
}
|
|
36
|
+
if (ef > 8 && a + 2 < array.length) {
|
|
37
|
+
const hi = ((a + 3) * 8) - (position + length);
|
|
38
|
+
const chunk3 = array[a + 2] >>> hi;
|
|
39
|
+
chunks += chunk3;
|
|
40
|
+
}
|
|
41
|
+
return chunks;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function appendReversed(dest, source) {
|
|
45
|
+
for (let i = source.length - 1; i >= 0; i--) {
|
|
46
|
+
dest.push(source[i]);
|
|
47
|
+
}
|
|
48
|
+
return dest;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function decompress(input) {
|
|
52
|
+
const dictionaryIndex = new Uint16Array(4093);
|
|
53
|
+
const dictionaryChar = new Uint8Array(4093);
|
|
54
|
+
for (let i = 0; i <= 257; i++) {
|
|
55
|
+
dictionaryIndex[i] = 4096;
|
|
56
|
+
dictionaryChar[i] = i;
|
|
57
|
+
}
|
|
58
|
+
let dictionaryLength = 258;
|
|
59
|
+
let byteLength = MIN_BITS;
|
|
60
|
+
let position = 0;
|
|
61
|
+
|
|
62
|
+
function initDictionary() {
|
|
63
|
+
dictionaryLength = 258;
|
|
64
|
+
byteLength = MIN_BITS;
|
|
65
|
+
}
|
|
66
|
+
function getNext(array) {
|
|
67
|
+
const byte = getByte(array, position, byteLength);
|
|
68
|
+
position += byteLength;
|
|
69
|
+
return byte;
|
|
70
|
+
}
|
|
71
|
+
function addToDictionary(i, c) {
|
|
72
|
+
dictionaryChar[dictionaryLength] = c;
|
|
73
|
+
dictionaryIndex[dictionaryLength] = i;
|
|
74
|
+
dictionaryLength++;
|
|
75
|
+
return dictionaryLength - 1;
|
|
76
|
+
}
|
|
77
|
+
function getDictionaryReversed(n) {
|
|
78
|
+
const rev = [];
|
|
79
|
+
for (let i = n; i !== 4096; i = dictionaryIndex[i]) {
|
|
80
|
+
rev.push(dictionaryChar[i]);
|
|
81
|
+
}
|
|
82
|
+
return rev;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const result = [];
|
|
86
|
+
initDictionary();
|
|
87
|
+
const array = new Uint8Array(input);
|
|
88
|
+
let code = getNext(array);
|
|
89
|
+
let oldCode;
|
|
90
|
+
while (code !== EOI_CODE) {
|
|
91
|
+
if (code === CLEAR_CODE) {
|
|
92
|
+
initDictionary();
|
|
93
|
+
code = getNext(array);
|
|
94
|
+
while (code === CLEAR_CODE) {
|
|
95
|
+
code = getNext(array);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (code === EOI_CODE) {
|
|
99
|
+
break;
|
|
100
|
+
} else if (code > CLEAR_CODE) {
|
|
101
|
+
throw new Error(`corrupted code at scanline ${code}`);
|
|
102
|
+
} else {
|
|
103
|
+
const val = getDictionaryReversed(code);
|
|
104
|
+
appendReversed(result, val);
|
|
105
|
+
oldCode = code;
|
|
106
|
+
}
|
|
107
|
+
} else if (code < dictionaryLength) {
|
|
108
|
+
const val = getDictionaryReversed(code);
|
|
109
|
+
appendReversed(result, val);
|
|
110
|
+
addToDictionary(oldCode, val[val.length - 1]);
|
|
111
|
+
oldCode = code;
|
|
112
|
+
} else {
|
|
113
|
+
const oldVal = getDictionaryReversed(oldCode);
|
|
114
|
+
if (!oldVal) {
|
|
115
|
+
throw new Error(`Bogus entry. Not in dictionary, ${oldCode} / ${dictionaryLength}, position: ${position}`);
|
|
116
|
+
}
|
|
117
|
+
appendReversed(result, oldVal);
|
|
118
|
+
result.push(oldVal[oldVal.length - 1]);
|
|
119
|
+
addToDictionary(oldCode, oldVal[oldVal.length - 1]);
|
|
120
|
+
oldCode = code;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (dictionaryLength + 1 >= (2 ** byteLength)) {
|
|
124
|
+
if (byteLength === MAX_BYTELENGTH) {
|
|
125
|
+
oldCode = undefined;
|
|
126
|
+
} else {
|
|
127
|
+
byteLength++;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
code = getNext(array);
|
|
131
|
+
}
|
|
132
|
+
return new Uint8Array(result);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
class LZWDecoder extends BaseDecoder {
|
|
136
|
+
decodeBlock(buffer) {
|
|
137
|
+
return decompress(buffer, false).buffer;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export { LZWDecoder as default };
|
|
142
|
+
//# sourceMappingURL=lzw-CyjveJk_.js.map
|
|
143
|
+
|
|
144
|
+
//# sourceMappingURL=lzw-CyjveJk_.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lzw-CyjveJk_.js","sources":["../../node_modules/geotiff/dist-module/compression/lzw.js"],"sourcesContent":["import BaseDecoder from './basedecoder.js';\n\nconst MIN_BITS = 9;\nconst CLEAR_CODE = 256; // clear code\nconst EOI_CODE = 257; // end of information\nconst MAX_BYTELENGTH = 12;\n\nfunction getByte(array, position, length) {\n const d = position % 8;\n const a = Math.floor(position / 8);\n const de = 8 - d;\n const ef = (position + length) - ((a + 1) * 8);\n let fg = (8 * (a + 2)) - (position + length);\n const dg = ((a + 2) * 8) - position;\n fg = Math.max(0, fg);\n if (a >= array.length) {\n console.warn('ran off the end of the buffer before finding EOI_CODE (end on input code)');\n return EOI_CODE;\n }\n let chunk1 = array[a] & ((2 ** (8 - d)) - 1);\n chunk1 <<= (length - de);\n let chunks = chunk1;\n if (a + 1 < array.length) {\n let chunk2 = array[a + 1] >>> fg;\n chunk2 <<= Math.max(0, (length - dg));\n chunks += chunk2;\n }\n if (ef > 8 && a + 2 < array.length) {\n const hi = ((a + 3) * 8) - (position + length);\n const chunk3 = array[a + 2] >>> hi;\n chunks += chunk3;\n }\n return chunks;\n}\n\nfunction appendReversed(dest, source) {\n for (let i = source.length - 1; i >= 0; i--) {\n dest.push(source[i]);\n }\n return dest;\n}\n\nfunction decompress(input) {\n const dictionaryIndex = new Uint16Array(4093);\n const dictionaryChar = new Uint8Array(4093);\n for (let i = 0; i <= 257; i++) {\n dictionaryIndex[i] = 4096;\n dictionaryChar[i] = i;\n }\n let dictionaryLength = 258;\n let byteLength = MIN_BITS;\n let position = 0;\n\n function initDictionary() {\n dictionaryLength = 258;\n byteLength = MIN_BITS;\n }\n function getNext(array) {\n const byte = getByte(array, position, byteLength);\n position += byteLength;\n return byte;\n }\n function addToDictionary(i, c) {\n dictionaryChar[dictionaryLength] = c;\n dictionaryIndex[dictionaryLength] = i;\n dictionaryLength++;\n return dictionaryLength - 1;\n }\n function getDictionaryReversed(n) {\n const rev = [];\n for (let i = n; i !== 4096; i = dictionaryIndex[i]) {\n rev.push(dictionaryChar[i]);\n }\n return rev;\n }\n\n const result = [];\n initDictionary();\n const array = new Uint8Array(input);\n let code = getNext(array);\n let oldCode;\n while (code !== EOI_CODE) {\n if (code === CLEAR_CODE) {\n initDictionary();\n code = getNext(array);\n while (code === CLEAR_CODE) {\n code = getNext(array);\n }\n\n if (code === EOI_CODE) {\n break;\n } else if (code > CLEAR_CODE) {\n throw new Error(`corrupted code at scanline ${code}`);\n } else {\n const val = getDictionaryReversed(code);\n appendReversed(result, val);\n oldCode = code;\n }\n } else if (code < dictionaryLength) {\n const val = getDictionaryReversed(code);\n appendReversed(result, val);\n addToDictionary(oldCode, val[val.length - 1]);\n oldCode = code;\n } else {\n const oldVal = getDictionaryReversed(oldCode);\n if (!oldVal) {\n throw new Error(`Bogus entry. Not in dictionary, ${oldCode} / ${dictionaryLength}, position: ${position}`);\n }\n appendReversed(result, oldVal);\n result.push(oldVal[oldVal.length - 1]);\n addToDictionary(oldCode, oldVal[oldVal.length - 1]);\n oldCode = code;\n }\n\n if (dictionaryLength + 1 >= (2 ** byteLength)) {\n if (byteLength === MAX_BYTELENGTH) {\n oldCode = undefined;\n } else {\n byteLength++;\n }\n }\n code = getNext(array);\n }\n return new Uint8Array(result);\n}\n\nexport default class LZWDecoder extends BaseDecoder {\n decodeBlock(buffer) {\n return decompress(buffer, false).buffer;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;AAEA,MAAM,QAAQ,GAAG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AQ,OAAO,GAAG,SAAS;AAC3B,OAAO,MAAM;AACb,QAAQ,UAAU,EAAE;AACpB;AACA;AACA,IAAI,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC;AACzB;AACA,EAAE,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC;AAC/B;;AAEe,MAAM,UAAU,SAAS,WAAW,CAAC;AACpD,EAAE,WAAW,CAAC,MAAM,EAAE;AACtB,IAAI,OAAO,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,MAAM;AAC3C;AACA;;;;","x_google_ignoreList":[0]}
|
|
@@ -2627,22 +2627,22 @@ async function getDecoder(fileDirectory) {
|
|
|
2627
2627
|
}
|
|
2628
2628
|
|
|
2629
2629
|
// Add default decoders to registry (end-user may override with other implementations)
|
|
2630
|
-
addDecoder([undefined, 1], () => import('./raw-
|
|
2631
|
-
addDecoder(5, () => import('./lzw
|
|
2630
|
+
addDecoder([undefined, 1], () => import('./raw-DxHWSwjD.js').then((m) => m.default));
|
|
2631
|
+
addDecoder(5, () => import('./lzw-CyjveJk_.js').then((m) => m.default));
|
|
2632
2632
|
addDecoder(6, () => {
|
|
2633
2633
|
throw new Error('old style JPEG compression is not supported.');
|
|
2634
2634
|
});
|
|
2635
|
-
addDecoder(7, () => import('./jpeg-
|
|
2636
|
-
addDecoder([8, 32946], () => import('./deflate-
|
|
2637
|
-
addDecoder(32773, () => import('./packbits-
|
|
2638
|
-
addDecoder(34887, () => import('./lerc-
|
|
2635
|
+
addDecoder(7, () => import('./jpeg-BYwBjmYM.js').then((m) => m.default));
|
|
2636
|
+
addDecoder([8, 32946], () => import('./deflate-B_19Wwe5.js').then((m) => m.default));
|
|
2637
|
+
addDecoder(32773, () => import('./packbits-DYI_WQMn.js').then((m) => m.default));
|
|
2638
|
+
addDecoder(34887, () => import('./lerc-C23gVCZY.js')
|
|
2639
2639
|
.then(async (m) => {
|
|
2640
2640
|
await m.zstd.init();
|
|
2641
2641
|
return m;
|
|
2642
2642
|
})
|
|
2643
2643
|
.then((m) => m.default),
|
|
2644
2644
|
);
|
|
2645
|
-
addDecoder(50001, () => import('./webimage-
|
|
2645
|
+
addDecoder(50001, () => import('./webimage-DpQLhKY4.js').then((m) => m.default));
|
|
2646
2646
|
|
|
2647
2647
|
/**
|
|
2648
2648
|
* @module resample
|
|
@@ -4085,7 +4085,7 @@ class Pool {
|
|
|
4085
4085
|
this.messageId = 0;
|
|
4086
4086
|
if (size) {
|
|
4087
4087
|
this._awaitingDecoder = createWorker ? Promise.resolve(createWorker) : new Promise((resolve) => {
|
|
4088
|
-
import('./decoder-
|
|
4088
|
+
import('./decoder-CuK4bYyT.js').then((module) => {
|
|
4089
4089
|
resolve(module.create);
|
|
4090
4090
|
});
|
|
4091
4091
|
});
|
|
@@ -24313,7 +24313,6 @@ function requireCanvasUpdate () {
|
|
|
24313
24313
|
constructor(canvasConfig, managerConfig) {
|
|
24314
24314
|
this.canvasConfig = canvasConfig;
|
|
24315
24315
|
this.managerConfig = Object.assign(Object.assign({}, DEFAULT_MANAGER_CONFIG), managerConfig);
|
|
24316
|
-
console.log("managerConfig", this.managerConfig);
|
|
24317
24316
|
this.state = {
|
|
24318
24317
|
polygons: [],
|
|
24319
24318
|
currentPolygon: null,
|
|
@@ -24890,6 +24889,7 @@ const MapDraw = class {
|
|
|
24890
24889
|
config = DEFAULT_SOLAR_EXPERT_CONFIG;
|
|
24891
24890
|
solarPanel = DEFAULT_SOLAR_PANEL_TYPE;
|
|
24892
24891
|
enableSettings = false;
|
|
24892
|
+
unfold = false;
|
|
24893
24893
|
showInstructions = true;
|
|
24894
24894
|
showSettings = false;
|
|
24895
24895
|
showTutorial = false;
|
|
@@ -25535,24 +25535,24 @@ const MapDraw = class {
|
|
|
25535
25535
|
}
|
|
25536
25536
|
render() {
|
|
25537
25537
|
const t = getLanguageStrings(state.settings.language);
|
|
25538
|
-
return (h("div", { key: '
|
|
25539
|
-
.description, videoSource: getAssetPath("./assets/tutorial2.mp4") })), this.showAdditionalToolsTutorial && (h("tutorial-component", { key: '
|
|
25538
|
+
return (h("div", { key: 'b87b112dd1e637dc02ad59224e45f3d28bd164dc', class: "flex flex-col justify-center items-center w-full h-full gap-4", id: "map-draw" }, this.showTutorial && (h("tutorial-component", { key: 'f8209a4c24abe1675d1a221ad80708d45b87321d', onClose: this.handleTutorialClose, title: t.mapDraw.tutorial.title, description: t.mapDraw.tutorial.description, videoSource: getAssetPath("./assets/tutorial1.mp4") })), this.showMarkEdgeTutorial && (h("tutorial-component", { key: '76aabd345ba9af7ff97afcce6f27013fc090df32', onClose: this.handleMarkEdgeTutorialClose, title: t.mapDraw.tutorial.markEdge.title, description: t.mapDraw.tutorial.markEdge
|
|
25539
|
+
.description, videoSource: getAssetPath("./assets/tutorial2.mp4") })), this.showAdditionalToolsTutorial && (h("tutorial-component", { key: 'd50506374485a93af942402751dbad31e2a0bd65', onClose: this
|
|
25540
25540
|
.handleAdditionalToolsTutorialClose, title: t.mapDraw.tutorial.additionalTools.title, description: t.mapDraw.tutorial.additionalTools
|
|
25541
|
-
.description, videoSource: getAssetPath("./assets/tutorial3.mp4") })), this.showObstacleTutorial && (h("tutorial-component", { key: '
|
|
25542
|
-
this.loadingState === "loading") && (h("div", { key: '
|
|
25543
|
-
this.loadingState === "error") && (h("div", { key: '
|
|
25541
|
+
.description, videoSource: getAssetPath("./assets/tutorial3.mp4") })), this.showObstacleTutorial && (h("tutorial-component", { key: '2b010e867db40bbcf8858b70c1b6c15a97e578f0', onClose: this.handleObstacleTutorialClose, onSkip: this.handleObstacleTutorialSkip, showSkipButton: true, title: t.mapDraw.tutorial.obstacle.title, description: t.mapDraw.tutorial.obstacle.description, videoSource: getAssetPath("./assets/tutorial4.mp4") })), (state.latitude && state.longitude &&
|
|
25542
|
+
this.loadingState === "loading") && (h("div", { key: '2301cb6081c2abd90976146d531fb7a33a0b18dd', class: "flex items-center justify-center w-full bg-opacity-75 z-20 pt-7 rounded-4xl" }, h("div", { key: '8d5fa75fa872f604ca58788e359f3fd35a2dbf31', class: "animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-secondary" }))), (state.latitude && state.longitude &&
|
|
25543
|
+
this.loadingState === "error") && (h("div", { key: '759ba574927797a145d3cee44900dc6a2bfa4abf', class: "flex items-center justify-center w-full bg-opacity-75 z-20 pt-7 rounded-4xl" }, h("div", { key: '27b0117e8504a4e8d107bc334a286089b158a279', class: "text-red-500 text-center text-lg font-semibold" }, t.mapDraw.imageLoadError))), h("div", { key: '1c7c21892c7248ef286702650beb72de637bc90f', class: "flex items-start justify-center w-full bg-primary rounded-4xl" }, h("div", { key: '9ff8059984784dc272596f5db9f2859118ebd909', class: "relative flex items-center justify-center w-full rounded-4xl bg-secondary", style: {
|
|
25544
25544
|
aspectRatio: this.rgbTiff
|
|
25545
25545
|
? `${this.rgbTiff.width}/${this.rgbTiff.height}`
|
|
25546
25546
|
: "",
|
|
25547
|
-
} }, h("canvas", { key: '
|
|
25547
|
+
} }, !this.rgbTiff && (h("div", { key: '11d4c5fe2a9a8350e45a7db5945040655cd6cfe1', class: "text-white p-6" }, "Satelitebild wird geladen sobald Sie eine Addresse ausgew\u00E4hlt haben.")), h("canvas", { key: '78c2df675f3e389c6ae716b909d41f6d490eb38c', ref: (el) => this.canvasElement = el, class: "absolute top-0 left-0 w-full h-full rounded-4xl", id: "map-draw-canvas", style: {
|
|
25548
25548
|
cursor: this.currentTool.cursor,
|
|
25549
|
-
} }), h("canvas", { key: '
|
|
25549
|
+
} }), h("canvas", { key: '45c705d255a67c761ab26d670a2d96e2b25ba1a0', ref: (el) => this.polygonCanvas = el, class: "absolute top-0 left-0 w-full h-full rounded-4xl", style: {
|
|
25550
25550
|
cursor: this.currentTool.cursor,
|
|
25551
|
-
} }))), this.rgbTiff && (h("div", { key: '
|
|
25551
|
+
} }))), (this.rgbTiff || this.unfold) && (h("div", { key: '80fd5a04d221b1d06086786d068d66b702efd6b3', class: "w-full" }, h("div", { key: '8bb0dc6d37e2bcc8207cbf61c710942487c64e5d', class: "w-full pb-4" }, h("tool-box", { key: '4d4d502b991feb3e9e08f67cdf6ad3fcce902126', currentTool: this.currentTool, onToolSelect: (tool) => this.handleToolSelect(tool), undoCallback: () => this.undo() })), h("div", { key: '1f49b517fe3a298913e2b77f77fc27b79c989e0b', class: "w-full" }, h("polygon-information", { key: '679596c6c9fdd83dba27335efbf063df8855975a', currentPolygon: this.currentPolygon, numberOfPanels: this.currentPolygon
|
|
25552
25552
|
? this
|
|
25553
25553
|
.solarSystem[this.currentPolygon.id]
|
|
25554
25554
|
?.numberOfPanels
|
|
25555
|
-
: undefined, handleAzimuthChange: (event) => this.handleAzimuthChange(event), handlePitchChange: (event) => this.handlePitchChange(event), calculateSolarPanels: () => this.calculateSolarPanels(true), markAsFlatRoof: () => this.markAsFlatRoof(), currentTool: this.currentTool.name })), h("div", { key: '
|
|
25555
|
+
: undefined, handleAzimuthChange: (event) => this.handleAzimuthChange(event), handlePitchChange: (event) => this.handlePitchChange(event), calculateSolarPanels: () => this.calculateSolarPanels(true), markAsFlatRoof: () => this.markAsFlatRoof(), currentTool: this.currentTool.name })), h("div", { key: '47f92190e619143d7e49b64b45daced04b5e6903', class: "w-full" }, h("solar-system-form", { key: 'def53cc172210f8035b90bde9bd11a2743871f50', systemConfigs: this.solarSystem, polygons: this.canvasManager?.getPolygons(), roofCanvas: this.canvasElement, polygonCanvas: this.polygonCanvas, pixelInMeters: this.pixelInMeters })))), this.showSettings && (h("settings-modal", { key: '34c6a0b93bd06bf00a3a0adf9025bd378cea401e', settings: state.settings, onClose: this.handleSettingsClose, onSave: this.handleSettingsSave })), this.showToast && (h("toast-notification", { key: '2570cefe18772242d763ec955c55b1e8dc0b754c', message: this.toastMessage, type: this.toastType, duration: 3000 }))));
|
|
25556
25556
|
}
|
|
25557
25557
|
static get watchers() { return {
|
|
25558
25558
|
"rgbTiff": ["setupCanvasManager", "drawMap"],
|
|
@@ -25562,6 +25562,6 @@ const MapDraw = class {
|
|
|
25562
25562
|
MapDraw.style = outputCss;
|
|
25563
25563
|
|
|
25564
25564
|
export { Buffer as B, LercParameters as L, MapDraw as M, BaseDecoder as a, LercAddCompression as b };
|
|
25565
|
-
//# sourceMappingURL=map-draw-
|
|
25565
|
+
//# sourceMappingURL=map-draw-I6HehGjN.js.map
|
|
25566
25566
|
|
|
25567
|
-
//# sourceMappingURL=map-draw-
|
|
25567
|
+
//# sourceMappingURL=map-draw-I6HehGjN.js.map
|