mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-24 06:43:50 -04:00
Added distribution files
This commit is contained in:
@@ -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)
|
||||
)
|
||||
|
||||
@@ -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$
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user