@brad-frost-web/eddie-recipes 0.52.0 → 0.52.1
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.
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { E as
|
|
2
|
-
import { a as
|
|
3
|
-
const
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
(
|
|
7
|
-
return
|
|
1
|
+
import { E as S } from "../../../chunks/EdElement.DJfwJlMF.js";
|
|
2
|
+
import { a as w, r as L, o as f, b as c, A as E, n as o } from "../../../chunks/lit.DaG29oZV.js";
|
|
3
|
+
const R = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}:host([ratio=fill]){width:100%;height:100%}.ed-r-visualzzz{position:relative;isolation:isolate;overflow:hidden;background:var(--ed-theme-color-background-brand)}.ed-r-visualzzz__frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}.ed-r-visualzzz__poster{display:block;width:100%;height:100%;object-fit:cover}.ed-r-visualzzz ::slotted(*){position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}.ed-r-visualzzz--decorative{pointer-events:none}.ed-r-visualzzz--ratio-16-9{aspect-ratio:16/9}.ed-r-visualzzz--ratio-21-9{aspect-ratio:21/9}.ed-r-visualzzz--ratio-4-3{aspect-ratio:4/3}.ed-r-visualzzz--ratio-3-2{aspect-ratio:3/2}.ed-r-visualzzz--ratio-1-1{aspect-ratio:1/1}.ed-r-visualzzz--ratio-4-5{aspect-ratio:4/5}.ed-r-visualzzz--ratio-9-16{aspect-ratio:9/16}.ed-r-visualzzz--fill{width:100%;height:100%}';
|
|
4
|
+
var U = Object.defineProperty, a = (h, e, t, s) => {
|
|
5
|
+
for (var r = void 0, n = h.length - 1, l; n >= 0; n--)
|
|
6
|
+
(l = h[n]) && (r = l(e, t, r) || r);
|
|
7
|
+
return r && U(e, t, r), r;
|
|
8
8
|
};
|
|
9
|
-
const
|
|
9
|
+
const C = "https://visualzzz.bradfrost.com/", P = ["16:9", "21:9", "4:3", "3:2", "1:1", "4:5", "9:16", "fill"], A = "[data-visualzzz-avoid]", m = 200, F = {
|
|
10
10
|
speed: "g.globalSpeed",
|
|
11
11
|
aspect: "g.aspectRatio"
|
|
12
|
-
},
|
|
12
|
+
}, O = [
|
|
13
13
|
"textAxes",
|
|
14
14
|
"textAxisAnim",
|
|
15
15
|
"textSource",
|
|
16
16
|
"quoteAttrColor",
|
|
17
17
|
"quoteMarks"
|
|
18
18
|
];
|
|
19
|
-
function
|
|
20
|
-
if (!
|
|
21
|
-
if (typeof
|
|
22
|
-
if (typeof
|
|
19
|
+
function g(h) {
|
|
20
|
+
if (!h) return {};
|
|
21
|
+
if (typeof h == "object") return h;
|
|
22
|
+
if (typeof h == "string")
|
|
23
23
|
try {
|
|
24
|
-
const e = JSON.parse(
|
|
24
|
+
const e = JSON.parse(h);
|
|
25
25
|
return e && typeof e == "object" ? e : {};
|
|
26
26
|
} catch {
|
|
27
27
|
return {};
|
|
28
28
|
}
|
|
29
29
|
return {};
|
|
30
30
|
}
|
|
31
|
-
class
|
|
31
|
+
class i extends S {
|
|
32
32
|
constructor() {
|
|
33
|
-
super(...arguments), this.ratio = "16:9", this.interactive = !1, this.baseUrl =
|
|
33
|
+
super(...arguments), this.ratio = "16:9", this.interactive = !1, this.baseUrl = C, this._reducedMotion = !1, this._seen = !1, this._onMotionChange = (e) => {
|
|
34
34
|
this._reducedMotion = e.matches;
|
|
35
35
|
}, this._maskScheduled = !1, this._maskReady = !1, this._readMask = () => {
|
|
36
36
|
this._maskScheduled = !1;
|
|
37
37
|
const e = this._maskFrame, t = this._maskSelectorInUse;
|
|
38
38
|
if (!e?.contentWindow || !t || !this._maskReady) return;
|
|
39
|
-
const s = e.getBoundingClientRect(),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
const s = e.getBoundingClientRect(), r = e.clientWidth ? s.width / e.clientWidth : 1, n = e.clientHeight ? s.height / e.clientHeight : 1;
|
|
40
|
+
if (!r || !n) return;
|
|
41
|
+
const l = s.width / r, k = s.height / n, _ = [];
|
|
42
|
+
for (const M of document.querySelectorAll(t))
|
|
43
|
+
for (const d of this._rectsFor(M)) {
|
|
44
|
+
if (d.width <= 0 || d.height <= 0) continue;
|
|
45
|
+
const u = (d.left - s.left) / r, p = (d.top - s.top) / n, b = d.width / r, y = d.height / n;
|
|
46
|
+
p + y < -m || p > k + m || u + b < -m || u > l + m || _.push({ x: u, y: p, w: b, h: y });
|
|
45
47
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
new URL(this.baseUrl).origin
|
|
56
|
-
);
|
|
48
|
+
const z = {
|
|
49
|
+
type: "visualzzz:mask",
|
|
50
|
+
v: 1,
|
|
51
|
+
rects: _,
|
|
52
|
+
vw: l,
|
|
53
|
+
vh: k,
|
|
54
|
+
dpr: window.devicePixelRatio || 1
|
|
55
|
+
}, v = JSON.stringify(z);
|
|
56
|
+
v !== this._maskLastPayload && (this._maskLastPayload = v, e.contentWindow.postMessage(z, new URL(this.baseUrl).origin));
|
|
57
57
|
}, this._scheduleMask = () => {
|
|
58
58
|
this._maskScheduled || (this._maskScheduled = !0, requestAnimationFrame(this._readMask));
|
|
59
59
|
}, this._onEmbedMessage = (e) => {
|
|
@@ -61,7 +61,7 @@ class r extends z {
|
|
|
61
61
|
}, this._warnedDrops = /* @__PURE__ */ new Set();
|
|
62
62
|
}
|
|
63
63
|
static get styles() {
|
|
64
|
-
return
|
|
64
|
+
return L(R);
|
|
65
65
|
}
|
|
66
66
|
connectedCallback() {
|
|
67
67
|
if (super.connectedCallback(), typeof window < "u" && window.matchMedia && (this._motionQuery = window.matchMedia("(prefers-reduced-motion: reduce)"), this._reducedMotion = this._motionQuery.matches, this._motionQuery.addEventListener("change", this._onMotionChange)), typeof IntersectionObserver > "u") {
|
|
@@ -102,11 +102,11 @@ class r extends z {
|
|
|
102
102
|
childList: !0,
|
|
103
103
|
subtree: !0,
|
|
104
104
|
characterData: !0
|
|
105
|
-
}), document.fonts?.ready?.then(this._scheduleMask), this._scheduleMask();
|
|
105
|
+
}), document.fonts?.ready?.then(this._scheduleMask), this._maskDriftPoll = setInterval(this._scheduleMask, 300), this._scheduleMask();
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
_stopMask() {
|
|
109
|
-
this._maskFrame && (window.removeEventListener("message", this._onEmbedMessage), window.removeEventListener("scroll", this._scheduleMask), window.removeEventListener("resize", this._scheduleMask), this._maskFrame.removeEventListener("load", this._scheduleMask), this._maskResize?.disconnect(), this._maskMutations?.disconnect(), this._maskResize = void 0, this._maskMutations = void 0, this._maskFrame = void 0, this._maskSelectorInUse = void 0, this._maskReady = !1);
|
|
109
|
+
this._maskFrame && (window.removeEventListener("message", this._onEmbedMessage), window.removeEventListener("scroll", this._scheduleMask), window.removeEventListener("resize", this._scheduleMask), this._maskFrame.removeEventListener("load", this._scheduleMask), this._maskResize?.disconnect(), this._maskMutations?.disconnect(), this._maskDriftPoll !== void 0 && clearInterval(this._maskDriftPoll), this._maskDriftPoll = void 0, this._maskResize = void 0, this._maskMutations = void 0, this._maskFrame = void 0, this._maskSelectorInUse = void 0, this._maskReady = !1, this._maskLastPayload = void 0);
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
112
|
* Build the embed URL: share-URL baseline, then structural props, then the
|
|
@@ -117,17 +117,17 @@ class r extends z {
|
|
|
117
117
|
if (this.configUrl) {
|
|
118
118
|
const s = new URL(this.baseUrl);
|
|
119
119
|
e.protocol = s.protocol, e.host = s.host, e.pathname = s.pathname;
|
|
120
|
-
for (const [
|
|
121
|
-
e.searchParams.has(
|
|
122
|
-
const
|
|
123
|
-
|
|
120
|
+
for (const [n, l] of Object.entries(F))
|
|
121
|
+
e.searchParams.has(n) && !e.searchParams.has(l) && e.searchParams.set(l, e.searchParams.get(n));
|
|
122
|
+
const r = O.filter((n) => e.searchParams.has(n));
|
|
123
|
+
r.length && this._warnDropped(r);
|
|
124
124
|
}
|
|
125
|
-
const t = (s,
|
|
125
|
+
const t = (s, r) => e.searchParams.set(s, String(r));
|
|
126
126
|
this.anim && t("anim", this.anim), this.theme && t("theme", this.theme), this.dark !== void 0 && t("dark", this.dark ? "1" : "0"), this.speed !== void 0 && (t("speed", this.speed), t("g.globalSpeed", this.speed));
|
|
127
|
-
for (const [s,
|
|
128
|
-
t(`p.${s}`,
|
|
129
|
-
for (const [s,
|
|
130
|
-
t(`g.${s}`,
|
|
127
|
+
for (const [s, r] of Object.entries(g(this.params)))
|
|
128
|
+
t(`p.${s}`, r);
|
|
129
|
+
for (const [s, r] of Object.entries(g(this.globals)))
|
|
130
|
+
t(`g.${s}`, r);
|
|
131
131
|
if (e.pathname.endsWith("embed.html") || (e.pathname = e.pathname.replace(/\/?$/, "/embed.html")), this.maskSelector) {
|
|
132
132
|
t("mask", "1");
|
|
133
133
|
const s = [
|
|
@@ -138,8 +138,8 @@ class r extends z {
|
|
|
138
138
|
["maskDrift", this.maskDrift],
|
|
139
139
|
["maskPad", this.maskPad]
|
|
140
140
|
];
|
|
141
|
-
for (const [
|
|
142
|
-
|
|
141
|
+
for (const [r, n] of s)
|
|
142
|
+
n !== void 0 && t(r, n);
|
|
143
143
|
}
|
|
144
144
|
return t("controls", "0"), e.toString();
|
|
145
145
|
}
|
|
@@ -159,16 +159,16 @@ Tracked upstream as Brad-Frost-Web/bf-visualzzz#71. Set the visual with \`anim\`
|
|
|
159
159
|
* default marker". Anything else is taken as the consumer's own selector.
|
|
160
160
|
*/
|
|
161
161
|
get maskSelector() {
|
|
162
|
-
return this.mask === void 0 || this.mask === null || this.mask === "false" ? null : this.mask === "" || this.mask === "true" ?
|
|
162
|
+
return this.mask === void 0 || this.mask === null || this.mask === "false" ? null : this.mask === "" || this.mask === "true" ? A : this.mask;
|
|
163
163
|
}
|
|
164
164
|
render() {
|
|
165
|
-
const e =
|
|
165
|
+
const e = P.includes(this.ratio) ? this.ratio : "16:9", t = !this.label, s = this.componentClassNames("ed-r-visualzzz", {
|
|
166
166
|
[`ed-r-visualzzz--ratio-${e.replace(":", "-")}`]: e !== "fill",
|
|
167
167
|
"ed-r-visualzzz--fill": e === "fill",
|
|
168
168
|
"ed-r-visualzzz--decorative": t && !this.interactive
|
|
169
169
|
});
|
|
170
|
-
return
|
|
171
|
-
<div class="${s}" part="frame" aria-hidden="${
|
|
170
|
+
return c`
|
|
171
|
+
<div class="${s}" part="frame" aria-hidden="${f(t ? "true" : void 0)}">
|
|
172
172
|
${this._reducedMotion ? this.renderStill() : this.renderLive(t)}
|
|
173
173
|
</div>
|
|
174
174
|
`;
|
|
@@ -180,96 +180,96 @@ Tracked upstream as Brad-Frost-Web/bf-visualzzz#71. Set the visual with \`anim\`
|
|
|
180
180
|
* an animation someone asked not to see.
|
|
181
181
|
*/
|
|
182
182
|
renderStill() {
|
|
183
|
-
return this.slotEmpty("fallback") ? this.posterSrc ?
|
|
183
|
+
return this.slotEmpty("fallback") ? this.posterSrc ? c`<img
|
|
184
184
|
class="ed-r-visualzzz__poster"
|
|
185
185
|
part="poster"
|
|
186
186
|
src="${this.posterSrc}"
|
|
187
187
|
alt="${this.posterAlt ?? ""}"
|
|
188
|
-
/>` :
|
|
188
|
+
/>` : c`<slot name="fallback"></slot>` : c`<slot name="fallback"></slot>`;
|
|
189
189
|
}
|
|
190
190
|
renderLive(e) {
|
|
191
|
-
return this._seen ?
|
|
191
|
+
return this._seen ? c`<iframe
|
|
192
192
|
class="ed-r-visualzzz__frame"
|
|
193
193
|
part="iframe"
|
|
194
194
|
src="${this.embedUrl}"
|
|
195
|
-
title="${
|
|
195
|
+
title="${f(this.label)}"
|
|
196
196
|
loading="lazy"
|
|
197
|
-
tabindex="${
|
|
198
|
-
></iframe>` : this.posterSrc ?
|
|
197
|
+
tabindex="${f(e ? "-1" : void 0)}"
|
|
198
|
+
></iframe>` : this.posterSrc ? c`<img
|
|
199
199
|
class="ed-r-visualzzz__poster"
|
|
200
200
|
part="poster"
|
|
201
201
|
src="${this.posterSrc}"
|
|
202
202
|
alt="${this.posterAlt ?? ""}"
|
|
203
|
-
/>` :
|
|
203
|
+
/>` : E;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
],
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
],
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
],
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
],
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
],
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
],
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
],
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
],
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
],
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
],
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
],
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
],
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
],
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
],
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
],
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
],
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
],
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
],
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
],
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
],
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
],
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
],
|
|
272
|
-
customElements.get("ed-r-visualzzz") === void 0 && customElements.define("ed-r-visualzzz",
|
|
206
|
+
a([
|
|
207
|
+
o()
|
|
208
|
+
], i.prototype, "anim");
|
|
209
|
+
a([
|
|
210
|
+
o({ type: Object })
|
|
211
|
+
], i.prototype, "params");
|
|
212
|
+
a([
|
|
213
|
+
o({ type: Object })
|
|
214
|
+
], i.prototype, "globals");
|
|
215
|
+
a([
|
|
216
|
+
o()
|
|
217
|
+
], i.prototype, "configUrl");
|
|
218
|
+
a([
|
|
219
|
+
o()
|
|
220
|
+
], i.prototype, "theme");
|
|
221
|
+
a([
|
|
222
|
+
o({ type: Boolean })
|
|
223
|
+
], i.prototype, "dark");
|
|
224
|
+
a([
|
|
225
|
+
o({ type: Number })
|
|
226
|
+
], i.prototype, "speed");
|
|
227
|
+
a([
|
|
228
|
+
o({ reflect: !0 })
|
|
229
|
+
], i.prototype, "ratio");
|
|
230
|
+
a([
|
|
231
|
+
o()
|
|
232
|
+
], i.prototype, "posterSrc");
|
|
233
|
+
a([
|
|
234
|
+
o()
|
|
235
|
+
], i.prototype, "posterAlt");
|
|
236
|
+
a([
|
|
237
|
+
o()
|
|
238
|
+
], i.prototype, "label");
|
|
239
|
+
a([
|
|
240
|
+
o({ type: Boolean })
|
|
241
|
+
], i.prototype, "interactive");
|
|
242
|
+
a([
|
|
243
|
+
o()
|
|
244
|
+
], i.prototype, "mask");
|
|
245
|
+
a([
|
|
246
|
+
o({ type: Number })
|
|
247
|
+
], i.prototype, "maskFeather");
|
|
248
|
+
a([
|
|
249
|
+
o({ type: Number })
|
|
250
|
+
], i.prototype, "maskCorner");
|
|
251
|
+
a([
|
|
252
|
+
o({ type: Number })
|
|
253
|
+
], i.prototype, "maskWobble");
|
|
254
|
+
a([
|
|
255
|
+
o({ type: Number })
|
|
256
|
+
], i.prototype, "maskLobes");
|
|
257
|
+
a([
|
|
258
|
+
o({ type: Number })
|
|
259
|
+
], i.prototype, "maskDrift");
|
|
260
|
+
a([
|
|
261
|
+
o({ type: Number })
|
|
262
|
+
], i.prototype, "maskPad");
|
|
263
|
+
a([
|
|
264
|
+
o()
|
|
265
|
+
], i.prototype, "baseUrl");
|
|
266
|
+
a([
|
|
267
|
+
w()
|
|
268
|
+
], i.prototype, "_reducedMotion");
|
|
269
|
+
a([
|
|
270
|
+
w()
|
|
271
|
+
], i.prototype, "_seen");
|
|
272
|
+
customElements.get("ed-r-visualzzz") === void 0 && customElements.define("ed-r-visualzzz", i);
|
|
273
273
|
export {
|
|
274
|
-
|
|
274
|
+
i as EdRVisualzzz
|
|
275
275
|
};
|
package/package.json
CHANGED
|
@@ -280,6 +280,8 @@ export declare class EdRVisualzzz extends EdElement {
|
|
|
280
280
|
private _maskMutations?;
|
|
281
281
|
private _maskScheduled;
|
|
282
282
|
private _maskReady;
|
|
283
|
+
private _maskLastPayload?;
|
|
284
|
+
private _maskDriftPoll?;
|
|
283
285
|
/**
|
|
284
286
|
* Measure the marked elements and hand the embed their boxes.
|
|
285
287
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visualzzz.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/visualzzz/visualzzz.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AAQzF,QAAA,MAAM,MAAM,uEAAwE,CAAC;AAErF,KAAK,cAAc,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAyC5C,sEAAsE;AACtE,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAoB1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoHG;AACH,qBAAa,YAAa,SAAQ,SAAS;IACzC,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;OAKG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IAEH,MAAM,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;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,CAAC,SAAS;IAUjB,OAAO,CAAC,aAAa,CAInB;IAEF;;;;;OAKG;IACH,OAAO,CAAC,eAAe,CAMrB;IAEF,OAAO,CAAC,UAAU;IA4ClB,OAAO,CAAC,SAAS;IAkBjB;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CAkFrB;IAED,0EAA0E;IAC1E,OAAO,CAAC,YAAY,CAAqB;IAEzC,OAAO,CAAC,YAAY;IAYpB;;;;;;;OAOG;IACH,IAAI,YAAY,IAAI,MAAM,GAAG,IAAI,CAKhC;IAED,MAAM;IAiBN;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,UAAU;CAuBnB;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { EdElement as
|
|
2
|
-
import { unsafeCSS as
|
|
3
|
-
import { property as a, state as
|
|
4
|
-
import { ifDefined as
|
|
5
|
-
const
|
|
6
|
-
var
|
|
7
|
-
for (var
|
|
8
|
-
(
|
|
9
|
-
return
|
|
1
|
+
import { EdElement as S } from "@brad-frost-web/eddie-web-components/components/EdElement.js";
|
|
2
|
+
import { unsafeCSS as L, html as c, nothing as R } from "lit";
|
|
3
|
+
import { property as a, state as w } from "lit/decorators.js";
|
|
4
|
+
import { ifDefined as f } from "lit/directives/if-defined.js";
|
|
5
|
+
const E = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}:host([ratio=fill]){width:100%;height:100%}.ed-r-visualzzz{position:relative;isolation:isolate;overflow:hidden;background:var(--ed-theme-color-background-brand)}.ed-r-visualzzz__frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}.ed-r-visualzzz__poster{display:block;width:100%;height:100%;object-fit:cover}.ed-r-visualzzz ::slotted(*){position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}.ed-r-visualzzz--decorative{pointer-events:none}.ed-r-visualzzz--ratio-16-9{aspect-ratio:16/9}.ed-r-visualzzz--ratio-21-9{aspect-ratio:21/9}.ed-r-visualzzz--ratio-4-3{aspect-ratio:4/3}.ed-r-visualzzz--ratio-3-2{aspect-ratio:3/2}.ed-r-visualzzz--ratio-1-1{aspect-ratio:1/1}.ed-r-visualzzz--ratio-4-5{aspect-ratio:4/5}.ed-r-visualzzz--ratio-9-16{aspect-ratio:9/16}.ed-r-visualzzz--fill{width:100%;height:100%}';
|
|
6
|
+
var U = Object.defineProperty, o = (h, e, t, s) => {
|
|
7
|
+
for (var r = void 0, n = h.length - 1, l; n >= 0; n--)
|
|
8
|
+
(l = h[n]) && (r = l(e, t, r) || r);
|
|
9
|
+
return r && U(e, t, r), r;
|
|
10
10
|
};
|
|
11
|
-
const
|
|
11
|
+
const C = "https://visualzzz.bradfrost.com/", P = ["16:9", "21:9", "4:3", "3:2", "1:1", "4:5", "9:16", "fill"], A = "[data-visualzzz-avoid]", m = 200, F = {
|
|
12
12
|
speed: "g.globalSpeed",
|
|
13
13
|
aspect: "g.aspectRatio"
|
|
14
|
-
},
|
|
14
|
+
}, O = [
|
|
15
15
|
"textAxes",
|
|
16
16
|
"textAxisAnim",
|
|
17
17
|
"textSource",
|
|
18
18
|
"quoteAttrColor",
|
|
19
19
|
"quoteMarks"
|
|
20
20
|
];
|
|
21
|
-
function
|
|
22
|
-
if (!
|
|
23
|
-
if (typeof
|
|
24
|
-
if (typeof
|
|
21
|
+
function g(h) {
|
|
22
|
+
if (!h) return {};
|
|
23
|
+
if (typeof h == "object") return h;
|
|
24
|
+
if (typeof h == "string")
|
|
25
25
|
try {
|
|
26
|
-
const e = JSON.parse(
|
|
26
|
+
const e = JSON.parse(h);
|
|
27
27
|
return e && typeof e == "object" ? e : {};
|
|
28
28
|
} catch {
|
|
29
29
|
return {};
|
|
30
30
|
}
|
|
31
31
|
return {};
|
|
32
32
|
}
|
|
33
|
-
class
|
|
33
|
+
class i extends S {
|
|
34
34
|
constructor() {
|
|
35
|
-
super(...arguments), this.ratio = "16:9", this.interactive = !1, this.baseUrl =
|
|
35
|
+
super(...arguments), this.ratio = "16:9", this.interactive = !1, this.baseUrl = C, this._reducedMotion = !1, this._seen = !1, this._onMotionChange = (e) => {
|
|
36
36
|
this._reducedMotion = e.matches;
|
|
37
37
|
}, this._maskScheduled = !1, this._maskReady = !1, this._readMask = () => {
|
|
38
38
|
this._maskScheduled = !1;
|
|
39
39
|
const e = this._maskFrame, t = this._maskSelectorInUse;
|
|
40
40
|
if (!e?.contentWindow || !t || !this._maskReady) return;
|
|
41
|
-
const s = e.getBoundingClientRect(),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
const s = e.getBoundingClientRect(), r = e.clientWidth ? s.width / e.clientWidth : 1, n = e.clientHeight ? s.height / e.clientHeight : 1;
|
|
42
|
+
if (!r || !n) return;
|
|
43
|
+
const l = s.width / r, k = s.height / n, _ = [];
|
|
44
|
+
for (const M of document.querySelectorAll(t))
|
|
45
|
+
for (const d of this._rectsFor(M)) {
|
|
46
|
+
if (d.width <= 0 || d.height <= 0) continue;
|
|
47
|
+
const u = (d.left - s.left) / r, p = (d.top - s.top) / n, b = d.width / r, y = d.height / n;
|
|
48
|
+
p + y < -m || p > k + m || u + b < -m || u > l + m || _.push({ x: u, y: p, w: b, h: y });
|
|
47
49
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
new URL(this.baseUrl).origin
|
|
58
|
-
);
|
|
50
|
+
const z = {
|
|
51
|
+
type: "visualzzz:mask",
|
|
52
|
+
v: 1,
|
|
53
|
+
rects: _,
|
|
54
|
+
vw: l,
|
|
55
|
+
vh: k,
|
|
56
|
+
dpr: window.devicePixelRatio || 1
|
|
57
|
+
}, v = JSON.stringify(z);
|
|
58
|
+
v !== this._maskLastPayload && (this._maskLastPayload = v, e.contentWindow.postMessage(z, new URL(this.baseUrl).origin));
|
|
59
59
|
}, this._scheduleMask = () => {
|
|
60
60
|
this._maskScheduled || (this._maskScheduled = !0, requestAnimationFrame(this._readMask));
|
|
61
61
|
}, this._onEmbedMessage = (e) => {
|
|
@@ -63,7 +63,7 @@ class r extends z {
|
|
|
63
63
|
}, this._warnedDrops = /* @__PURE__ */ new Set();
|
|
64
64
|
}
|
|
65
65
|
static get styles() {
|
|
66
|
-
return
|
|
66
|
+
return L(E);
|
|
67
67
|
}
|
|
68
68
|
connectedCallback() {
|
|
69
69
|
if (super.connectedCallback(), typeof window < "u" && window.matchMedia && (this._motionQuery = window.matchMedia("(prefers-reduced-motion: reduce)"), this._reducedMotion = this._motionQuery.matches, this._motionQuery.addEventListener("change", this._onMotionChange)), typeof IntersectionObserver > "u") {
|
|
@@ -104,11 +104,11 @@ class r extends z {
|
|
|
104
104
|
childList: !0,
|
|
105
105
|
subtree: !0,
|
|
106
106
|
characterData: !0
|
|
107
|
-
}), document.fonts?.ready?.then(this._scheduleMask), this._scheduleMask();
|
|
107
|
+
}), document.fonts?.ready?.then(this._scheduleMask), this._maskDriftPoll = setInterval(this._scheduleMask, 300), this._scheduleMask();
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
_stopMask() {
|
|
111
|
-
this._maskFrame && (window.removeEventListener("message", this._onEmbedMessage), window.removeEventListener("scroll", this._scheduleMask), window.removeEventListener("resize", this._scheduleMask), this._maskFrame.removeEventListener("load", this._scheduleMask), this._maskResize?.disconnect(), this._maskMutations?.disconnect(), this._maskResize = void 0, this._maskMutations = void 0, this._maskFrame = void 0, this._maskSelectorInUse = void 0, this._maskReady = !1);
|
|
111
|
+
this._maskFrame && (window.removeEventListener("message", this._onEmbedMessage), window.removeEventListener("scroll", this._scheduleMask), window.removeEventListener("resize", this._scheduleMask), this._maskFrame.removeEventListener("load", this._scheduleMask), this._maskResize?.disconnect(), this._maskMutations?.disconnect(), this._maskDriftPoll !== void 0 && clearInterval(this._maskDriftPoll), this._maskDriftPoll = void 0, this._maskResize = void 0, this._maskMutations = void 0, this._maskFrame = void 0, this._maskSelectorInUse = void 0, this._maskReady = !1, this._maskLastPayload = void 0);
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
114
|
* Build the embed URL: share-URL baseline, then structural props, then the
|
|
@@ -119,17 +119,17 @@ class r extends z {
|
|
|
119
119
|
if (this.configUrl) {
|
|
120
120
|
const s = new URL(this.baseUrl);
|
|
121
121
|
e.protocol = s.protocol, e.host = s.host, e.pathname = s.pathname;
|
|
122
|
-
for (const [
|
|
123
|
-
e.searchParams.has(
|
|
124
|
-
const
|
|
125
|
-
|
|
122
|
+
for (const [n, l] of Object.entries(F))
|
|
123
|
+
e.searchParams.has(n) && !e.searchParams.has(l) && e.searchParams.set(l, e.searchParams.get(n));
|
|
124
|
+
const r = O.filter((n) => e.searchParams.has(n));
|
|
125
|
+
r.length && this._warnDropped(r);
|
|
126
126
|
}
|
|
127
|
-
const t = (s,
|
|
127
|
+
const t = (s, r) => e.searchParams.set(s, String(r));
|
|
128
128
|
this.anim && t("anim", this.anim), this.theme && t("theme", this.theme), this.dark !== void 0 && t("dark", this.dark ? "1" : "0"), this.speed !== void 0 && (t("speed", this.speed), t("g.globalSpeed", this.speed));
|
|
129
|
-
for (const [s,
|
|
130
|
-
t(`p.${s}`,
|
|
131
|
-
for (const [s,
|
|
132
|
-
t(`g.${s}`,
|
|
129
|
+
for (const [s, r] of Object.entries(g(this.params)))
|
|
130
|
+
t(`p.${s}`, r);
|
|
131
|
+
for (const [s, r] of Object.entries(g(this.globals)))
|
|
132
|
+
t(`g.${s}`, r);
|
|
133
133
|
if (e.pathname.endsWith("embed.html") || (e.pathname = e.pathname.replace(/\/?$/, "/embed.html")), this.maskSelector) {
|
|
134
134
|
t("mask", "1");
|
|
135
135
|
const s = [
|
|
@@ -140,8 +140,8 @@ class r extends z {
|
|
|
140
140
|
["maskDrift", this.maskDrift],
|
|
141
141
|
["maskPad", this.maskPad]
|
|
142
142
|
];
|
|
143
|
-
for (const [
|
|
144
|
-
|
|
143
|
+
for (const [r, n] of s)
|
|
144
|
+
n !== void 0 && t(r, n);
|
|
145
145
|
}
|
|
146
146
|
return t("controls", "0"), e.toString();
|
|
147
147
|
}
|
|
@@ -161,16 +161,16 @@ Tracked upstream as Brad-Frost-Web/bf-visualzzz#71. Set the visual with \`anim\`
|
|
|
161
161
|
* default marker". Anything else is taken as the consumer's own selector.
|
|
162
162
|
*/
|
|
163
163
|
get maskSelector() {
|
|
164
|
-
return this.mask === void 0 || this.mask === null || this.mask === "false" ? null : this.mask === "" || this.mask === "true" ?
|
|
164
|
+
return this.mask === void 0 || this.mask === null || this.mask === "false" ? null : this.mask === "" || this.mask === "true" ? A : this.mask;
|
|
165
165
|
}
|
|
166
166
|
render() {
|
|
167
|
-
const e =
|
|
167
|
+
const e = P.includes(this.ratio) ? this.ratio : "16:9", t = !this.label, s = this.componentClassNames("ed-r-visualzzz", {
|
|
168
168
|
[`ed-r-visualzzz--ratio-${e.replace(":", "-")}`]: e !== "fill",
|
|
169
169
|
"ed-r-visualzzz--fill": e === "fill",
|
|
170
170
|
"ed-r-visualzzz--decorative": t && !this.interactive
|
|
171
171
|
});
|
|
172
|
-
return
|
|
173
|
-
<div class="${s}" part="frame" aria-hidden="${
|
|
172
|
+
return c`
|
|
173
|
+
<div class="${s}" part="frame" aria-hidden="${f(t ? "true" : void 0)}">
|
|
174
174
|
${this._reducedMotion ? this.renderStill() : this.renderLive(t)}
|
|
175
175
|
</div>
|
|
176
176
|
`;
|
|
@@ -182,96 +182,96 @@ Tracked upstream as Brad-Frost-Web/bf-visualzzz#71. Set the visual with \`anim\`
|
|
|
182
182
|
* an animation someone asked not to see.
|
|
183
183
|
*/
|
|
184
184
|
renderStill() {
|
|
185
|
-
return this.slotEmpty("fallback") ? this.posterSrc ?
|
|
185
|
+
return this.slotEmpty("fallback") ? this.posterSrc ? c`<img
|
|
186
186
|
class="ed-r-visualzzz__poster"
|
|
187
187
|
part="poster"
|
|
188
188
|
src="${this.posterSrc}"
|
|
189
189
|
alt="${this.posterAlt ?? ""}"
|
|
190
|
-
/>` :
|
|
190
|
+
/>` : c`<slot name="fallback"></slot>` : c`<slot name="fallback"></slot>`;
|
|
191
191
|
}
|
|
192
192
|
renderLive(e) {
|
|
193
|
-
return this._seen ?
|
|
193
|
+
return this._seen ? c`<iframe
|
|
194
194
|
class="ed-r-visualzzz__frame"
|
|
195
195
|
part="iframe"
|
|
196
196
|
src="${this.embedUrl}"
|
|
197
|
-
title="${
|
|
197
|
+
title="${f(this.label)}"
|
|
198
198
|
loading="lazy"
|
|
199
|
-
tabindex="${
|
|
200
|
-
></iframe>` : this.posterSrc ?
|
|
199
|
+
tabindex="${f(e ? "-1" : void 0)}"
|
|
200
|
+
></iframe>` : this.posterSrc ? c`<img
|
|
201
201
|
class="ed-r-visualzzz__poster"
|
|
202
202
|
part="poster"
|
|
203
203
|
src="${this.posterSrc}"
|
|
204
204
|
alt="${this.posterAlt ?? ""}"
|
|
205
|
-
/>` :
|
|
205
|
+
/>` : R;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
o([
|
|
209
209
|
a()
|
|
210
|
-
],
|
|
211
|
-
|
|
210
|
+
], i.prototype, "anim");
|
|
211
|
+
o([
|
|
212
212
|
a({ type: Object })
|
|
213
|
-
],
|
|
214
|
-
|
|
213
|
+
], i.prototype, "params");
|
|
214
|
+
o([
|
|
215
215
|
a({ type: Object })
|
|
216
|
-
],
|
|
217
|
-
|
|
216
|
+
], i.prototype, "globals");
|
|
217
|
+
o([
|
|
218
218
|
a()
|
|
219
|
-
],
|
|
220
|
-
|
|
219
|
+
], i.prototype, "configUrl");
|
|
220
|
+
o([
|
|
221
221
|
a()
|
|
222
|
-
],
|
|
223
|
-
|
|
222
|
+
], i.prototype, "theme");
|
|
223
|
+
o([
|
|
224
224
|
a({ type: Boolean })
|
|
225
|
-
],
|
|
226
|
-
|
|
225
|
+
], i.prototype, "dark");
|
|
226
|
+
o([
|
|
227
227
|
a({ type: Number })
|
|
228
|
-
],
|
|
229
|
-
|
|
228
|
+
], i.prototype, "speed");
|
|
229
|
+
o([
|
|
230
230
|
a({ reflect: !0 })
|
|
231
|
-
],
|
|
232
|
-
|
|
231
|
+
], i.prototype, "ratio");
|
|
232
|
+
o([
|
|
233
233
|
a()
|
|
234
|
-
],
|
|
235
|
-
|
|
234
|
+
], i.prototype, "posterSrc");
|
|
235
|
+
o([
|
|
236
236
|
a()
|
|
237
|
-
],
|
|
238
|
-
|
|
237
|
+
], i.prototype, "posterAlt");
|
|
238
|
+
o([
|
|
239
239
|
a()
|
|
240
|
-
],
|
|
241
|
-
|
|
240
|
+
], i.prototype, "label");
|
|
241
|
+
o([
|
|
242
242
|
a({ type: Boolean })
|
|
243
|
-
],
|
|
244
|
-
|
|
243
|
+
], i.prototype, "interactive");
|
|
244
|
+
o([
|
|
245
245
|
a()
|
|
246
|
-
],
|
|
247
|
-
|
|
246
|
+
], i.prototype, "mask");
|
|
247
|
+
o([
|
|
248
248
|
a({ type: Number })
|
|
249
|
-
],
|
|
250
|
-
|
|
249
|
+
], i.prototype, "maskFeather");
|
|
250
|
+
o([
|
|
251
251
|
a({ type: Number })
|
|
252
|
-
],
|
|
253
|
-
|
|
252
|
+
], i.prototype, "maskCorner");
|
|
253
|
+
o([
|
|
254
254
|
a({ type: Number })
|
|
255
|
-
],
|
|
256
|
-
|
|
255
|
+
], i.prototype, "maskWobble");
|
|
256
|
+
o([
|
|
257
257
|
a({ type: Number })
|
|
258
|
-
],
|
|
259
|
-
|
|
258
|
+
], i.prototype, "maskLobes");
|
|
259
|
+
o([
|
|
260
260
|
a({ type: Number })
|
|
261
|
-
],
|
|
262
|
-
|
|
261
|
+
], i.prototype, "maskDrift");
|
|
262
|
+
o([
|
|
263
263
|
a({ type: Number })
|
|
264
|
-
],
|
|
265
|
-
|
|
264
|
+
], i.prototype, "maskPad");
|
|
265
|
+
o([
|
|
266
266
|
a()
|
|
267
|
-
],
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
],
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
],
|
|
274
|
-
customElements.get("ed-r-visualzzz") === void 0 && customElements.define("ed-r-visualzzz",
|
|
267
|
+
], i.prototype, "baseUrl");
|
|
268
|
+
o([
|
|
269
|
+
w()
|
|
270
|
+
], i.prototype, "_reducedMotion");
|
|
271
|
+
o([
|
|
272
|
+
w()
|
|
273
|
+
], i.prototype, "_seen");
|
|
274
|
+
customElements.get("ed-r-visualzzz") === void 0 && customElements.define("ed-r-visualzzz", i);
|
|
275
275
|
export {
|
|
276
|
-
|
|
276
|
+
i as EdRVisualzzz
|
|
277
277
|
};
|