Implement HTMLCanvasElement rendering

This commit is contained in:
Niklas von Hertzen
2017-08-03 20:57:55 +08:00
parent f2b8c16c2c
commit fe97851988
4 changed files with 31 additions and 12 deletions

View File

@@ -2,7 +2,7 @@
'use strict';
import type {Bounds, BoundCurves, Path} from '../Bounds';
import type ImageLoader from '../ImageLoader';
import type ImageLoader, {ImageElement} from '../ImageLoader';
import Color from '../Color';
import Length from '../Length';
@@ -82,7 +82,7 @@ class BackgroundSize {
export const calculateBackgroundSize = (
backgroundImage: BackgroundImage,
image: HTMLImageElement,
image: ImageElement,
bounds: Bounds
): Size => {
let width = 0;