Skip to content

Commit aba5e94

Browse files
committed
Docs: App simple mode
1 parent 110cb6a commit aba5e94

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

‎Docs/Ru/App/App.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
<divstyle="width: 1200px; height: 800px;"class="libcanvas-app">
35+
<divstyle="overflow: hidden; position: absolute; width: 1200px; height: 800px;">
36+
<canvaswidth="1200"height="800"data-name="bg"style="position: absolute; z-index: 0;"></canvas>
37+
<canvaswidth="1200"height="800"data-name="foo"style="position: absolute; z-index: 1;"></canvas>
38+
<canvaswidth="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+
<canvaswidth="391"height="71"class="libcanvas-app-simple"></canvas>
47+
```
48+
3049
### Методы
3150

3251
#### createLayer

0 commit comments

Comments
(0)