Added distribution files

This commit is contained in:
squidfunk
2021-12-05 12:27:16 +01:00
parent 4dd7cb364a
commit 0abade5308
7 changed files with 28 additions and 16 deletions

View File

@@ -24,6 +24,7 @@ import {
EMPTY,
Observable,
Subject,
animationFrameScheduler,
combineLatest,
defer,
finalize,
@@ -130,7 +131,7 @@ export function mountAnnotation(
/* Track relative origin of tooltip */
push$
.pipe(
throttleTime(500),
throttleTime(500, animationFrameScheduler),
map(() => container.getBoundingClientRect()),
map(({ x }) => x)
)

View File

@@ -81,7 +81,7 @@ export function watchPalette(
}
/* Emit changes in color palette */
const palette$ = of(...inputs)
return of(...inputs)
.pipe(
mergeMap(input => fromEvent(input, "change")
.pipe(
@@ -99,9 +99,6 @@ export function watchPalette(
} as Palette)),
shareReplay(1)
)
/* Return palette */
return palette$
}
/**