aboutsummaryrefslogtreecommitdiffstats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-09-15 18:13:00 +0200
committerbptato <nincsnevem662@gmail.com>2024-09-15 19:13:00 +0200
commit9f453ca3997528252eb28268e38480f58fbce4f6 (patch)
tree3c4f5658e729052855cad5eea15c22a32d3f7b67 /src/html
parentbf721f2e604974b5e40dc2dc099c899f0ded2798 (diff)
downloadchawan-9f453ca3997528252eb28268e38480f58fbce4f6.tar.gz
Refactor img/*
I've moved most image logic to adapter, so it doesn't really make sense to have this subdir anymore.
Diffstat (limited to 'src/html')
-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