You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+22-4
Original file line number
Diff line number
Diff line change
@@ -54,11 +54,11 @@ It contains this initialization steps:
54
54
dosbox -c DIGGER.COM
55
55
```
56
56
57
-
Dos has couple configuration [options](http://js-dos.com/6.22/docs/api/generate.html?page=js-dos-options) that you can pass as second argument.
57
+
Dos has couple configuration [options](http://js-dos.com/6.22/docs/api/generate.html?page=js-dos-options) that you can pass as second argument`Dos(canvas, options)`.
58
58
59
59
## API Reference
60
60
61
-
Read more how to use js-dos in [**API Reference**](http://js-dos.com/6.22/docs/)
61
+
Read about api provided by js-dos in [**API Reference**](http://js-dos.com/6.22/docs/)
62
62
63
63
## FAQ
64
64
@@ -141,7 +141,7 @@ do this you need define onprogress handler in [DosOptions](http://js-dos.com/6.2
141
141
```javascript
142
142
Dos(canvas, {
143
143
onprogress: (stage, total, loaded) => {
144
-
console.log(stage, loaded *100/loaded+"%");
144
+
console.log(stage, loaded *100/total+"%");
145
145
},
146
146
}).ready(...);
147
147
```
@@ -158,6 +158,19 @@ override `log` and `onerror` property
158
158
}).ready(...);
159
159
```
160
160
161
+
### Resizing canvas
162
+
163
+
You can easily resize canvas by changing **css** (style) properties `width` and `height`.
164
+
Take attention, you **should not** change width and height properties of canvas.
0 commit comments