@braccato/core 1.20.1 → 1.21.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.
- package/README.md +40 -37
- package/dist/README.md +40 -37
- package/dist/constants.d.ts +10 -0
- package/dist/constants.js +10 -0
- package/dist/engine/animationConfig.d.ts +0 -5
- package/dist/engine/animationConfig.js +0 -5
- package/dist/engine/animationTiming.d.ts +2 -1
- package/dist/engine/animationTiming.js +3 -2
- package/dist/engine/contextSweep.d.ts +10 -0
- package/dist/engine/contextSweep.js +102 -0
- package/dist/engine/culling.d.ts +11 -1
- package/dist/engine/culling.js +97 -24
- package/dist/engine/decorationSlides.d.ts +1 -1
- package/dist/engine/decorationSlides.js +13 -4
- package/dist/engine/elementMotion.d.ts +17 -0
- package/dist/engine/elementMotion.js +98 -0
- package/dist/engine/glow.js +1 -1
- package/dist/engine/instance.d.ts +7 -3
- package/dist/engine/instance.js +6 -4
- package/dist/engine/letterPlans.d.ts +0 -11
- package/dist/engine/letterPlans.js +0 -41
- package/dist/engine/lineAnimationState.js +1 -4
- package/dist/engine/lineAnimations.d.ts +1 -1
- package/dist/engine/lineAnimations.js +5 -24
- package/dist/engine/lineLifecycle.js +1 -1
- package/dist/engine/lineScroll.d.ts +5 -6
- package/dist/engine/lineScroll.js +36 -26
- package/dist/engine/lineScrollStyle.d.ts +8 -3
- package/dist/engine/lineScrollStyle.js +18 -4
- package/dist/engine/motionCurves.d.ts +19 -0
- package/dist/engine/motionCurves.js +85 -0
- package/dist/engine/renderedLines.d.ts +1 -2
- package/dist/engine/renderedLines.js +10 -19
- package/dist/engine/sweepPlans.d.ts +36 -0
- package/dist/engine/sweepPlans.js +59 -0
- package/dist/engine/tick.d.ts +4 -1
- package/dist/engine/tick.js +40 -10
- package/dist/engine/wavePool.d.ts +0 -1
- package/dist/engine/wordAnimations.d.ts +1 -5
- package/dist/engine/wordAnimations.js +88 -66
- package/dist/imageHighlights.d.ts +0 -11
- package/dist/imageHighlights.js +2 -48
- package/dist/inject.d.ts +41 -2
- package/dist/inject.js +72 -27
- package/dist/renderer.js +3 -2
- package/dist/styles/image-highlights.css +1 -59
- package/dist/styles/lyrics.css +128 -57
- package/dist/view.d.ts +1 -1
- package/dist/view.js +6 -5
- package/package.json +1 -1
- package/dist/engine/highlightKeyframes.d.ts +0 -8
- package/dist/engine/highlightKeyframes.js +0 -37
package/README.md
CHANGED
|
@@ -239,9 +239,12 @@ resuming autoscroll and relayout can still reposition the view.
|
|
|
239
239
|
/* blyrics-line-scroll-duration = 750ms; */
|
|
240
240
|
```
|
|
241
241
|
|
|
242
|
-
New groups scroll immediately.
|
|
243
|
-
|
|
244
|
-
|
|
242
|
+
New groups scroll immediately. A line still moving from an earlier scroll keeps that motion: what
|
|
243
|
+
is left of it and the new scroll are added together into one `translate` animation, so their
|
|
244
|
+
durations do not block the next scroll and the browser can run the motion off the main thread.
|
|
245
|
+
Decoration slides join the same animation. While a line scrolls or slides, that animation replaces
|
|
246
|
+
any `translate` a theme sets on the line itself. The line-scroll duration knobs control visual
|
|
247
|
+
motion. The legacy `--blyrics-lyric-scroll-duration` variable and its
|
|
245
248
|
`--blyrics-lyric-transition-duration` alias have been removed, along with the container transform
|
|
246
249
|
transition. `blyrics-queue-scroll-ms` is ignored, and no timing equation needs balancing.
|
|
247
250
|
Missing or invalid line durations fall back to an internal `750ms` duration; nonpositive resolved
|
|
@@ -281,6 +284,27 @@ The ones a theme reaches for first. `variables.css` declares the rest.
|
|
|
281
284
|
`line-height`. Every word is given the glow, so a theme that wants it to mean something selects on
|
|
282
285
|
`data-long-word`, which the module sets on any part held past `blyrics-long-word-threshold`.
|
|
283
286
|
|
|
287
|
+
The sweep and the glow run off the main thread. Each word, or each letter of a word that wraps, holds
|
|
288
|
+
a fixed soft-edged mask over a copy of its text in `--blyrics-lyric-active-color`, and the two slide
|
|
289
|
+
against each other so only the edge moves. A word in a joining script, or one mixing directions, is
|
|
290
|
+
drawn from copies of its line placed over each box it breaks into. The swipe stops
|
|
291
|
+
(`--blyrics-highlight-swipe-*`) set where the edge starts and ends, and the soft edge is as wide as the
|
|
292
|
+
swipe's last start and end stops are apart. The glow is two copies of the word inside the same mask,
|
|
293
|
+
with a `text-shadow` of `--blyrics-highlight-glow-radius-from` and a tighter one in
|
|
294
|
+
`--blyrics-glow-color`, crossfaded as it fades; it starts where the edge reaches the word or letter,
|
|
295
|
+
and the `--blyrics-highlight-glow-filter-*` overrides are not read.
|
|
296
|
+
`--lyric-transition-amount-*` no longer animate, so a theme cannot draw its own sweep from them.
|
|
297
|
+
|
|
298
|
+
A word longer than twice `blyrics-long-word-wrap-threshold` (default `10` characters) gets
|
|
299
|
+
`blyrics-word-group-long` on its group. Its syllables become `display: inline` and take `<wbr>`
|
|
300
|
+
break points, so a word like `Oh-oh-oh-oh-oh-oh-oh-oh` wraps instead of overflowing. Browsers ignore
|
|
301
|
+
`transform` on inline boxes, so a per-syllable animation and the word wobble both stop on those
|
|
302
|
+
words. Raising `blyrics-long-word-wrap-threshold` (say to `1000`) brings both back, but then a word
|
|
303
|
+
wider than the view overflows instead of wrapping. To keep the wrap, set
|
|
304
|
+
`.blyrics-word-group-long .blyrics--word:not(.blyrics-bidi-sensitive *)` back to `display: inline-block`.
|
|
305
|
+
The syllables still wrap between each other and per-syllable animations return. The wobble stays off,
|
|
306
|
+
since it moves the group and the group is still inline.
|
|
307
|
+
|
|
284
308
|
The instrumental ripple is the one place a property carries geometry rather than a value.
|
|
285
309
|
`--blyrics-instrumental-wave-path-high` and `--blyrics-instrumental-wave-path-low` are the two shapes
|
|
286
310
|
it morphs between, each a `path()`, and a theme redrawing them is how the wave changes amplitude or
|
|
@@ -333,8 +357,8 @@ swells each letter with a transient scale at the crest.
|
|
|
333
357
|
}
|
|
334
358
|
```
|
|
335
359
|
|
|
336
|
-
The split multiplies the DOM per character
|
|
337
|
-
does not want the cost turns it off with `/* blyrics-letter-wave = false; */`. `blyrics-letter-wave`
|
|
360
|
+
The split multiplies the DOM per character, three times over with the glow's two copies, so a theme
|
|
361
|
+
that does not want the cost turns it off with `/* blyrics-letter-wave = false; */`. `blyrics-letter-wave`
|
|
338
362
|
reloads the lines when it changes, the way every build-time setting does.
|
|
339
363
|
|
|
340
364
|
### Word state
|
|
@@ -405,6 +429,7 @@ refactor. Import them from `@braccato/core/constants` instead of typing them out
|
|
|
405
429
|
| `BACKGROUND_LYRIC_CLASS` | `blyrics-background-lyric` | A background vocal, sung over the line it answers. |
|
|
406
430
|
| `USER_SCROLLING_CLASS` | `blyrics-user-scrolling` | Set while a reader has scrolled away and autoscroll waits. |
|
|
407
431
|
| `TRANSLATED_LYRICS_CLASS` | `blyrics--translated` | A translation hung off a line that was already built. |
|
|
432
|
+
| `LONG_WORD_GROUP_CLASS` | `blyrics-word-group-long` | A word longer than twice `blyrics-long-word-wrap-threshold`. Its syllables go inline so it can wrap, and browsers ignore `transform` on inline boxes. |
|
|
408
433
|
| `EXPLICIT_WORD_CLASS` | `blyrics-explicit` | A word the lyrics flag as explicit. Unstyled unless a theme styles it. |
|
|
409
434
|
| `CREDITS_CLASS` | `blyrics-credits` | The songwriter credits after the last line. |
|
|
410
435
|
| `CUSTOM_THEME_STYLE_ID` | `blyrics-custom-style` | The id of the `<style>` the theme lands in. |
|
|
@@ -417,7 +442,7 @@ them out and you get lines that are in the document and unstyled, rather than li
|
|
|
417
442
|
| File | What it carries |
|
|
418
443
|
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
419
444
|
| `@braccato/core/styles/variables.css` | Every `--blyrics-*` default. It goes first, because the others read from it. |
|
|
420
|
-
| `@braccato/core/styles/lyrics.css` | The container, the lines, the words and the sweep
|
|
445
|
+
| `@braccato/core/styles/lyrics.css` | The container, the lines, the words and the sweep. |
|
|
421
446
|
| `@braccato/core/styles/instrumental.css` | The waveform that fills a bar nobody sings over, and the animation that walks it. |
|
|
422
447
|
| `@braccato/core/styles/stage.css` | Placement for the stage layout, and nothing else. Only a renderer created with `layout: "stage"` needs it. |
|
|
423
448
|
|
|
@@ -587,43 +612,21 @@ loading regional CJK web fonts should set `--noto-sans-universal` on these eleme
|
|
|
587
612
|
They are unset by default; custom CSS that reads them directly should use
|
|
588
613
|
`var(--blyrics-font-family, var(--blyrics-default-font-family))` for the default stack.
|
|
589
614
|
|
|
590
|
-
### Theme-provided image
|
|
615
|
+
### Theme-provided instrumental image
|
|
591
616
|
|
|
592
|
-
|
|
617
|
+
A theme can paint the instrumental note with an image. Enable it in a theme comment:
|
|
593
618
|
|
|
594
619
|
```css
|
|
595
620
|
/* blyrics-image-highlights = true; */
|
|
596
621
|
.blyrics-container {
|
|
597
622
|
--blyrics-highlight-image: url("my-image.jpg");
|
|
598
|
-
--blyrics-image-glow-opacity-from: 0.5;
|
|
599
|
-
--blyrics-image-glow-opacity-to: 0;
|
|
600
623
|
}
|
|
601
624
|
```
|
|
602
625
|
|
|
603
|
-
Changing this setting requests a lyric rebuild through the existing `setTheme` return value.
|
|
604
|
-
|
|
605
|
-
the
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
and `dynamic-range-limit`; the core never opts into extra display brightness. Ordinary active
|
|
611
|
-
text color backs up the image fill, while the note keeps its original color path until its
|
|
612
|
-
SVG image loads. The note image reuses the original animated wave clip and fade group.
|
|
613
|
-
|
|
614
|
-
The glow layer is outside the paint's mask, avoiding clipped halos at word edges. Bidi-sensitive
|
|
615
|
-
runs and fragmented long words use a parallel inline text run for the glow, so the browser
|
|
616
|
-
reproduces the same ordering and wrapped fragments. Its reveal and visibility use the same
|
|
617
|
-
animation clock as the sharp text. No generated text or per-frame geometry reads are needed.
|
|
618
|
-
Joining-script word groups retain contextual joining by using whole-word sweeps instead of
|
|
619
|
-
inline-block letter waves, including when image highlights are disabled.
|
|
620
|
-
Forced colors suppress the image and halo in favor of system text colors.
|
|
621
|
-
|
|
622
|
-
For real-browser regression checks, build the package, serve the repository root and open
|
|
623
|
-
`tooling/browser/image-highlights.html`. Import `image-highlights-checks.js` from that page and
|
|
624
|
-
call `runImageHighlightChecks(testView)`. The default fixture uses an SDR image; a `theme` query
|
|
625
|
-
parameter can point at a consumer's HDR stylesheet for physical-display testing.
|
|
626
|
-
`runLetterInkChecks(testView)` in the same module checks that letter masks cover glyph overhang,
|
|
627
|
-
such as a `j`'s hook or an italic `f`, without moving any letter.
|
|
628
|
-
|
|
629
|
-
Words that mix RTL characters with LTR letters or numbers retain native text shaping instead of per-letter motion. Image glow, letter masks and letter motion retain their current paint during the line exit fade.
|
|
626
|
+
Changing this setting requests a lyric rebuild through the existing `setTheme` return value. The
|
|
627
|
+
image may be an SDR texture or an HDR gain-map asset. The theme owns HDR media queries and
|
|
628
|
+
`dynamic-range-limit`; the core never opts into extra display brightness. The note keeps its original
|
|
629
|
+
color path until its SVG image loads, reuses the original animated wave clip and fade group, and
|
|
630
|
+
forced colors fall back to system colors. Words no longer take an image fill.
|
|
631
|
+
|
|
632
|
+
Words that mix RTL characters with LTR letters or numbers retain native text shaping instead of per-letter motion.
|
package/dist/README.md
CHANGED
|
@@ -239,9 +239,12 @@ resuming autoscroll and relayout can still reposition the view.
|
|
|
239
239
|
/* blyrics-line-scroll-duration = 750ms; */
|
|
240
240
|
```
|
|
241
241
|
|
|
242
|
-
New groups scroll immediately.
|
|
243
|
-
|
|
244
|
-
|
|
242
|
+
New groups scroll immediately. A line still moving from an earlier scroll keeps that motion: what
|
|
243
|
+
is left of it and the new scroll are added together into one `translate` animation, so their
|
|
244
|
+
durations do not block the next scroll and the browser can run the motion off the main thread.
|
|
245
|
+
Decoration slides join the same animation. While a line scrolls or slides, that animation replaces
|
|
246
|
+
any `translate` a theme sets on the line itself. The line-scroll duration knobs control visual
|
|
247
|
+
motion. The legacy `--blyrics-lyric-scroll-duration` variable and its
|
|
245
248
|
`--blyrics-lyric-transition-duration` alias have been removed, along with the container transform
|
|
246
249
|
transition. `blyrics-queue-scroll-ms` is ignored, and no timing equation needs balancing.
|
|
247
250
|
Missing or invalid line durations fall back to an internal `750ms` duration; nonpositive resolved
|
|
@@ -281,6 +284,27 @@ The ones a theme reaches for first. `variables.css` declares the rest.
|
|
|
281
284
|
`line-height`. Every word is given the glow, so a theme that wants it to mean something selects on
|
|
282
285
|
`data-long-word`, which the module sets on any part held past `blyrics-long-word-threshold`.
|
|
283
286
|
|
|
287
|
+
The sweep and the glow run off the main thread. Each word, or each letter of a word that wraps, holds
|
|
288
|
+
a fixed soft-edged mask over a copy of its text in `--blyrics-lyric-active-color`, and the two slide
|
|
289
|
+
against each other so only the edge moves. A word in a joining script, or one mixing directions, is
|
|
290
|
+
drawn from copies of its line placed over each box it breaks into. The swipe stops
|
|
291
|
+
(`--blyrics-highlight-swipe-*`) set where the edge starts and ends, and the soft edge is as wide as the
|
|
292
|
+
swipe's last start and end stops are apart. The glow is two copies of the word inside the same mask,
|
|
293
|
+
with a `text-shadow` of `--blyrics-highlight-glow-radius-from` and a tighter one in
|
|
294
|
+
`--blyrics-glow-color`, crossfaded as it fades; it starts where the edge reaches the word or letter,
|
|
295
|
+
and the `--blyrics-highlight-glow-filter-*` overrides are not read.
|
|
296
|
+
`--lyric-transition-amount-*` no longer animate, so a theme cannot draw its own sweep from them.
|
|
297
|
+
|
|
298
|
+
A word longer than twice `blyrics-long-word-wrap-threshold` (default `10` characters) gets
|
|
299
|
+
`blyrics-word-group-long` on its group. Its syllables become `display: inline` and take `<wbr>`
|
|
300
|
+
break points, so a word like `Oh-oh-oh-oh-oh-oh-oh-oh` wraps instead of overflowing. Browsers ignore
|
|
301
|
+
`transform` on inline boxes, so a per-syllable animation and the word wobble both stop on those
|
|
302
|
+
words. Raising `blyrics-long-word-wrap-threshold` (say to `1000`) brings both back, but then a word
|
|
303
|
+
wider than the view overflows instead of wrapping. To keep the wrap, set
|
|
304
|
+
`.blyrics-word-group-long .blyrics--word:not(.blyrics-bidi-sensitive *)` back to `display: inline-block`.
|
|
305
|
+
The syllables still wrap between each other and per-syllable animations return. The wobble stays off,
|
|
306
|
+
since it moves the group and the group is still inline.
|
|
307
|
+
|
|
284
308
|
The instrumental ripple is the one place a property carries geometry rather than a value.
|
|
285
309
|
`--blyrics-instrumental-wave-path-high` and `--blyrics-instrumental-wave-path-low` are the two shapes
|
|
286
310
|
it morphs between, each a `path()`, and a theme redrawing them is how the wave changes amplitude or
|
|
@@ -333,8 +357,8 @@ swells each letter with a transient scale at the crest.
|
|
|
333
357
|
}
|
|
334
358
|
```
|
|
335
359
|
|
|
336
|
-
The split multiplies the DOM per character
|
|
337
|
-
does not want the cost turns it off with `/* blyrics-letter-wave = false; */`. `blyrics-letter-wave`
|
|
360
|
+
The split multiplies the DOM per character, three times over with the glow's two copies, so a theme
|
|
361
|
+
that does not want the cost turns it off with `/* blyrics-letter-wave = false; */`. `blyrics-letter-wave`
|
|
338
362
|
reloads the lines when it changes, the way every build-time setting does.
|
|
339
363
|
|
|
340
364
|
### Word state
|
|
@@ -405,6 +429,7 @@ refactor. Import them from `@braccato/core/constants` instead of typing them out
|
|
|
405
429
|
| `BACKGROUND_LYRIC_CLASS` | `blyrics-background-lyric` | A background vocal, sung over the line it answers. |
|
|
406
430
|
| `USER_SCROLLING_CLASS` | `blyrics-user-scrolling` | Set while a reader has scrolled away and autoscroll waits. |
|
|
407
431
|
| `TRANSLATED_LYRICS_CLASS` | `blyrics--translated` | A translation hung off a line that was already built. |
|
|
432
|
+
| `LONG_WORD_GROUP_CLASS` | `blyrics-word-group-long` | A word longer than twice `blyrics-long-word-wrap-threshold`. Its syllables go inline so it can wrap, and browsers ignore `transform` on inline boxes. |
|
|
408
433
|
| `EXPLICIT_WORD_CLASS` | `blyrics-explicit` | A word the lyrics flag as explicit. Unstyled unless a theme styles it. |
|
|
409
434
|
| `CREDITS_CLASS` | `blyrics-credits` | The songwriter credits after the last line. |
|
|
410
435
|
| `CUSTOM_THEME_STYLE_ID` | `blyrics-custom-style` | The id of the `<style>` the theme lands in. |
|
|
@@ -417,7 +442,7 @@ them out and you get lines that are in the document and unstyled, rather than li
|
|
|
417
442
|
| File | What it carries |
|
|
418
443
|
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
419
444
|
| `@braccato/core/styles/variables.css` | Every `--blyrics-*` default. It goes first, because the others read from it. |
|
|
420
|
-
| `@braccato/core/styles/lyrics.css` | The container, the lines, the words and the sweep
|
|
445
|
+
| `@braccato/core/styles/lyrics.css` | The container, the lines, the words and the sweep. |
|
|
421
446
|
| `@braccato/core/styles/instrumental.css` | The waveform that fills a bar nobody sings over, and the animation that walks it. |
|
|
422
447
|
| `@braccato/core/styles/stage.css` | Placement for the stage layout, and nothing else. Only a renderer created with `layout: "stage"` needs it. |
|
|
423
448
|
|
|
@@ -587,43 +612,21 @@ loading regional CJK web fonts should set `--noto-sans-universal` on these eleme
|
|
|
587
612
|
They are unset by default; custom CSS that reads them directly should use
|
|
588
613
|
`var(--blyrics-font-family, var(--blyrics-default-font-family))` for the default stack.
|
|
589
614
|
|
|
590
|
-
### Theme-provided image
|
|
615
|
+
### Theme-provided instrumental image
|
|
591
616
|
|
|
592
|
-
|
|
617
|
+
A theme can paint the instrumental note with an image. Enable it in a theme comment:
|
|
593
618
|
|
|
594
619
|
```css
|
|
595
620
|
/* blyrics-image-highlights = true; */
|
|
596
621
|
.blyrics-container {
|
|
597
622
|
--blyrics-highlight-image: url("my-image.jpg");
|
|
598
|
-
--blyrics-image-glow-opacity-from: 0.5;
|
|
599
|
-
--blyrics-image-glow-opacity-to: 0;
|
|
600
623
|
}
|
|
601
624
|
```
|
|
602
625
|
|
|
603
|
-
Changing this setting requests a lyric rebuild through the existing `setTheme` return value.
|
|
604
|
-
|
|
605
|
-
the
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
and `dynamic-range-limit`; the core never opts into extra display brightness. Ordinary active
|
|
611
|
-
text color backs up the image fill, while the note keeps its original color path until its
|
|
612
|
-
SVG image loads. The note image reuses the original animated wave clip and fade group.
|
|
613
|
-
|
|
614
|
-
The glow layer is outside the paint's mask, avoiding clipped halos at word edges. Bidi-sensitive
|
|
615
|
-
runs and fragmented long words use a parallel inline text run for the glow, so the browser
|
|
616
|
-
reproduces the same ordering and wrapped fragments. Its reveal and visibility use the same
|
|
617
|
-
animation clock as the sharp text. No generated text or per-frame geometry reads are needed.
|
|
618
|
-
Joining-script word groups retain contextual joining by using whole-word sweeps instead of
|
|
619
|
-
inline-block letter waves, including when image highlights are disabled.
|
|
620
|
-
Forced colors suppress the image and halo in favor of system text colors.
|
|
621
|
-
|
|
622
|
-
For real-browser regression checks, build the package, serve the repository root and open
|
|
623
|
-
`tooling/browser/image-highlights.html`. Import `image-highlights-checks.js` from that page and
|
|
624
|
-
call `runImageHighlightChecks(testView)`. The default fixture uses an SDR image; a `theme` query
|
|
625
|
-
parameter can point at a consumer's HDR stylesheet for physical-display testing.
|
|
626
|
-
`runLetterInkChecks(testView)` in the same module checks that letter masks cover glyph overhang,
|
|
627
|
-
such as a `j`'s hook or an italic `f`, without moving any letter.
|
|
628
|
-
|
|
629
|
-
Words that mix RTL characters with LTR letters or numbers retain native text shaping instead of per-letter motion. Image glow, letter masks and letter motion retain their current paint during the line exit fade.
|
|
626
|
+
Changing this setting requests a lyric rebuild through the existing `setTheme` return value. The
|
|
627
|
+
image may be an SDR texture or an HDR gain-map asset. The theme owns HDR media queries and
|
|
628
|
+
`dynamic-range-limit`; the core never opts into extra display brightness. The note keeps its original
|
|
629
|
+
color path until its SVG image loads, reuses the original animated wave clip and fade group, and
|
|
630
|
+
forced colors fall back to system colors. Words no longer take an image fill.
|
|
631
|
+
|
|
632
|
+
Words that mix RTL characters with LTR letters or numbers retain native text shaping instead of per-letter motion.
|
package/dist/constants.d.ts
CHANGED
|
@@ -29,6 +29,16 @@ export declare const WORD_GROUP_CLASS: "blyrics-word-group";
|
|
|
29
29
|
export declare const LONG_WORD_GROUP_CLASS: "blyrics-word-group-long";
|
|
30
30
|
export declare const WORD_HIGHLIGHT_CLASS: "blyrics-word-highlight";
|
|
31
31
|
export declare const WORD_HIGHLIGHT_LETTERED_CLASS: "blyrics-word-highlight--lettered";
|
|
32
|
+
export declare const WORD_HIGHLIGHT_SWEEP_CLASS: "blyrics-word-highlight--sweep";
|
|
33
|
+
export declare const WORD_HIGHLIGHT_CONTEXT_CLASS: "blyrics-word-highlight--context";
|
|
34
|
+
export declare const SWEEP_CELL_CLASS: "blyrics-sweep-cell";
|
|
35
|
+
export declare const SWEEP_CONTEXT_CLASS: "blyrics-sweep-context";
|
|
36
|
+
export declare const SWEEP_WINDOW_CLASS: "blyrics-sweep-window";
|
|
37
|
+
export declare const SWEEP_CLONE_CLASS: "blyrics-sweep-clone";
|
|
38
|
+
export declare const SWEEP_TARGET_CLASS: "blyrics-sweep-target";
|
|
39
|
+
export declare const SWEEP_MASK_CLASS: "blyrics-sweep-mask";
|
|
40
|
+
export declare const SWEEP_TEXT_CLASS: "blyrics-sweep-text";
|
|
41
|
+
export declare const SWEEP_GLOW_CLASS: "blyrics-sweep-glow";
|
|
32
42
|
export declare const HIGHLIGHT_RUN_CLASS: "blyrics-highlight-run";
|
|
33
43
|
export declare const LINE_SYNCED_WORD_CLASS: "blyrics-line-synced-word";
|
|
34
44
|
export declare const BIDI_RUN_CLASS: "blyrics-bidi-run";
|
package/dist/constants.js
CHANGED
|
@@ -34,6 +34,16 @@ export const WORD_GROUP_CLASS = "blyrics-word-group";
|
|
|
34
34
|
export const LONG_WORD_GROUP_CLASS = "blyrics-word-group-long";
|
|
35
35
|
export const WORD_HIGHLIGHT_CLASS = "blyrics-word-highlight";
|
|
36
36
|
export const WORD_HIGHLIGHT_LETTERED_CLASS = "blyrics-word-highlight--lettered";
|
|
37
|
+
export const WORD_HIGHLIGHT_SWEEP_CLASS = "blyrics-word-highlight--sweep";
|
|
38
|
+
export const WORD_HIGHLIGHT_CONTEXT_CLASS = "blyrics-word-highlight--context";
|
|
39
|
+
export const SWEEP_CELL_CLASS = "blyrics-sweep-cell";
|
|
40
|
+
export const SWEEP_CONTEXT_CLASS = "blyrics-sweep-context";
|
|
41
|
+
export const SWEEP_WINDOW_CLASS = "blyrics-sweep-window";
|
|
42
|
+
export const SWEEP_CLONE_CLASS = "blyrics-sweep-clone";
|
|
43
|
+
export const SWEEP_TARGET_CLASS = "blyrics-sweep-target";
|
|
44
|
+
export const SWEEP_MASK_CLASS = "blyrics-sweep-mask";
|
|
45
|
+
export const SWEEP_TEXT_CLASS = "blyrics-sweep-text";
|
|
46
|
+
export const SWEEP_GLOW_CLASS = "blyrics-sweep-glow";
|
|
37
47
|
export const HIGHLIGHT_RUN_CLASS = "blyrics-highlight-run";
|
|
38
48
|
export const LINE_SYNCED_WORD_CLASS = "blyrics-line-synced-word";
|
|
39
49
|
export const BIDI_RUN_CLASS = "blyrics-bidi-run";
|
|
@@ -28,11 +28,6 @@ export interface AnimationConfig {
|
|
|
28
28
|
swipeEndFrom: string;
|
|
29
29
|
swipeStartTo: string;
|
|
30
30
|
swipeEndTo: string;
|
|
31
|
-
imageGlowFrom: string;
|
|
32
|
-
imageGlowTo: string;
|
|
33
|
-
imageGlowOpacityFrom: string;
|
|
34
|
-
imageGlowOpacityTo: string;
|
|
35
|
-
glowFrom: string;
|
|
36
31
|
glowTo: string;
|
|
37
32
|
glowDurationRatio: number;
|
|
38
33
|
glowMinDurationMs: number;
|
|
@@ -44,11 +44,6 @@ function readAnimationConfig(engine, lyricsElement) {
|
|
|
44
44
|
swipeEndFrom: css.string("--blyrics-highlight-swipe-end-from", "-0.1"),
|
|
45
45
|
swipeStartTo: css.string("--blyrics-highlight-swipe-start-to", "1.4"),
|
|
46
46
|
swipeEndTo: css.string("--blyrics-highlight-swipe-end-to", "1.5"),
|
|
47
|
-
imageGlowFrom: css.string("--blyrics-highlight-glow-radius-from", "0.8rem"),
|
|
48
|
-
imageGlowTo: css.string("--blyrics-highlight-glow-radius-to", "0px"),
|
|
49
|
-
imageGlowOpacityFrom: css.string("--blyrics-image-glow-opacity-from", "0.5"),
|
|
50
|
-
imageGlowOpacityTo: css.string("--blyrics-image-glow-opacity-to", "0"),
|
|
51
|
-
glowFrom: resolveGlowFilter(engine, lyricsElement, "from", "0.8rem"),
|
|
52
47
|
glowTo,
|
|
53
48
|
glowDurationRatio: css.number("--blyrics-highlight-glow-duration-ratio", 1.2),
|
|
54
49
|
glowMinDurationMs: css.durationMs("--blyrics-highlight-glow-min-duration", "1.2s"),
|
|
@@ -17,7 +17,8 @@ export interface DriftSample {
|
|
|
17
17
|
export declare function followSongClock(engine: AnimationEngineInstance, animation: Animation, track: Omit<SongClockTrack, "appliedTimingOffsetMs"> & {
|
|
18
18
|
appliedTimingOffsetMs?: number;
|
|
19
19
|
}): Animation;
|
|
20
|
-
|
|
20
|
+
/** Repeats a word's own animations on the cells of a sweep drawn for it from copies of its line. */
|
|
21
|
+
export declare function mirrorHighlightAnimations(part: PartData, animations: Animation[]): Animation[];
|
|
21
22
|
export declare function applyPlaybackRateToRunningAnimations(engine: AnimationEngineInstance): void;
|
|
22
23
|
export declare function correctedAnimationTimeMs(targetTimeMs: number, appliedTimingOffsetMs: number, maxTimeMs?: number): number;
|
|
23
24
|
export declare function correctedWrappedAnimationTimeMs(targetTimeMs: number, appliedTimingOffsetMs: number, wrapDurationMs: number): number;
|
|
@@ -8,8 +8,9 @@ export function followSongClock(engine, animation, track) {
|
|
|
8
8
|
animation.playbackRate = engine.playbackRate;
|
|
9
9
|
return animation;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/** Repeats a word's own animations on the cells of a sweep drawn for it from copies of its line. */
|
|
12
|
+
export function mirrorHighlightAnimations(part, animations) {
|
|
13
|
+
const target = part.sweepContext?.host;
|
|
13
14
|
if (!target)
|
|
14
15
|
return [];
|
|
15
16
|
const mirrors = [];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type LineData } from "../inject.js";
|
|
2
|
+
import type { AnimationConfig } from "./animationConfig.js";
|
|
3
|
+
/**
|
|
4
|
+
* Places the sweep cells of a line's inline words over the boxes those words are laid out in. Runs
|
|
5
|
+
* when the line starts animating and reads layout first, so the reads land before the line's writes;
|
|
6
|
+
* a word laid out as it was last time keeps its cells.
|
|
7
|
+
*/
|
|
8
|
+
export declare function placeContextSweeps(line: LineData, config: AnimationConfig): void;
|
|
9
|
+
/** Whether a line started before its inline words could be placed, and has to start over to show them. */
|
|
10
|
+
export declare function hasUnplacedContextSweeps(line: LineData): boolean;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { BIDI_RUN_CLASS, HIGHLIGHT_RUN_CLASS, RTL_CLASS, SWEEP_CLONE_CLASS, SWEEP_CONTEXT_CLASS, SWEEP_TARGET_CLASS, SWEEP_WINDOW_CLASS, WORD_CLASS, } from "../constants.js";
|
|
2
|
+
import { createSweepCell } from "../inject.js";
|
|
3
|
+
import { swipeRamp } from "./letterPlans.js";
|
|
4
|
+
import { cellFade } from "./sweepPlans.js";
|
|
5
|
+
/**
|
|
6
|
+
* Places the sweep cells of a line's inline words over the boxes those words are laid out in. Runs
|
|
7
|
+
* when the line starts animating and reads layout first, so the reads land before the line's writes;
|
|
8
|
+
* a word laid out as it was last time keeps its cells.
|
|
9
|
+
*/
|
|
10
|
+
export function placeContextSweeps(line, config) {
|
|
11
|
+
for (const part of line.parts)
|
|
12
|
+
if (part.sweepContext)
|
|
13
|
+
part.sweepContext.unplaced = true;
|
|
14
|
+
const placements = line.parts.flatMap(part => (part.sweepContext ? [measure(part)] : []));
|
|
15
|
+
for (const placement of placements)
|
|
16
|
+
if (placement)
|
|
17
|
+
place(placement, config);
|
|
18
|
+
}
|
|
19
|
+
// The cells sit outside the word, so they are handed the colours a theme may set on the word itself.
|
|
20
|
+
const WORD_COLORS = ["--blyrics-lyric-active-color", "--blyrics-glow-color"];
|
|
21
|
+
function measure(part) {
|
|
22
|
+
const word = part.lyricElement;
|
|
23
|
+
const run = word.closest(`.${BIDI_RUN_CLASS}:not(.${HIGHLIGHT_RUN_CLASS})`);
|
|
24
|
+
const contentLine = run?.parentElement;
|
|
25
|
+
if (!run || !contentLine || !part.sweepContext || typeof word.getClientRects !== "function")
|
|
26
|
+
return null;
|
|
27
|
+
const lineRect = contentLine.getBoundingClientRect();
|
|
28
|
+
// The line may be mid-scale, so boxes are read on screen and scaled back to the line's own pixels.
|
|
29
|
+
const scale = contentLine.offsetWidth > 0 ? lineRect.width / contentLine.offsetWidth : 1;
|
|
30
|
+
const local = (rect) => ({
|
|
31
|
+
x: (rect.left - lineRect.left) / scale,
|
|
32
|
+
y: (rect.top - lineRect.top) / scale,
|
|
33
|
+
width: rect.width / scale,
|
|
34
|
+
height: rect.height / scale,
|
|
35
|
+
});
|
|
36
|
+
const runBox = local(run.getBoundingClientRect());
|
|
37
|
+
const fragments = Array.from(word.getClientRects(), local).filter(box => box.width > 0);
|
|
38
|
+
// A line the browser skipped laying out has no boxes yet; it is placed once it comes into view.
|
|
39
|
+
if (fragments.length === 0)
|
|
40
|
+
return null;
|
|
41
|
+
const style = word.ownerDocument.defaultView?.getComputedStyle(part.highlightElement);
|
|
42
|
+
const colors = WORD_COLORS.map((name) => [name, style?.getPropertyValue(name).trim() ?? ""]);
|
|
43
|
+
const key = JSON.stringify([[runBox, fragments].flat().map(box => Object.values(box).map(Math.round)), colors]);
|
|
44
|
+
return { part, context: part.sweepContext, contentLine, run, runBox, fragments, colors, key };
|
|
45
|
+
}
|
|
46
|
+
/** Whether a line started before its inline words could be placed, and has to start over to show them. */
|
|
47
|
+
export function hasUnplacedContextSweeps(line) {
|
|
48
|
+
return line.isAnimating && line.parts.some(part => part.sweepContext?.unplaced);
|
|
49
|
+
}
|
|
50
|
+
function place({ part, context, contentLine, run, runBox, fragments, colors, key }, config) {
|
|
51
|
+
const placedAt = key + JSON.stringify(swipeRamp(config));
|
|
52
|
+
if (context.placedAt === placedAt && context.host?.isConnected) {
|
|
53
|
+
context.unplaced = false;
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
context.host?.remove();
|
|
57
|
+
const doc = contentLine.ownerDocument;
|
|
58
|
+
const host = doc.createElement("span");
|
|
59
|
+
host.classList.add(SWEEP_CONTEXT_CLASS);
|
|
60
|
+
host.setAttribute("aria-hidden", "true");
|
|
61
|
+
for (const [name, value] of colors)
|
|
62
|
+
if (value)
|
|
63
|
+
host.style.setProperty(name, value);
|
|
64
|
+
const wordIndex = Array.from(run.querySelectorAll(`.${WORD_CLASS}`)).indexOf(part.lyricElement);
|
|
65
|
+
const lineCopy = run.cloneNode(true);
|
|
66
|
+
lineCopy.classList.add(SWEEP_CLONE_CLASS);
|
|
67
|
+
lineCopy.querySelectorAll(`.${WORD_CLASS}`)[wordIndex]?.classList.add(SWEEP_TARGET_CLASS);
|
|
68
|
+
const wordWidth = fragments.reduce((sum, box) => sum + box.width, 0);
|
|
69
|
+
const direction = part.lyricElement.classList.contains(RTL_CLASS) ? "rtl" : "ltr";
|
|
70
|
+
let start = 0;
|
|
71
|
+
const cells = fragments.map(box => {
|
|
72
|
+
const window = doc.createElement("span");
|
|
73
|
+
window.classList.add(SWEEP_WINDOW_CLASS);
|
|
74
|
+
window.dir = direction;
|
|
75
|
+
Object.assign(window.style, {
|
|
76
|
+
left: `${box.x}px`,
|
|
77
|
+
top: `${box.y}px`,
|
|
78
|
+
width: `${box.width}px`,
|
|
79
|
+
height: `${box.height}px`,
|
|
80
|
+
});
|
|
81
|
+
const span = { start: start / wordWidth, width: box.width / wordWidth };
|
|
82
|
+
start += box.width;
|
|
83
|
+
window.style.setProperty("--blyrics-sweep-fade", String(cellFade(swipeRamp(config), span)));
|
|
84
|
+
const cell = createSweepCell(doc, window, into => {
|
|
85
|
+
const copy = lineCopy.cloneNode(true);
|
|
86
|
+
Object.assign(copy.style, {
|
|
87
|
+
left: `${runBox.x - box.x}px`,
|
|
88
|
+
top: `${runBox.y - box.y}px`,
|
|
89
|
+
width: `${runBox.width}px`,
|
|
90
|
+
});
|
|
91
|
+
into.appendChild(copy);
|
|
92
|
+
return undefined;
|
|
93
|
+
});
|
|
94
|
+
host.appendChild(window);
|
|
95
|
+
return { ...cell, span };
|
|
96
|
+
});
|
|
97
|
+
contentLine.appendChild(host);
|
|
98
|
+
context.host = host;
|
|
99
|
+
context.placedAt = placedAt;
|
|
100
|
+
context.unplaced = false;
|
|
101
|
+
part.sweep = cells.length > 0 ? cells : undefined;
|
|
102
|
+
}
|
package/dist/engine/culling.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import type { AnimationEngineInstance } from "./instance.js";
|
|
2
2
|
import { type LineScrollItem } from "./lineScroll.js";
|
|
3
|
-
export
|
|
3
|
+
export interface LineCulling {
|
|
4
|
+
scroller: HTMLElement;
|
|
5
|
+
contentOffset: number;
|
|
6
|
+
followReaderScroll: () => void;
|
|
7
|
+
startObserver: ResizeObserver | null;
|
|
8
|
+
ready: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function setupLineCulling(engine: AnimationEngineInstance): void;
|
|
11
|
+
export declare function stopLineCulling(engine: AnimationEngineInstance): void;
|
|
12
|
+
export declare function updateLineCulling(engine: AnimationEngineInstance, fromScrollTop: number, toScrollTop: number, viewportHeight: number): void;
|
|
13
|
+
export declare function measureContentOffset(scroller: HTMLElement, container: HTMLElement): number;
|
|
4
14
|
export declare function clearOffscreenLineCulling(engine: AnimationEngineInstance): void;
|
|
5
15
|
export declare function updateVisibleLyricWillChange(engine: AnimationEngineInstance, lines: LineScrollItem[], fromScrollTop: number, toScrollTop: number, viewportHeight: number): void;
|
|
6
16
|
export declare function clearVisibleLyricWillChange(engine: AnimationEngineInstance): void;
|
package/dist/engine/culling.js
CHANGED
|
@@ -1,33 +1,106 @@
|
|
|
1
|
+
import { hasUnplacedContextSweeps } from "./contextSweep.js";
|
|
2
|
+
import { resetLineAnimationState } from "./lineAnimationState.js";
|
|
1
3
|
import { isLineVisibleDuringScroll, LINE_SCROLL_WILL_CHANGE_VALUE } from "./lineScroll.js";
|
|
2
|
-
//
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
engine
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
// A skipped line keeps the height it last rendered at, so none is skipped before two rendering updates
|
|
5
|
+
// have laid every line out; a resize observation is delivered only after one has.
|
|
6
|
+
const RENDERING_UPDATES_BEFORE_SKIPPING = 2;
|
|
7
|
+
export function setupLineCulling(engine) {
|
|
8
|
+
stopLineCulling(engine);
|
|
9
|
+
const container = engine.lyricsContainer;
|
|
10
|
+
if (engine.layout === "stage" || !container || engine.lines.length === 0)
|
|
11
|
+
return;
|
|
12
|
+
const scroller = engine.host.getScrollElement();
|
|
13
|
+
if (!scroller?.isConnected)
|
|
10
14
|
return;
|
|
11
15
|
// The engine owns scrollTop; Firefox's scroll anchoring would answer cull height shifts with a scroll the
|
|
12
16
|
// engine reads as the user's.
|
|
13
|
-
|
|
17
|
+
scroller.style.setProperty("overflow-anchor", "none");
|
|
14
18
|
pinCulledLineHeights(engine);
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
const culling = {
|
|
20
|
+
scroller,
|
|
21
|
+
contentOffset: measureContentOffset(scroller, container),
|
|
22
|
+
followReaderScroll: () => cullAroundScroller(engine, culling),
|
|
23
|
+
startObserver: null,
|
|
24
|
+
ready: false,
|
|
25
|
+
};
|
|
26
|
+
engine.lineCulling = culling;
|
|
27
|
+
scroller.addEventListener("scroll", culling.followReaderScroll, { passive: true });
|
|
28
|
+
startCullingAfterRenderingUpdates(engine, culling, container, RENDERING_UPDATES_BEFORE_SKIPPING);
|
|
29
|
+
for (const line of engine.lines) {
|
|
30
|
+
if (!engine.culledLineElements.has(line.lyricElement))
|
|
31
|
+
restartUnplacedLine(line);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export function stopLineCulling(engine) {
|
|
35
|
+
const culling = engine.lineCulling;
|
|
36
|
+
if (culling) {
|
|
37
|
+
culling.scroller.removeEventListener("scroll", culling.followReaderScroll);
|
|
38
|
+
culling.startObserver?.disconnect();
|
|
39
|
+
}
|
|
40
|
+
engine.lineCulling = null;
|
|
41
|
+
clearOffscreenLineCulling(engine);
|
|
42
|
+
}
|
|
43
|
+
function cullAroundScroller(engine, culling) {
|
|
44
|
+
if (!culling.scroller.isConnected)
|
|
45
|
+
return;
|
|
46
|
+
const scrollTop = culling.scroller.scrollTop;
|
|
47
|
+
const viewportHeight = engine.cachedTabRendererHeight ?? culling.scroller.clientHeight;
|
|
48
|
+
updateLineCulling(engine, scrollTop, engine.pendingLineScroll?.toScrollTop ?? scrollTop, viewportHeight);
|
|
49
|
+
}
|
|
50
|
+
// A line scroll's transforms stay between the two scroll positions; one viewport either side is the margin.
|
|
51
|
+
export function updateLineCulling(engine, fromScrollTop, toScrollTop, viewportHeight) {
|
|
52
|
+
const culling = engine.lineCulling;
|
|
53
|
+
if (!culling?.ready)
|
|
54
|
+
return;
|
|
55
|
+
const top = Math.min(fromScrollTop, toScrollTop) - viewportHeight - culling.contentOffset;
|
|
56
|
+
const bottom = Math.max(fromScrollTop, toScrollTop) + 2 * viewportHeight - culling.contentOffset;
|
|
57
|
+
for (const line of engine.lines) {
|
|
58
|
+
const element = line.lyricElement;
|
|
59
|
+
const rendered = !isMeasured(line) || (line.position + line.height >= top && line.position <= bottom);
|
|
60
|
+
if (rendered) {
|
|
61
|
+
if (!engine.culledLineElements.delete(element))
|
|
62
|
+
continue;
|
|
63
|
+
uncullLine(element);
|
|
64
|
+
restartUnplacedLine(line);
|
|
26
65
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
66
|
+
else if (!engine.culledLineElements.has(element)) {
|
|
67
|
+
cullLine(element);
|
|
68
|
+
engine.culledLineElements.add(element);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function startCullingAfterRenderingUpdates(engine, culling, container, updates) {
|
|
73
|
+
const Observer = engine.window.ResizeObserver;
|
|
74
|
+
if (typeof Observer !== "function")
|
|
75
|
+
return;
|
|
76
|
+
const observer = new Observer(() => {
|
|
77
|
+
observer.disconnect();
|
|
78
|
+
culling.startObserver = null;
|
|
79
|
+
if (engine.lineCulling !== culling)
|
|
80
|
+
return;
|
|
81
|
+
if (updates > 1) {
|
|
82
|
+
startCullingAfterRenderingUpdates(engine, culling, container, updates - 1);
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
culling.ready = true;
|
|
86
|
+
cullAroundScroller(engine, culling);
|
|
87
|
+
});
|
|
88
|
+
culling.startObserver = observer;
|
|
89
|
+
observer.observe(container);
|
|
90
|
+
}
|
|
91
|
+
function isMeasured(line) {
|
|
92
|
+
return line.position >= 0 && line.height >= 0;
|
|
93
|
+
}
|
|
94
|
+
// The document's scrolling element moves with the page, so its content starts at the viewport's top edge.
|
|
95
|
+
export function measureContentOffset(scroller, container) {
|
|
96
|
+
const scrollsDocument = scroller === scroller.ownerDocument?.scrollingElement;
|
|
97
|
+
const scrollerTop = scrollsDocument ? 0 : scroller.getBoundingClientRect().y + scroller.clientTop;
|
|
98
|
+
return container.getBoundingClientRect().y - scrollerTop + scroller.scrollTop;
|
|
99
|
+
}
|
|
100
|
+
/** A line that started while it was skipped starts over now that its words have boxes to place on. */
|
|
101
|
+
function restartUnplacedLine(line) {
|
|
102
|
+
if (hasUnplacedContextSweeps(line))
|
|
103
|
+
resetLineAnimationState(line);
|
|
31
104
|
}
|
|
32
105
|
export function clearOffscreenLineCulling(engine) {
|
|
33
106
|
for (const element of engine.culledLineElements)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AnimationEngineInstance } from "./instance.js";
|
|
2
2
|
export declare const DECORATION_MIN_SHIFT_PX = 0.5;
|
|
3
|
-
export declare function slideElementBy(element: HTMLElement, dy: number): void;
|
|
3
|
+
export declare function slideElementBy(engine: AnimationEngineInstance, element: HTMLElement, dy: number): void;
|
|
4
4
|
export declare function decorationSlideAllowed(engine: AnimationEngineInstance, container: HTMLElement): boolean;
|
|
5
5
|
export declare function lineDecorators(lineElement: HTMLElement): HTMLElement[];
|
|
6
6
|
export declare function captureDecorationSlide(engine: AnimationEngineInstance): (() => void) | null;
|