@netless/fastboard-ui 1.1.2-beta.9 → 1.1.2

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/fastboard-ui",
3
- "version": "1.1.2-beta.9",
3
+ "version": "1.1.2",
4
4
  "description": "The front-end of @netless/fastboard-core.",
5
5
  "main": "dist/index.js",
6
6
  "svelte": "dist/index.svelte.mjs",
@@ -12,15 +12,15 @@
12
12
  ],
13
13
  "repository": "netless-io/fastboard",
14
14
  "peerDependencies": {
15
- "@netless/fastboard-core": "1.1.2-beta.9"
15
+ "@netless/fastboard-core": "1.1.2"
16
16
  },
17
17
  "dependencies": {
18
18
  "tippy.js": "^6.3.7"
19
19
  },
20
20
  "devDependencies": {
21
+ "@netless/esbuild-plugin-inline-sass": "0.1.0",
21
22
  "@netless/buildtool": "0.1.0",
22
- "@netless/fastboard-core": "1.1.2-beta.9",
23
- "@netless/esbuild-plugin-inline-sass": "0.1.0"
23
+ "@netless/fastboard-core": "1.1.2"
24
24
  },
25
25
  "scripts": {
26
26
  "cleanup": "rimraf dist",
@@ -77,6 +77,8 @@
77
77
  $: max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
78
78
 
79
79
  $: hasAppliancePlugin = !!app?.appliancePlugin;
80
+ $: showLaserPen =
81
+ (app?.appliancePlugin && !app?.appliancePlugin.currentManager?.pluginOptions.extras.useSimple) || false;
80
82
  $: hasUseLaserPen = (hasAppliancePlugin && ($memberState as ExtendMemberState)?.useLaserPen) || false;
81
83
  $: hasUseMarkPen =
82
84
  (hasAppliancePlugin && ($memberState as ExtendMemberState)?.strokeOpacity === 0.5) || false;
@@ -258,11 +260,11 @@
258
260
  </Button>
259
261
  {/if}
260
262
 
261
- {#if pencilType === "laser"}
263
+ {#if showLaserPen && pencilType === "laser"}
262
264
  <Button class="{name}-panel-switch-btn" {...btn_props}>
263
265
  <Icons.LaserPenFilled {theme} active />
264
266
  </Button>
265
- {:else if pencilType !== "laser"}
267
+ {:else if showLaserPen && pencilType !== "laser"}
266
268
  <Button class="{name}-panel-switch-btn" {...btn_props} on:click={useLaserPen}>
267
269
  <Icons.LaserPen {theme} />
268
270
  </Button>