@netless/forge-slide 0.1.1-alpha.4 → 0.1.1-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/forge-slide",
3
- "version": "0.1.1-alpha.4",
3
+ "version": "0.1.1-alpha.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -26,6 +26,7 @@ export class FooterView extends EventEmitter<FooterViewEvents> {
26
26
  public constructor() {
27
27
  super();
28
28
  this.root = document.createElement("div");
29
+ this.root.classList.add("forge-slide-footer");
29
30
  this.root.style.height = "24px";
30
31
  this.root.style.zIndex = "6";
31
32
  this.root.style.display = "flex";
@@ -12,7 +12,7 @@ export class SideBarView extends EventEmitter<SideBarViewEvents> {
12
12
  public constructor() {
13
13
  super();
14
14
  this.root.style.backgroundColor = '#eee';
15
- this.root.className = "slide-sidebar";
15
+ this.root.className = "forge-slide-sidebar";
16
16
  this.root.style.width = "240px";
17
17
  this.root.style.height = "100%";
18
18
  this.root.style.position = "absolute";
@@ -3,7 +3,7 @@ import {ISlideConfig, Slide, SLIDE_EVENTS} from "@netless/slide";
3
3
  import {AbstractApplication} from "@netless/forge-room";
4
4
  import {SlideForge} from "./Slide";
5
5
  import {ForgeSlidePermissionFlag, ForgeSlidePermissions} from "./ForgeSlidePermession";
6
- import {FooterView} from "./FoorerView";
6
+ import {FooterView} from "./FooterView";
7
7
  import * as Y from "yjs";
8
8
  import {SideBarView} from "./SiderBarView";
9
9
  import {deepEqual, delay} from "./utils";
@@ -64,7 +64,6 @@ export class SlideApplication extends AbstractApplication<SlideApplicationOption
64
64
 
65
65
  this.slideContainer.style.width = "100%";
66
66
  this.slideContainer.style.height = "100%";
67
- // this.slideContainer.style.height = "calc(100% - 24px)";
68
67
 
69
68
  this.footer = new FooterView();
70
69
  this.sideBar = new SideBarView();
@@ -350,11 +349,13 @@ export class SlideApplication extends AbstractApplication<SlideApplicationOption
350
349
  this.whiteboard.view.style.top = "0";
351
350
  this.whiteboard.view.style.left = "0";
352
351
  this.whiteboard.view.style.zIndex = "4";
352
+ this.whiteboard.view.classList.add("slide-whiteboard");
353
353
  this.whiteboard.permissions.addPermission(WhiteboardPermissionFlag.all);
354
354
  this.whiteboard.setCanvasBackgroundColor("#f0f0f000");
355
355
  this.whiteboardContainer.style.position = "relative";
356
356
  this.whiteboardContainer.style.flex = "0 0 auto";
357
357
  this.whiteboardContainer.style.height = "calc(100% - 24px)";
358
+ this.whiteboardContainer.classList.add("forge-slide-whiteboard-container");
358
359
  this.whiteboardContainer.appendChild(this.whiteboard.view);
359
360
  this.whiteboardContainer.appendChild(this.slideContainer);
360
361