File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Settings может содержать следующие параметры:
1717
1818* ` appendTo ` - элемент, в который необходимо добавить приложение. По-умолчанию ` body `
1919* ` size ` - размеры окна приложения, объект LibCanvas.Size
20+ * ` simple ` - если ` true ` , то сгенерирует упрощённую вёрстку - из одного холста, но без возможности создавать и сдвигать слои
2021
2122#### Пример
2223
@@ -27,6 +28,24 @@ var app = new App({
2728})
2829```
2930
31+ #### Обычная разметка для трёх слоёв:
32+
33+ ``` html
34+ <div style =" width : 1200px ; height : 800px ;" class =" libcanvas-app" >
35+ <div style =" overflow : hidden ; position : absolute ; width : 1200px ; height : 800px ;" >
36+ <canvas width =" 1200" height =" 800" data-name =" bg" style =" position : absolute ; z-index : 0 ;" ></canvas >
37+ <canvas width =" 1200" height =" 800" data-name =" foo" style =" position : absolute ; z-index : 1 ;" ></canvas >
38+ <canvas width =" 1200" height =" 800" data-name =" bar" style =" position : absolute ; z-index : 2 ;" ></canvas >
39+ </div >
40+ </div >
41+ ```
42+
43+ #### Упрощённая разметка (макс. 1 слой):
44+
45+ ``` html
46+ <canvas width =" 391" height =" 71" class =" libcanvas-app-simple" ></canvas >
47+ ```
48+
3049### Методы
3150
3251#### createLayer
You can’t perform that action at this time.
0 commit comments