diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-09-15 18:13:00 +0200 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-09-15 19:13:00 +0200 |
| commit | 9f453ca3997528252eb28268e38480f58fbce4f6 (patch) | |
| tree | 3c4f5658e729052855cad5eea15c22a32d3f7b67 /src/html | |
| parent | bf721f2e604974b5e40dc2dc099c899f0ded2798 (diff) | |
| download | chawan-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.nim | 16 |
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 |