Visual formatting

This commit is contained in:
squidfunk
2020-03-10 12:10:53 +01:00
parent d470f89056
commit 3f678c048f
5 changed files with 6 additions and 18 deletions

View File

@@ -20,6 +20,7 @@
* IN THE SOFTWARE.
*/
import ResizeObserver from "resize-observer-polyfill"
import { Observable, fromEventPattern } from "rxjs"
import { shareReplay, startWith } from "rxjs/operators"
@@ -70,7 +71,7 @@ export function watchElementSize(
width: Math.round(contentRect.width),
height: Math.round(contentRect.height)
}))
.observe(el, { box: "border-box" }) // TODO: centralize, .observe and .unobserve
.observe(el)
})
.pipe(
startWith(getElementSize(el)),

View File

@@ -26,8 +26,6 @@
import "../stylesheets/main.scss"
import "../stylesheets/palette.scss"
import "resize-observer-polyfill"
import { values } from "ramda"
import {
merge,
@@ -46,8 +44,7 @@ import {
observeOn,
take,
shareReplay,
share,
skip
share
} from "rxjs/operators"
import {