@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/dist/index.js CHANGED
@@ -66595,6 +66595,7 @@ var SlideForge = class extends import_eventemitter314.default {
66595
66595
  view;
66596
66596
  permissions;
66597
66597
  footView;
66598
+ sideBarView;
66598
66599
  /**
66599
66600
  * 当前页面索引, 从 0 开始
66600
66601
  */
@@ -66759,7 +66760,7 @@ var ForgeSlidePermissions = class extends import_eventemitter315.default {
66759
66760
  }
66760
66761
  };
66761
66762
 
66762
- // src/FoorerView.ts
66763
+ // src/FooterView.ts
66763
66764
  var import_eventemitter316 = __toESM(require("eventemitter3"));
66764
66765
 
66765
66766
  // src/icons.ts
@@ -66789,7 +66790,7 @@ var Icons = {
66789
66790
  sideBar
66790
66791
  };
66791
66792
 
66792
- // src/FoorerView.ts
66793
+ // src/FooterView.ts
66793
66794
  var EM_COLOR = "#8C8C8C";
66794
66795
  var FooterView = class extends import_eventemitter316.default {
66795
66796
  root;
@@ -66801,6 +66802,7 @@ var FooterView = class extends import_eventemitter316.default {
66801
66802
  constructor() {
66802
66803
  super();
66803
66804
  this.root = document.createElement("div");
66805
+ this.root.classList.add("forge-slide-footer");
66804
66806
  this.root.style.height = "24px";
66805
66807
  this.root.style.zIndex = "6";
66806
66808
  this.root.style.display = "flex";
@@ -66881,7 +66883,7 @@ var SideBarView = class extends import_eventemitter317.default {
66881
66883
  constructor() {
66882
66884
  super();
66883
66885
  this.root.style.backgroundColor = "#eee";
66884
- this.root.className = "slide-sidebar";
66886
+ this.root.className = "forge-slide-sidebar";
66885
66887
  this.root.style.width = "240px";
66886
66888
  this.root.style.height = "100%";
66887
66889
  this.root.style.position = "absolute";
@@ -67097,6 +67099,11 @@ var SlideApplication = class extends import_forge_room4.AbstractApplication {
67097
67099
  return that.footer.root;
67098
67100
  }
67099
67101
  });
67102
+ Object.defineProperty(this.emitter, "sidebarView", {
67103
+ get() {
67104
+ return that.sideBar.root;
67105
+ }
67106
+ });
67100
67107
  Object.defineProperty(this.emitter, "pageIndex", {
67101
67108
  get() {
67102
67109
  return that.currentSlideIndex;