@deck.gl/widgets 9.0.0-beta.1 → 9.0.0-beta.10
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/compass-widget.d.ts +46 -0
- package/dist/compass-widget.d.ts.map +1 -0
- package/dist/compass-widget.js +75 -0
- package/dist/components.d.ts +4 -0
- package/dist/components.d.ts.map +1 -0
- package/dist/components.js +13 -0
- package/dist/dist.dev.js +301 -92
- package/{typed → dist}/fullscreen-widget.d.ts +6 -0
- package/dist/fullscreen-widget.d.ts.map +1 -0
- package/dist/fullscreen-widget.js +108 -0
- package/dist/index.cjs +343 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +5 -0
- package/{typed → dist}/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/{es5/stylesheet.css → stylesheet.css} +81 -11
- package/{typed → dist}/themes.d.ts +8 -0
- package/dist/themes.d.ts.map +1 -0
- package/dist/themes.js +44 -0
- package/dist/zoom-widget.d.ts +55 -0
- package/dist/zoom-widget.d.ts.map +1 -0
- package/dist/zoom-widget.js +68 -0
- package/dist.min.js +1 -2
- package/package.json +15 -8
- package/src/compass-widget.tsx +133 -0
- package/src/components.tsx +21 -2
- package/src/fullscreen-widget.tsx +6 -0
- package/src/index.ts +2 -0
- package/src/stylesheet.css +81 -11
- package/src/themes.ts +12 -4
- package/src/zoom-widget.tsx +128 -0
- package/dist/es5/components.js +0 -25
- package/dist/es5/components.js.map +0 -1
- package/dist/es5/fullscreen-widget.js +0 -272
- package/dist/es5/fullscreen-widget.js.map +0 -1
- package/dist/es5/index.js +0 -31
- package/dist/es5/index.js.map +0 -1
- package/dist/es5/themes.js +0 -47
- package/dist/es5/themes.js.map +0 -1
- package/dist/esm/components.js +0 -18
- package/dist/esm/components.js.map +0 -1
- package/dist/esm/fullscreen-widget.js +0 -145
- package/dist/esm/fullscreen-widget.js.map +0 -1
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/stylesheet.css +0 -79
- package/dist/esm/themes.js +0 -37
- package/dist/esm/themes.js.map +0 -1
- package/typed/components.d.ts +0 -3
- package/typed/components.d.ts.map +0 -1
- package/typed/fullscreen-widget.d.ts.map +0 -1
- package/typed/index.d.ts +0 -3
- package/typed/themes.d.ts.map +0 -1
package/dist/dist.dev.js
CHANGED
|
@@ -44,17 +44,19 @@ var __exports__ = (() => {
|
|
|
44
44
|
// bundle.ts
|
|
45
45
|
var bundle_exports = {};
|
|
46
46
|
__export(bundle_exports, {
|
|
47
|
+
CompassWidget: () => CompassWidget,
|
|
47
48
|
DarkGlassTheme: () => DarkGlassTheme,
|
|
48
49
|
DarkTheme: () => DarkTheme,
|
|
49
50
|
FullscreenWidget: () => FullscreenWidget,
|
|
50
51
|
LightGlassTheme: () => LightGlassTheme,
|
|
51
|
-
LightTheme: () => LightTheme
|
|
52
|
+
LightTheme: () => LightTheme,
|
|
53
|
+
ZoomWidget: () => ZoomWidget
|
|
52
54
|
});
|
|
53
55
|
|
|
54
56
|
// ../core/bundle/peer-dependency.ts
|
|
55
57
|
var peer_dependency_exports = {};
|
|
56
|
-
var import_core = __toESM(require_core());
|
|
57
|
-
__reExport(peer_dependency_exports, __toESM(require_core()));
|
|
58
|
+
var import_core = __toESM(require_core(), 1);
|
|
59
|
+
__reExport(peer_dependency_exports, __toESM(require_core(), 1));
|
|
58
60
|
if (!import_core.Layer) {
|
|
59
61
|
throw new Error("@deck.gl/core is not found");
|
|
60
62
|
}
|
|
@@ -63,7 +65,7 @@ var __exports__ = (() => {
|
|
|
63
65
|
__reExport(bundle_exports, peer_dependency_exports);
|
|
64
66
|
|
|
65
67
|
// src/fullscreen-widget.tsx
|
|
66
|
-
var import_core2 = __toESM(require_core());
|
|
68
|
+
var import_core2 = __toESM(require_core(), 1);
|
|
67
69
|
|
|
68
70
|
// ../../node_modules/preact/dist/preact.module.js
|
|
69
71
|
var n;
|
|
@@ -89,16 +91,16 @@ var __exports__ = (() => {
|
|
|
89
91
|
l2 && l2.removeChild(n2);
|
|
90
92
|
}
|
|
91
93
|
function y(l2, u2, t2) {
|
|
92
|
-
var i2,
|
|
94
|
+
var i2, o3, r2, f2 = {};
|
|
93
95
|
for (r2 in u2)
|
|
94
|
-
"key" == r2 ? i2 = u2[r2] : "ref" == r2 ?
|
|
96
|
+
"key" == r2 ? i2 = u2[r2] : "ref" == r2 ? o3 = u2[r2] : f2[r2] = u2[r2];
|
|
95
97
|
if (arguments.length > 2 && (f2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps)
|
|
96
98
|
for (r2 in l2.defaultProps)
|
|
97
99
|
void 0 === f2[r2] && (f2[r2] = l2.defaultProps[r2]);
|
|
98
|
-
return d(l2, f2, i2,
|
|
100
|
+
return d(l2, f2, i2, o3, null);
|
|
99
101
|
}
|
|
100
|
-
function d(n2, t2, i2,
|
|
101
|
-
var f2 = { type: n2, props: t2, key: i2, ref:
|
|
102
|
+
function d(n2, t2, i2, o3, r2) {
|
|
103
|
+
var f2 = { type: n2, props: t2, key: i2, ref: o3, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: null == r2 ? ++u : r2 };
|
|
102
104
|
return null == r2 && null != l.vnode && l.vnode(f2), f2;
|
|
103
105
|
}
|
|
104
106
|
function k(n2) {
|
|
@@ -130,39 +132,39 @@ var __exports__ = (() => {
|
|
|
130
132
|
(!n2.__d && (n2.__d = true) && i.push(n2) && !x.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || r)(x);
|
|
131
133
|
}
|
|
132
134
|
function x() {
|
|
133
|
-
var n2, l2, u2, t2,
|
|
135
|
+
var n2, l2, u2, t2, o3, r2, e2, c2, s2;
|
|
134
136
|
for (i.sort(f); n2 = i.shift(); )
|
|
135
|
-
n2.__d && (l2 = i.length, t2 = void 0,
|
|
137
|
+
n2.__d && (l2 = i.length, t2 = void 0, o3 = void 0, r2 = void 0, c2 = (e2 = (u2 = n2).__v).__e, (s2 = u2.__P) && (t2 = [], o3 = [], (r2 = v({}, e2)).__v = e2.__v + 1, L(s2, e2, r2, u2.__n, void 0 !== s2.ownerSVGElement, null != e2.__h ? [c2] : null, t2, null == c2 ? g(e2) : c2, e2.__h, o3), M(t2, e2, o3), e2.__e != c2 && m(e2)), i.length > l2 && i.sort(f));
|
|
136
138
|
x.__r = 0;
|
|
137
139
|
}
|
|
138
|
-
function P(n2, l2, u2, t2, i2,
|
|
139
|
-
var p2, y2,
|
|
140
|
+
function P(n2, l2, u2, t2, i2, o3, r2, f2, e2, a2, v2) {
|
|
141
|
+
var p2, y2, _2, b2, m2, w2, x2, P2, S, H2 = 0, I2 = t2 && t2.__k || s, T2 = I2.length, j2 = T2, z2 = l2.length;
|
|
140
142
|
for (u2.__k = [], p2 = 0; p2 < z2; p2++)
|
|
141
|
-
null != (b2 = u2.__k[p2] = null == (b2 = l2[p2]) || "boolean" == typeof b2 || "function" == typeof b2 ? null : "string" == typeof b2 || "number" == typeof b2 || "bigint" == typeof b2 ? d(null, b2, null, null, b2) : h(b2) ? d(k, { children: b2 }, null, null, null) : b2.__b > 0 ? d(b2.type, b2.props, b2.key, b2.ref ? b2.ref : null, b2.__v) : b2) ? (b2.__ = u2, b2.__b = u2.__b + 1, -1 === (P2 = A(b2, I2, x2 = p2 + H2, j2)) ?
|
|
143
|
+
null != (b2 = u2.__k[p2] = null == (b2 = l2[p2]) || "boolean" == typeof b2 || "function" == typeof b2 ? null : "string" == typeof b2 || "number" == typeof b2 || "bigint" == typeof b2 ? d(null, b2, null, null, b2) : h(b2) ? d(k, { children: b2 }, null, null, null) : b2.__b > 0 ? d(b2.type, b2.props, b2.key, b2.ref ? b2.ref : null, b2.__v) : b2) ? (b2.__ = u2, b2.__b = u2.__b + 1, -1 === (P2 = A(b2, I2, x2 = p2 + H2, j2)) ? _2 = c : (_2 = I2[P2] || c, I2[P2] = void 0, j2--), L(n2, b2, _2, i2, o3, r2, f2, e2, a2, v2), m2 = b2.__e, (y2 = b2.ref) && _2.ref != y2 && (_2.ref && O(_2.ref, null, b2), v2.push(y2, b2.__c || m2, b2)), null != m2 && (null == w2 && (w2 = m2), (S = _2 === c || null === _2.__v) ? -1 == P2 && H2-- : P2 !== x2 && (P2 === x2 + 1 ? H2++ : P2 > x2 ? j2 > z2 - x2 ? H2 += P2 - x2 : H2-- : H2 = P2 < x2 && P2 == x2 - 1 ? P2 - x2 : 0), x2 = p2 + H2, "function" != typeof b2.type || P2 === x2 && _2.__k !== b2.__k ? "function" == typeof b2.type || P2 === x2 && !S ? void 0 !== b2.__d ? (e2 = b2.__d, b2.__d = void 0) : e2 = m2.nextSibling : e2 = $(n2, m2, e2) : e2 = C(b2, e2, n2), "function" == typeof u2.type && (u2.__d = e2))) : (_2 = I2[p2]) && null == _2.key && _2.__e && (_2.__e == e2 && (e2 = g(_2)), q(_2, _2, false));
|
|
142
144
|
for (u2.__e = w2, p2 = T2; p2--; )
|
|
143
145
|
null != I2[p2] && ("function" == typeof u2.type && null != I2[p2].__e && I2[p2].__e == u2.__d && (u2.__d = I2[p2].__e.nextSibling), q(I2[p2], I2[p2]));
|
|
144
146
|
}
|
|
145
147
|
function C(n2, l2, u2) {
|
|
146
|
-
for (var t2, i2 = n2.__k,
|
|
147
|
-
(t2 = i2[
|
|
148
|
+
for (var t2, i2 = n2.__k, o3 = 0; i2 && o3 < i2.length; o3++)
|
|
149
|
+
(t2 = i2[o3]) && (t2.__ = n2, l2 = "function" == typeof t2.type ? C(t2, l2, u2) : $(u2, t2.__e, l2));
|
|
148
150
|
return l2;
|
|
149
151
|
}
|
|
150
152
|
function $(n2, l2, u2) {
|
|
151
153
|
return null == u2 || u2.parentNode !== n2 ? n2.insertBefore(l2, null) : l2 == u2 && null != l2.parentNode || n2.insertBefore(l2, u2), l2.nextSibling;
|
|
152
154
|
}
|
|
153
155
|
function A(n2, l2, u2, t2) {
|
|
154
|
-
var i2 = n2.key,
|
|
155
|
-
if (null === e2 || e2 && i2 == e2.key &&
|
|
156
|
+
var i2 = n2.key, o3 = n2.type, r2 = u2 - 1, f2 = u2 + 1, e2 = l2[u2];
|
|
157
|
+
if (null === e2 || e2 && i2 == e2.key && o3 === e2.type)
|
|
156
158
|
return u2;
|
|
157
159
|
if (t2 > (null != e2 ? 1 : 0))
|
|
158
160
|
for (; r2 >= 0 || f2 < l2.length; ) {
|
|
159
161
|
if (r2 >= 0) {
|
|
160
|
-
if ((e2 = l2[r2]) && i2 == e2.key &&
|
|
162
|
+
if ((e2 = l2[r2]) && i2 == e2.key && o3 === e2.type)
|
|
161
163
|
return r2;
|
|
162
164
|
r2--;
|
|
163
165
|
}
|
|
164
166
|
if (f2 < l2.length) {
|
|
165
|
-
if ((e2 = l2[f2]) && i2 == e2.key &&
|
|
167
|
+
if ((e2 = l2[f2]) && i2 == e2.key && o3 === e2.type)
|
|
166
168
|
return f2;
|
|
167
169
|
f2++;
|
|
168
170
|
}
|
|
@@ -170,17 +172,17 @@ var __exports__ = (() => {
|
|
|
170
172
|
return -1;
|
|
171
173
|
}
|
|
172
174
|
function H(n2, l2, u2, t2, i2) {
|
|
173
|
-
var
|
|
174
|
-
for (
|
|
175
|
-
"children" ===
|
|
176
|
-
for (
|
|
177
|
-
i2 && "function" != typeof l2[
|
|
175
|
+
var o3;
|
|
176
|
+
for (o3 in u2)
|
|
177
|
+
"children" === o3 || "key" === o3 || o3 in l2 || T(n2, o3, null, u2[o3], t2);
|
|
178
|
+
for (o3 in l2)
|
|
179
|
+
i2 && "function" != typeof l2[o3] || "children" === o3 || "key" === o3 || "value" === o3 || "checked" === o3 || u2[o3] === l2[o3] || T(n2, o3, l2[o3], u2[o3], t2);
|
|
178
180
|
}
|
|
179
181
|
function I(n2, l2, u2) {
|
|
180
182
|
"-" === l2[0] ? n2.setProperty(l2, null == u2 ? "" : u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || a.test(l2) ? u2 : u2 + "px";
|
|
181
183
|
}
|
|
182
184
|
function T(n2, l2, u2, t2, i2) {
|
|
183
|
-
var
|
|
185
|
+
var o3;
|
|
184
186
|
n:
|
|
185
187
|
if ("style" === l2)
|
|
186
188
|
if ("string" == typeof u2)
|
|
@@ -194,7 +196,7 @@ var __exports__ = (() => {
|
|
|
194
196
|
t2 && u2[l2] === t2[l2] || I(n2.style, l2, u2[l2]);
|
|
195
197
|
}
|
|
196
198
|
else if ("o" === l2[0] && "n" === l2[1])
|
|
197
|
-
|
|
199
|
+
o3 = l2 !== (l2 = l2.replace(/Capture$/, "")), l2 = l2.toLowerCase() in n2 ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + o3] = u2, u2 ? t2 || n2.addEventListener(l2, o3 ? z : j, o3) : n2.removeEventListener(l2, o3 ? z : j, o3);
|
|
198
200
|
else if ("dangerouslySetInnerHTML" !== l2) {
|
|
199
201
|
if (i2)
|
|
200
202
|
l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
@@ -213,15 +215,15 @@ var __exports__ = (() => {
|
|
|
213
215
|
function z(n2) {
|
|
214
216
|
return this.l[n2.type + true](l.event ? l.event(n2) : n2);
|
|
215
217
|
}
|
|
216
|
-
function L(n2, u2, t2, i2,
|
|
217
|
-
var a2, p2, y2, d2,
|
|
218
|
+
function L(n2, u2, t2, i2, o3, r2, f2, e2, c2, s2) {
|
|
219
|
+
var a2, p2, y2, d2, _2, g2, m2, w2, x2, C2, S, $2, A2, H2, I2, T2 = u2.type;
|
|
218
220
|
if (void 0 !== u2.constructor)
|
|
219
221
|
return null;
|
|
220
222
|
null != t2.__h && (c2 = t2.__h, e2 = u2.__e = t2.__e, u2.__h = null, r2 = [e2]), (a2 = l.__b) && a2(u2);
|
|
221
223
|
n:
|
|
222
224
|
if ("function" == typeof T2)
|
|
223
225
|
try {
|
|
224
|
-
if (w2 = u2.props, x2 = (a2 = T2.contextType) && i2[a2.__c], C2 = a2 ? x2 ? x2.props.value : a2.__ : i2, t2.__c ? m2 = (p2 = u2.__c = t2.__c).__ = p2.__E : ("prototype" in T2 && T2.prototype.render ? u2.__c = p2 = new T2(w2, C2) : (u2.__c = p2 = new b(w2, C2), p2.constructor = T2, p2.render = B), x2 && x2.sub(p2), p2.props = w2, p2.state || (p2.state = {}), p2.context = C2, p2.__n = i2, y2 = p2.__d = true, p2.__h = [], p2._sb = []), null == p2.__s && (p2.__s = p2.state), null != T2.getDerivedStateFromProps && (p2.__s == p2.state && (p2.__s = v({}, p2.__s)), v(p2.__s, T2.getDerivedStateFromProps(w2, p2.__s))), d2 = p2.props,
|
|
226
|
+
if (w2 = u2.props, x2 = (a2 = T2.contextType) && i2[a2.__c], C2 = a2 ? x2 ? x2.props.value : a2.__ : i2, t2.__c ? m2 = (p2 = u2.__c = t2.__c).__ = p2.__E : ("prototype" in T2 && T2.prototype.render ? u2.__c = p2 = new T2(w2, C2) : (u2.__c = p2 = new b(w2, C2), p2.constructor = T2, p2.render = B), x2 && x2.sub(p2), p2.props = w2, p2.state || (p2.state = {}), p2.context = C2, p2.__n = i2, y2 = p2.__d = true, p2.__h = [], p2._sb = []), null == p2.__s && (p2.__s = p2.state), null != T2.getDerivedStateFromProps && (p2.__s == p2.state && (p2.__s = v({}, p2.__s)), v(p2.__s, T2.getDerivedStateFromProps(w2, p2.__s))), d2 = p2.props, _2 = p2.state, p2.__v = u2, y2)
|
|
225
227
|
null == T2.getDerivedStateFromProps && null != p2.componentWillMount && p2.componentWillMount(), null != p2.componentDidMount && p2.__h.push(p2.componentDidMount);
|
|
226
228
|
else {
|
|
227
229
|
if (null == T2.getDerivedStateFromProps && w2 !== d2 && null != p2.componentWillReceiveProps && p2.componentWillReceiveProps(w2, C2), !p2.__e && (null != p2.shouldComponentUpdate && false === p2.shouldComponentUpdate(w2, p2.__s, C2) || u2.__v === t2.__v)) {
|
|
@@ -233,7 +235,7 @@ var __exports__ = (() => {
|
|
|
233
235
|
break n;
|
|
234
236
|
}
|
|
235
237
|
null != p2.componentWillUpdate && p2.componentWillUpdate(w2, p2.__s, C2), null != p2.componentDidUpdate && p2.__h.push(function() {
|
|
236
|
-
p2.componentDidUpdate(d2,
|
|
238
|
+
p2.componentDidUpdate(d2, _2, g2);
|
|
237
239
|
});
|
|
238
240
|
}
|
|
239
241
|
if (p2.context = C2, p2.props = w2, p2.__P = n2, p2.__e = false, $2 = l.__r, A2 = 0, "prototype" in T2 && T2.prototype.render) {
|
|
@@ -244,12 +246,12 @@ var __exports__ = (() => {
|
|
|
244
246
|
do {
|
|
245
247
|
p2.__d = false, $2 && $2(u2), a2 = p2.render(p2.props, p2.state, p2.context), p2.state = p2.__s;
|
|
246
248
|
} while (p2.__d && ++A2 < 25);
|
|
247
|
-
p2.state = p2.__s, null != p2.getChildContext && (i2 = v(v({}, i2), p2.getChildContext())), y2 || null == p2.getSnapshotBeforeUpdate || (g2 = p2.getSnapshotBeforeUpdate(d2,
|
|
249
|
+
p2.state = p2.__s, null != p2.getChildContext && (i2 = v(v({}, i2), p2.getChildContext())), y2 || null == p2.getSnapshotBeforeUpdate || (g2 = p2.getSnapshotBeforeUpdate(d2, _2)), P(n2, h(I2 = null != a2 && a2.type === k && null == a2.key ? a2.props.children : a2) ? I2 : [I2], u2, t2, i2, o3, r2, f2, e2, c2, s2), p2.base = u2.__e, u2.__h = null, p2.__h.length && f2.push(p2), m2 && (p2.__E = p2.__ = null);
|
|
248
250
|
} catch (n3) {
|
|
249
251
|
u2.__v = null, (c2 || null != r2) && (u2.__e = e2, u2.__h = !!c2, r2[r2.indexOf(e2)] = null), l.__e(n3, u2, t2);
|
|
250
252
|
}
|
|
251
253
|
else
|
|
252
|
-
null == r2 && u2.__v === t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : u2.__e = N(t2.__e, u2, t2, i2,
|
|
254
|
+
null == r2 && u2.__v === t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : u2.__e = N(t2.__e, u2, t2, i2, o3, r2, f2, c2, s2);
|
|
253
255
|
(a2 = l.diffed) && a2(u2);
|
|
254
256
|
}
|
|
255
257
|
function M(n2, u2, t2) {
|
|
@@ -265,9 +267,9 @@ var __exports__ = (() => {
|
|
|
265
267
|
}
|
|
266
268
|
});
|
|
267
269
|
}
|
|
268
|
-
function N(l2, u2, t2, i2,
|
|
269
|
-
var a2, v2, y2, d2 = t2.props,
|
|
270
|
-
if ("svg" === k2 && (
|
|
270
|
+
function N(l2, u2, t2, i2, o3, r2, f2, e2, s2) {
|
|
271
|
+
var a2, v2, y2, d2 = t2.props, _2 = u2.props, k2 = u2.type, b2 = 0;
|
|
272
|
+
if ("svg" === k2 && (o3 = true), null != r2) {
|
|
271
273
|
for (; b2 < r2.length; b2++)
|
|
272
274
|
if ((a2 = r2[b2]) && "setAttribute" in a2 == !!k2 && (k2 ? a2.localName === k2 : 3 === a2.nodeType)) {
|
|
273
275
|
l2 = a2, r2[b2] = null;
|
|
@@ -276,24 +278,24 @@ var __exports__ = (() => {
|
|
|
276
278
|
}
|
|
277
279
|
if (null == l2) {
|
|
278
280
|
if (null === k2)
|
|
279
|
-
return document.createTextNode(
|
|
280
|
-
l2 =
|
|
281
|
+
return document.createTextNode(_2);
|
|
282
|
+
l2 = o3 ? document.createElementNS("http://www.w3.org/2000/svg", k2) : document.createElement(k2, _2.is && _2), r2 = null, e2 = false;
|
|
281
283
|
}
|
|
282
284
|
if (null === k2)
|
|
283
|
-
d2 ===
|
|
285
|
+
d2 === _2 || e2 && l2.data === _2 || (l2.data = _2);
|
|
284
286
|
else {
|
|
285
|
-
if (r2 = r2 && n.call(l2.childNodes), v2 = (d2 = t2.props || c).dangerouslySetInnerHTML, y2 =
|
|
287
|
+
if (r2 = r2 && n.call(l2.childNodes), v2 = (d2 = t2.props || c).dangerouslySetInnerHTML, y2 = _2.dangerouslySetInnerHTML, !e2) {
|
|
286
288
|
if (null != r2)
|
|
287
289
|
for (d2 = {}, b2 = 0; b2 < l2.attributes.length; b2++)
|
|
288
290
|
d2[l2.attributes[b2].name] = l2.attributes[b2].value;
|
|
289
291
|
(y2 || v2) && (y2 && (v2 && y2.__html == v2.__html || y2.__html === l2.innerHTML) || (l2.innerHTML = y2 && y2.__html || ""));
|
|
290
292
|
}
|
|
291
|
-
if (H(l2,
|
|
293
|
+
if (H(l2, _2, d2, o3, e2), y2)
|
|
292
294
|
u2.__k = [];
|
|
293
|
-
else if (P(l2, h(b2 = u2.props.children) ? b2 : [b2], u2, t2, i2,
|
|
295
|
+
else if (P(l2, h(b2 = u2.props.children) ? b2 : [b2], u2, t2, i2, o3 && "foreignObject" !== k2, r2, f2, r2 ? r2[0] : t2.__k && g(t2, 0), e2, s2), null != r2)
|
|
294
296
|
for (b2 = r2.length; b2--; )
|
|
295
297
|
null != r2[b2] && p(r2[b2]);
|
|
296
|
-
e2 || ("value" in
|
|
298
|
+
e2 || ("value" in _2 && void 0 !== (b2 = _2.value) && (b2 !== l2.value || "progress" === k2 && !b2 || "option" === k2 && b2 !== d2.value) && T(l2, "value", b2, d2.value, false), "checked" in _2 && void 0 !== (b2 = _2.checked) && b2 !== l2.checked && T(l2, "checked", b2, d2.checked, false));
|
|
297
299
|
}
|
|
298
300
|
return l2;
|
|
299
301
|
}
|
|
@@ -305,7 +307,7 @@ var __exports__ = (() => {
|
|
|
305
307
|
}
|
|
306
308
|
}
|
|
307
309
|
function q(n2, u2, t2) {
|
|
308
|
-
var i2,
|
|
310
|
+
var i2, o3;
|
|
309
311
|
if (l.unmount && l.unmount(n2), (i2 = n2.ref) && (i2.current && i2.current !== n2.__e || O(i2, null, u2)), null != (i2 = n2.__c)) {
|
|
310
312
|
if (i2.componentWillUnmount)
|
|
311
313
|
try {
|
|
@@ -316,22 +318,22 @@ var __exports__ = (() => {
|
|
|
316
318
|
i2.base = i2.__P = null, n2.__c = void 0;
|
|
317
319
|
}
|
|
318
320
|
if (i2 = n2.__k)
|
|
319
|
-
for (
|
|
320
|
-
i2[
|
|
321
|
+
for (o3 = 0; o3 < i2.length; o3++)
|
|
322
|
+
i2[o3] && q(i2[o3], u2, t2 || "function" != typeof n2.type);
|
|
321
323
|
t2 || null == n2.__e || p(n2.__e), n2.__ = n2.__e = n2.__d = void 0;
|
|
322
324
|
}
|
|
323
325
|
function B(n2, l2, u2) {
|
|
324
326
|
return this.constructor(n2, u2);
|
|
325
327
|
}
|
|
326
328
|
function D(u2, t2, i2) {
|
|
327
|
-
var
|
|
328
|
-
l.__ && l.__(u2, t2), r2 = (
|
|
329
|
+
var o3, r2, f2, e2;
|
|
330
|
+
l.__ && l.__(u2, t2), r2 = (o3 = "function" == typeof i2) ? null : i2 && i2.__k || t2.__k, f2 = [], e2 = [], L(t2, u2 = (!o3 && i2 || t2).__k = y(k, null, [u2]), r2 || c, c, void 0 !== t2.ownerSVGElement, !o3 && i2 ? [i2] : r2 ? null : t2.firstChild ? n.call(t2.childNodes) : null, f2, !o3 && i2 ? i2 : r2 ? r2.__e : t2.firstChild, o3, e2), M(f2, u2, e2);
|
|
329
331
|
}
|
|
330
332
|
n = s.slice, l = { __e: function(n2, l2, u2, t2) {
|
|
331
|
-
for (var i2,
|
|
333
|
+
for (var i2, o3, r2; l2 = l2.__; )
|
|
332
334
|
if ((i2 = l2.__c) && !i2.__)
|
|
333
335
|
try {
|
|
334
|
-
if ((
|
|
336
|
+
if ((o3 = i2.constructor) && null != o3.getDerivedStateFromError && (i2.setState(o3.getDerivedStateFromError(n2)), r2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), r2 = i2.__d), r2)
|
|
335
337
|
return i2.__E = i2;
|
|
336
338
|
} catch (l3) {
|
|
337
339
|
n2 = l3;
|
|
@@ -348,31 +350,57 @@ var __exports__ = (() => {
|
|
|
348
350
|
return n2.__v.__b - l2.__v.__b;
|
|
349
351
|
}, x.__r = 0, e = 0;
|
|
350
352
|
|
|
353
|
+
// ../../node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
|
|
354
|
+
var _ = 0;
|
|
355
|
+
function o2(o3, e2, n2, t2, f2, l2) {
|
|
356
|
+
var s2, u2, a2 = {};
|
|
357
|
+
for (u2 in e2)
|
|
358
|
+
"ref" == u2 ? s2 = e2[u2] : a2[u2] = e2[u2];
|
|
359
|
+
var i2 = { type: o3, props: a2, key: n2, ref: s2, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --_, __source: f2, __self: l2 };
|
|
360
|
+
if ("function" == typeof o3 && (s2 = o3.defaultProps))
|
|
361
|
+
for (u2 in s2)
|
|
362
|
+
void 0 === a2[u2] && (a2[u2] = s2[u2]);
|
|
363
|
+
return l.vnode && l.vnode(i2), i2;
|
|
364
|
+
}
|
|
365
|
+
|
|
351
366
|
// src/components.tsx
|
|
352
367
|
var IconButton = (props) => {
|
|
353
|
-
const {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
})
|
|
368
|
+
const { className, label, onClick } = props;
|
|
369
|
+
return /* @__PURE__ */ o2("div", { className: "deck-widget-button", children: /* @__PURE__ */ o2(
|
|
370
|
+
"button",
|
|
371
|
+
{
|
|
372
|
+
className: `deck-widget-icon-button ${className}`,
|
|
373
|
+
type: "button",
|
|
374
|
+
onClick,
|
|
375
|
+
title: label,
|
|
376
|
+
children: /* @__PURE__ */ o2("div", { className: "deck-widget-icon" })
|
|
377
|
+
}
|
|
378
|
+
) });
|
|
379
|
+
};
|
|
380
|
+
var ButtonGroup = (props) => {
|
|
381
|
+
const { children, orientation } = props;
|
|
382
|
+
return /* @__PURE__ */ o2("div", { className: `deck-widget-button-group ${orientation}`, children });
|
|
383
|
+
};
|
|
384
|
+
var GroupedIconButton = (props) => {
|
|
385
|
+
const { className, label, onClick } = props;
|
|
386
|
+
return /* @__PURE__ */ o2(
|
|
387
|
+
"button",
|
|
388
|
+
{
|
|
389
|
+
className: `deck-widget-icon-button ${className}`,
|
|
390
|
+
type: "button",
|
|
391
|
+
onClick,
|
|
392
|
+
title: label,
|
|
393
|
+
children: /* @__PURE__ */ o2("div", { className: "deck-widget-icon" })
|
|
394
|
+
}
|
|
395
|
+
);
|
|
368
396
|
};
|
|
369
397
|
|
|
370
398
|
// src/fullscreen-widget.tsx
|
|
371
399
|
var FullscreenWidget = class {
|
|
372
|
-
id = "fullscreen";
|
|
373
|
-
placement = "top-left";
|
|
374
|
-
fullscreen = false;
|
|
375
400
|
constructor(props) {
|
|
401
|
+
this.id = "fullscreen";
|
|
402
|
+
this.placement = "top-left";
|
|
403
|
+
this.fullscreen = false;
|
|
376
404
|
this.id = props.id || "fullscreen";
|
|
377
405
|
this.placement = props.placement || "top-left";
|
|
378
406
|
props.enterLabel = props.enterLabel || "Enter Fullscreen";
|
|
@@ -380,13 +408,8 @@ var __exports__ = (() => {
|
|
|
380
408
|
props.style = props.style || {};
|
|
381
409
|
this.props = props;
|
|
382
410
|
}
|
|
383
|
-
onAdd({
|
|
384
|
-
|
|
385
|
-
}) {
|
|
386
|
-
const {
|
|
387
|
-
style,
|
|
388
|
-
className
|
|
389
|
-
} = this.props;
|
|
411
|
+
onAdd({ deck }) {
|
|
412
|
+
const { style, className } = this.props;
|
|
390
413
|
const el = document.createElement("div");
|
|
391
414
|
el.classList.add("deck-widget", "deck-widget-fullscreen");
|
|
392
415
|
if (className)
|
|
@@ -406,19 +429,19 @@ var __exports__ = (() => {
|
|
|
406
429
|
document.removeEventListener("fullscreenchange", this.onFullscreenChange.bind(this));
|
|
407
430
|
}
|
|
408
431
|
update() {
|
|
409
|
-
const {
|
|
410
|
-
enterLabel,
|
|
411
|
-
exitLabel
|
|
412
|
-
} = this.props;
|
|
432
|
+
const { enterLabel, exitLabel } = this.props;
|
|
413
433
|
const el = this.element;
|
|
414
434
|
if (!el) {
|
|
415
435
|
return;
|
|
416
436
|
}
|
|
417
|
-
const ui =
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
437
|
+
const ui = /* @__PURE__ */ o2(
|
|
438
|
+
IconButton,
|
|
439
|
+
{
|
|
440
|
+
onClick: this.handleClick.bind(this),
|
|
441
|
+
label: this.fullscreen ? exitLabel : enterLabel,
|
|
442
|
+
className: this.fullscreen ? "deck-widget-fullscreen-exit" : "deck-widget-fullscreen-enter"
|
|
443
|
+
}
|
|
444
|
+
);
|
|
422
445
|
D(ui, el);
|
|
423
446
|
}
|
|
424
447
|
setProps(props) {
|
|
@@ -436,7 +459,9 @@ var __exports__ = (() => {
|
|
|
436
459
|
Object.entries(oldProps.style).map(([key]) => el.style.removeProperty(key));
|
|
437
460
|
}
|
|
438
461
|
if (props.style) {
|
|
439
|
-
Object.entries(props.style).map(
|
|
462
|
+
Object.entries(props.style).map(
|
|
463
|
+
([key, value]) => el.style.setProperty(key, value)
|
|
464
|
+
);
|
|
440
465
|
}
|
|
441
466
|
}
|
|
442
467
|
}
|
|
@@ -464,9 +489,7 @@ var __exports__ = (() => {
|
|
|
464
489
|
async requestFullscreen() {
|
|
465
490
|
const container = this.getContainer();
|
|
466
491
|
if (container?.requestFullscreen) {
|
|
467
|
-
await container.requestFullscreen({
|
|
468
|
-
navigationUI: "hide"
|
|
469
|
-
});
|
|
492
|
+
await container.requestFullscreen({ navigationUI: "hide" });
|
|
470
493
|
} else {
|
|
471
494
|
this.togglePseudoFullscreen();
|
|
472
495
|
}
|
|
@@ -483,6 +506,184 @@ var __exports__ = (() => {
|
|
|
483
506
|
}
|
|
484
507
|
};
|
|
485
508
|
|
|
509
|
+
// src/compass-widget.tsx
|
|
510
|
+
var import_core3 = __toESM(require_core(), 1);
|
|
511
|
+
var CompassWidget = class {
|
|
512
|
+
constructor(props) {
|
|
513
|
+
this.id = "compass";
|
|
514
|
+
this.placement = "top-left";
|
|
515
|
+
this.viewId = null;
|
|
516
|
+
this.id = props.id || "compass";
|
|
517
|
+
this.viewId = props.viewId || null;
|
|
518
|
+
this.placement = props.placement || "top-left";
|
|
519
|
+
props.transitionDuration = props.transitionDuration || 200;
|
|
520
|
+
props.label = props.label || "Compass";
|
|
521
|
+
props.style = props.style || {};
|
|
522
|
+
this.props = props;
|
|
523
|
+
}
|
|
524
|
+
setProps(props) {
|
|
525
|
+
Object.assign(this.props, props);
|
|
526
|
+
}
|
|
527
|
+
onViewportChange(viewport) {
|
|
528
|
+
this.viewport = viewport;
|
|
529
|
+
this.update();
|
|
530
|
+
}
|
|
531
|
+
onAdd({ deck }) {
|
|
532
|
+
const { style, className } = this.props;
|
|
533
|
+
const element = document.createElement("div");
|
|
534
|
+
element.classList.add("deck-widget", "deck-widget-compass");
|
|
535
|
+
if (className)
|
|
536
|
+
element.classList.add(className);
|
|
537
|
+
if (style) {
|
|
538
|
+
Object.entries(style).map(([key, value]) => element.style.setProperty(key, value));
|
|
539
|
+
}
|
|
540
|
+
this.deck = deck;
|
|
541
|
+
this.element = element;
|
|
542
|
+
this.update();
|
|
543
|
+
return element;
|
|
544
|
+
}
|
|
545
|
+
getRotation() {
|
|
546
|
+
if (this.viewport instanceof import_core3.WebMercatorViewport) {
|
|
547
|
+
return [-this.viewport.bearing, this.viewport.pitch];
|
|
548
|
+
} else if (this.viewport instanceof import_core3._GlobeViewport) {
|
|
549
|
+
return [0, Math.max(-80, Math.min(80, this.viewport.latitude))];
|
|
550
|
+
}
|
|
551
|
+
return [0, 0];
|
|
552
|
+
}
|
|
553
|
+
update() {
|
|
554
|
+
const [rz, rx] = this.getRotation();
|
|
555
|
+
const element = this.element;
|
|
556
|
+
if (!element) {
|
|
557
|
+
return;
|
|
558
|
+
}
|
|
559
|
+
const ui = /* @__PURE__ */ o2("div", { className: "deck-widget-button", style: { perspective: 100 }, children: /* @__PURE__ */ o2(
|
|
560
|
+
"button",
|
|
561
|
+
{
|
|
562
|
+
type: "button",
|
|
563
|
+
onClick: () => this.handleCompassReset(),
|
|
564
|
+
label: this.props.label,
|
|
565
|
+
style: { transform: `rotateX(${rx}deg)` },
|
|
566
|
+
children: /* @__PURE__ */ o2("svg", { fill: "none", width: "100%", height: "100%", viewBox: "0 0 26 26", children: /* @__PURE__ */ o2("g", { transform: `rotate(${rz},13,13)`, children: [
|
|
567
|
+
/* @__PURE__ */ o2(
|
|
568
|
+
"path",
|
|
569
|
+
{
|
|
570
|
+
d: "M10 13.0001L12.9999 5L15.9997 13.0001H10Z",
|
|
571
|
+
fill: "var(--icon-compass-north-color, #F05C44)"
|
|
572
|
+
}
|
|
573
|
+
),
|
|
574
|
+
/* @__PURE__ */ o2(
|
|
575
|
+
"path",
|
|
576
|
+
{
|
|
577
|
+
d: "M16.0002 12.9999L13.0004 21L10.0005 12.9999H16.0002Z",
|
|
578
|
+
fill: "var(--icon-compass-south-color, #C2C2CC)"
|
|
579
|
+
}
|
|
580
|
+
)
|
|
581
|
+
] }) })
|
|
582
|
+
}
|
|
583
|
+
) });
|
|
584
|
+
D(ui, element);
|
|
585
|
+
}
|
|
586
|
+
onRemove() {
|
|
587
|
+
this.deck = void 0;
|
|
588
|
+
this.element = void 0;
|
|
589
|
+
}
|
|
590
|
+
handleCompassReset() {
|
|
591
|
+
const viewId = this.viewId || "default-view";
|
|
592
|
+
if (this.viewport instanceof import_core3.WebMercatorViewport) {
|
|
593
|
+
const nextViewState = {
|
|
594
|
+
...this.viewport,
|
|
595
|
+
bearing: 0,
|
|
596
|
+
...this.getRotation()[0] === 0 ? { pitch: 0 } : {},
|
|
597
|
+
transitionDuration: this.props.transitionDuration,
|
|
598
|
+
transitionInterpolator: new import_core3.FlyToInterpolator()
|
|
599
|
+
};
|
|
600
|
+
this.deck._onViewStateChange({ viewId, viewState: nextViewState, interactionState: {} });
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
// src/zoom-widget.tsx
|
|
606
|
+
var import_core4 = __toESM(require_core(), 1);
|
|
607
|
+
var ZoomWidget = class {
|
|
608
|
+
constructor(props) {
|
|
609
|
+
this.id = "zoom";
|
|
610
|
+
this.placement = "top-left";
|
|
611
|
+
this.orientation = "vertical";
|
|
612
|
+
this.viewId = null;
|
|
613
|
+
this.id = props.id || "zoom";
|
|
614
|
+
this.viewId = props.viewId || null;
|
|
615
|
+
this.placement = props.placement || "top-left";
|
|
616
|
+
this.orientation = props.orientation || "vertical";
|
|
617
|
+
props.transitionDuration = props.transitionDuration || 200;
|
|
618
|
+
props.zoomInLabel = props.zoomInLabel || "Zoom In";
|
|
619
|
+
props.zoomOutLabel = props.zoomOutLabel || "Zoom Out";
|
|
620
|
+
props.style = props.style || {};
|
|
621
|
+
this.props = props;
|
|
622
|
+
}
|
|
623
|
+
onAdd({ deck }) {
|
|
624
|
+
const { style, className } = this.props;
|
|
625
|
+
const element = document.createElement("div");
|
|
626
|
+
element.classList.add("deck-widget", "deck-widget-zoom");
|
|
627
|
+
if (className)
|
|
628
|
+
element.classList.add(className);
|
|
629
|
+
if (style) {
|
|
630
|
+
Object.entries(style).map(([key, value]) => element.style.setProperty(key, value));
|
|
631
|
+
}
|
|
632
|
+
const ui = /* @__PURE__ */ o2(ButtonGroup, { orientation: this.orientation, children: [
|
|
633
|
+
/* @__PURE__ */ o2(
|
|
634
|
+
GroupedIconButton,
|
|
635
|
+
{
|
|
636
|
+
onClick: () => this.handleZoomIn(),
|
|
637
|
+
label: this.props.zoomInLabel,
|
|
638
|
+
className: "deck-widget-zoom-in"
|
|
639
|
+
}
|
|
640
|
+
),
|
|
641
|
+
/* @__PURE__ */ o2(
|
|
642
|
+
GroupedIconButton,
|
|
643
|
+
{
|
|
644
|
+
onClick: () => this.handleZoomOut(),
|
|
645
|
+
label: this.props.zoomOutLabel,
|
|
646
|
+
className: "deck-widget-zoom-out"
|
|
647
|
+
}
|
|
648
|
+
)
|
|
649
|
+
] });
|
|
650
|
+
D(ui, element);
|
|
651
|
+
this.deck = deck;
|
|
652
|
+
this.element = element;
|
|
653
|
+
return element;
|
|
654
|
+
}
|
|
655
|
+
onRemove() {
|
|
656
|
+
this.deck = void 0;
|
|
657
|
+
this.element = void 0;
|
|
658
|
+
}
|
|
659
|
+
setProps(props) {
|
|
660
|
+
Object.assign(this.props, props);
|
|
661
|
+
}
|
|
662
|
+
onViewportChange(viewport) {
|
|
663
|
+
this.viewport = viewport;
|
|
664
|
+
}
|
|
665
|
+
handleZoom(nextZoom) {
|
|
666
|
+
const viewId = this.viewId || "default-view";
|
|
667
|
+
const nextViewState = {
|
|
668
|
+
...this.viewport,
|
|
669
|
+
zoom: nextZoom,
|
|
670
|
+
transitionDuration: this.props.transitionDuration,
|
|
671
|
+
transitionInterpolator: new import_core4.FlyToInterpolator()
|
|
672
|
+
};
|
|
673
|
+
this.deck._onViewStateChange({ viewId, viewState: nextViewState, interactionState: {} });
|
|
674
|
+
}
|
|
675
|
+
handleZoomIn() {
|
|
676
|
+
if (this.viewport) {
|
|
677
|
+
this.handleZoom(this.viewport.zoom + 1);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
handleZoomOut() {
|
|
681
|
+
if (this.viewport) {
|
|
682
|
+
this.handleZoom(this.viewport.zoom - 1);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
|
|
486
687
|
// src/themes.ts
|
|
487
688
|
var LightTheme = {
|
|
488
689
|
"--button-background": "#fff",
|
|
@@ -491,7 +692,9 @@ var __exports__ = (() => {
|
|
|
491
692
|
"--button-shadow": "0px 0px 8px 0px rgba(0, 0, 0, 0.25)",
|
|
492
693
|
"--button-backdrop-filter": "unset",
|
|
493
694
|
"--button-icon-idle": "rgba(97, 97, 102, 1)",
|
|
494
|
-
"--button-icon-hover": "rgba(24, 24, 26, 1)"
|
|
695
|
+
"--button-icon-hover": "rgba(24, 24, 26, 1)",
|
|
696
|
+
"--icon-compass-north-color": "#F05C44",
|
|
697
|
+
"--icon-compass-south-color": "#C2C2CC"
|
|
495
698
|
};
|
|
496
699
|
var DarkTheme = {
|
|
497
700
|
"--button-background": "rgba(18, 18, 20, 1)",
|
|
@@ -500,7 +703,9 @@ var __exports__ = (() => {
|
|
|
500
703
|
"--button-shadow": "0px 0px 8px 0px rgba(0, 0, 0, 0.25)",
|
|
501
704
|
"--button-backdrop-filter": "unset",
|
|
502
705
|
"--button-icon-idle": "rgba(158, 157, 168, 1)",
|
|
503
|
-
"--button-icon-hover": "rgba(215, 214, 229, 1)"
|
|
706
|
+
"--button-icon-hover": "rgba(215, 214, 229, 1)",
|
|
707
|
+
"--icon-compass-north-color": "#F05C44",
|
|
708
|
+
"--icon-compass-south-color": "#C2C2CC"
|
|
504
709
|
};
|
|
505
710
|
var LightGlassTheme = {
|
|
506
711
|
"--button-background": "rgba(255, 255, 255, 0.6)",
|
|
@@ -509,7 +714,9 @@ var __exports__ = (() => {
|
|
|
509
714
|
"--button-shadow": "0px 0px 8px 0px rgba(0, 0, 0, 0.25), 0px 0px 8px 0px rgba(0, 0, 0, 0.1) inset",
|
|
510
715
|
"--button-backdrop-filter": "blur(4px)",
|
|
511
716
|
"--button-icon-idle": "rgba(97, 97, 102, 1)",
|
|
512
|
-
"--button-icon-hover": "rgba(24, 24, 26, 1)"
|
|
717
|
+
"--button-icon-hover": "rgba(24, 24, 26, 1)",
|
|
718
|
+
"--icon-compass-north-color": "#F05C44",
|
|
719
|
+
"--icon-compass-south-color": "#C2C2CC"
|
|
513
720
|
};
|
|
514
721
|
var DarkGlassTheme = {
|
|
515
722
|
"--button-background": "rgba(18, 18, 20, 0.75)",
|
|
@@ -518,7 +725,9 @@ var __exports__ = (() => {
|
|
|
518
725
|
"--button-shadow": "0px 0px 8px 0px rgba(0, 0, 0, 0.25), 0px 0px 8px 0px rgba(0, 0, 0, 0.1) inset",
|
|
519
726
|
"--button-backdrop-filter": "blur(4px)",
|
|
520
727
|
"--button-icon-idle": "rgba(158, 157, 168, 1)",
|
|
521
|
-
"--button-icon-hover": "rgba(215, 214, 229, 1)"
|
|
728
|
+
"--button-icon-hover": "rgba(215, 214, 229, 1)",
|
|
729
|
+
"--icon-compass-north-color": "#F05C44",
|
|
730
|
+
"--icon-compass-south-color": "#C2C2CC"
|
|
522
731
|
};
|
|
523
732
|
return __toCommonJS(bundle_exports);
|
|
524
733
|
})();
|
|
@@ -15,7 +15,13 @@ interface FullscreenWidgetProps {
|
|
|
15
15
|
* Tooltip message when fullscreen.
|
|
16
16
|
*/
|
|
17
17
|
exitLabel?: string;
|
|
18
|
+
/**
|
|
19
|
+
* CSS inline style overrides.
|
|
20
|
+
*/
|
|
18
21
|
style?: Partial<CSSStyleDeclaration>;
|
|
22
|
+
/**
|
|
23
|
+
* Additional CSS class.
|
|
24
|
+
*/
|
|
19
25
|
className?: string;
|
|
20
26
|
}
|
|
21
27
|
export declare class FullscreenWidget implements Widget<FullscreenWidgetProps> {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fullscreen-widget.d.ts","sourceRoot":"","sources":["../src/fullscreen-widget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAE,MAAM,EAAE,eAAe,EAAC,MAAM,eAAe,CAAC;AAIjE,UAAU,qBAAqB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;OAGG;IAEH,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,gBAAiB,YAAW,MAAM,CAAC,qBAAqB,CAAC;IACpE,EAAE,SAAgB;IAClB,KAAK,EAAE,qBAAqB,CAAC;IAC7B,SAAS,EAAE,eAAe,CAAc;IAExC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB,UAAU,EAAE,OAAO,CAAS;gBAEhB,KAAK,EAAE,qBAAqB;IASxC,KAAK,CAAC,EAAC,IAAI,EAAC,EAAE;QAAC,IAAI,EAAE,IAAI,CAAA;KAAC,GAAG,cAAc;IAe3C,QAAQ;IAMR,OAAO,CAAC,MAAM;IAiBd,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,qBAAqB,CAAC;IAwB9C,YAAY;IAIZ,kBAAkB;IASZ,WAAW;IASX,iBAAiB;IASjB,cAAc;IAQpB,sBAAsB;CAGvB"}
|