@netless/forge-slide 0.1.1-alpha.5 → 0.1.1-alpha.7

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.5",
3
+ "version": "0.1.1-alpha.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -8,8 +8,8 @@
8
8
  "dependencies": {
9
9
  "@netless/slide": "^1.4.15",
10
10
  "uuid": "^11.0.5",
11
- "@netless/forge-whiteboard": "0.1.14",
12
- "@netless/forge-room": "0.1.8"
11
+ "@netless/forge-room": "0.1.8",
12
+ "@netless/forge-whiteboard": "0.1.14"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "eventemitter3": "^5.0.1",
@@ -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";
package/src/Slide.ts CHANGED
@@ -42,6 +42,7 @@ export class SlideForge extends EventEmitter<SlideEvents> implements Application
42
42
  public readonly view!: HTMLDivElement;
43
43
  public readonly permissions!: ForgeSlidePermissions;
44
44
  public readonly footView!: HTMLDivElement;
45
+ public readonly sideBarView!: HTMLDivElement;
45
46
  /**
46
47
  * 当前页面索引, 从 0 开始
47
48
  */
@@ -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";
@@ -148,6 +148,11 @@ export class SlideApplication extends AbstractApplication<SlideApplicationOption
148
148
  return that.footer.root;
149
149
  }
150
150
  })
151
+ Object.defineProperty(this.emitter, "sidebarView", {
152
+ get(): any {
153
+ return that.sideBar.root;
154
+ }
155
+ })
151
156
  Object.defineProperty(this.emitter, "pageIndex", {
152
157
  get(): any {
153
158
  return that.currentSlideIndex;