about summary refs log tree commit diff stats
path: root/src/html/dom.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/dom.nim')
-rw-r--r--src/html/dom.nim16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index 146056a9..9275538c 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -19,9 +19,8 @@ import html/catom
 import html/enums
 import html/event
 import html/script
-import img/bitmap
-import img/painter
-import img/path
+import types/bitmap
+import types/path
 import io/bufwriter
 import io/dynstream
 import io/promise
@@ -40,6 +39,7 @@ import monoucha/jsutils
 import monoucha/quickjs
 import monoucha/tojs
 import types/blob
+import types/canvastypes
 import types/color
 import types/line
 import types/matrix
@@ -63,10 +63,10 @@ type
     fetMultipart = "multipart/form-data",
     fetTextPlain = "text/plain"
 
-type DocumentReadyState* = enum
-  rsLoading = "loading"
-  rsInteractive = "interactive"
-  rsComplete = "complete"
+  DocumentReadyState* = enum
+    rsLoading = "loading"
+    rsInteractive = "interactive"
+    rsComplete = "complete"
 
 type
   DependencyType* = enum
@@ -368,7 +368,7 @@ type
 
   CanvasRenderingContext2D = ref object of RenderingContext
     canvas {.jsget.}: HTMLCanvasElement
-    bitmap: Bitmap
+    bitmap: NetworkBitmap
     state: DrawingState
     stateStack: seq[DrawingState]
     ps*: PosixStream