@embedpdf-editor/vue3-chapter-viewer 1.0.3 → 1.0.5

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/README.md CHANGED
@@ -276,7 +276,7 @@ const passwordProvider = new CallbackPasswordProvider(async (chapter, attempt) =
276
276
  | `notes` | `enabled`、`marker`(`renderIcon`、`renderMenuActions`、`iconSize`、`highlightColor`) |
277
277
  | `zoom` | `enabled`(默认 true)、`min` 0.5、`max` 3、`initial` 1、`pageWidth`;实际上限由 `[data-chapter-scroll-viewport]` 宽度决定,resize 时自动更新 |
278
278
  | `scrollViewport` | `background`(默认 `#f1f5f9`),滚动视口背景 |
279
- | `selectionToolbar` | `enabled`、`hiddenBuiltinActions`(含 `copy`)、`renderCopyIcon`、`extraActions` |
279
+ | `selectionToolbar` | `enabled`、`selectionBackground`(划词底色)、`hiddenBuiltinActions`(含 `copy`)、`renderCopyIcon`、`extraActions` |
280
280
 
281
281
  默认划线 `offsetY`:`squiggly` 为 **4**。内置工具条顺序:**`copy`** → 划线类 → 扩展 → **`note`**。
282
282
 
@@ -394,6 +394,7 @@ import { h } from 'vue';
394
394
 
395
395
  features: {
396
396
  selectionToolbar: {
397
+ selectionBackground: 'rgba(255, 193, 7, 0.35)',
397
398
  // hiddenBuiltinActions: ['copy'],
398
399
  renderCopyIcon: () =>
399
400
  h('span', { 'aria-hidden': true, style: { fontSize: '18px' } }, '📋'),