@netless/window-manager 0.4.45 → 0.4.47

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.es.js CHANGED
@@ -7179,7 +7179,7 @@ class Cursor {
7179
7179
  } else {
7180
7180
  applianceSrc = icons[this.memberApplianceName || ApplianceNames.shape];
7181
7181
  }
7182
- return applianceSrc;
7182
+ return applianceSrc || icons[ApplianceNames.shape];
7183
7183
  }
7184
7184
  }
7185
7185
  updateMember() {
@@ -7335,7 +7335,8 @@ class CursorManager {
7335
7335
  return (_a = this.manager.focusApp) == null ? void 0 : _a.view;
7336
7336
  }
7337
7337
  updateCursor(event, clientX, clientY) {
7338
- if (this.wrapperRect && this.manager.canOperate) {
7338
+ const self2 = findMemberByUid(this.manager.room, this.manager.uid);
7339
+ if (this.wrapperRect && this.manager.canOperate && this.canMoveCursor(self2)) {
7339
7340
  const view = event.type === "main" ? this.manager.mainView : this.focusView;
7340
7341
  const point = this.getPoint(view, clientX, clientY);
7341
7342
  if (point) {
@@ -16735,7 +16736,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter });
16735
16736
  const _WindowManager = class extends InvisiblePlugin {
16736
16737
  constructor(context) {
16737
16738
  super(context);
16738
- this.version = "0.4.45";
16739
+ this.version = "0.4.47";
16739
16740
  this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.2.27", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "side-effect-manager": "^0.1.5", "uuid": "^7.0.3", "video.js": ">=7" }, "peerDependencies": { "white-web-sdk": "^2.16.0" }, "devDependencies": { "@netless/app-docs-viewer": "^0.2.9", "@netless/app-media-player": "0.1.0-beta.5", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-url": "^6.1.0", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.22", "@tsconfig/svelte": "^2.0.1", "@types/debug": "^4.1.7", "@types/lodash": "^4.14.182", "@types/lodash-es": "^4.17.4", "@types/uuid": "^8.3.1", "@typescript-eslint/eslint-plugin": "^4.30.0", "@typescript-eslint/parser": "^4.30.0", "@vitest/ui": "^0.14.1", "cypress": "^8.7.0", "dotenv": "^10.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", "jsdom": "^19.0.0", "less": "^4.1.1", "prettier": "^2.3.2", "prettier-plugin-svelte": "^2.4.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-styles": "^3.14.1", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^2.5.3", "vitest": "^0.14.1", "white-web-sdk": "2.16.33" } };
16740
16741
  this.emitter = callbacks$1;
16741
16742
  this.viewMode = ViewMode.Broadcaster;