Skip to content

Commit

Permalink
Merge pull request #37 from orca-team/dev_lzh
Browse files Browse the repository at this point in the history
fix:测试changeset发布组件的版本问题
  • Loading branch information
hongzelin authored Aug 8, 2024
2 parents cfed4e5 + c963e4e commit 27ccdcd
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"updateInternalDependencies": "patch",
"ignore": [],
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"updateInternalDependents": "always"
"updateInternalDependents": "always",
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
}
6 changes: 6 additions & 0 deletions .changeset/funny-insects-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@orca-fe/pdf-viewer': minor
'@orca-fe/painter': minor
---

测试changeset发布组件的版本问题
4 changes: 2 additions & 2 deletions packages/painter/src/ShapeRenderer/ShapeRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ const ShapeRenderer = <T extends GraphShapeType>(props: ShapeRendererProps<T>) =

{/* 圆形背景 */}
<circle
cx={shape.x + shape.width + 5} // 圆心在矩形右边缘外20px
cy={shape.y + shape.height + 5} // 圆心在矩形下边缘外20px
cx={shape.x + shape.width + 5} // 圆心在矩形右边缘外 5px
cy={shape.y + shape.height + 5} // 圆心在矩形下边缘外 5px
r={12}
fill='#F33B40' // 圆形背景颜色
stroke='#F33B40' // 圆形边框颜色
Expand Down
8 changes: 8 additions & 0 deletions packages/pdf-viewer/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ title: PDF 阅读器 PdfViewer

### 重要更新

- `1.22.0`
- 修复大文件卡顿,特别注意:该版本需要在项目 public 下的,引入 pdf.worker.min.js 3.8.24 的版本!!!pdf.worker.min.js 可以在 https://github.com/orca-team/pocket/tree/master/public 目录下获取
- 修复 PDF 缓存 page,以及个别 page 黑屏问题;
- 增加 PDFMarkPlugin 插件;
- `1.14.0`
- 增加了国际化支持
- `1.0.0`
Expand Down Expand Up @@ -73,6 +77,10 @@ title: PDF 阅读器 PdfViewer
| onPageChange | 翻页事件 | `(page: number) => void` | `-` | `1.11.2` |
| pdfJsParams | 额外的 pdfjs 参数,具体参数可(查看这里)[https://mozilla.github.io/pdf.js/api/draft/module-pdfjsLib.html] | `object` | `-` | `1.11.0` |
| outputScale | 渲染頁面的缩放级别 | `number` | `Math.max(window.devicePixelRatio, 1)` | `1.17.0` |
| renderAllPages | 是否一次性渲染所有的页面,默认 false,不加载所有的 page | `boolean` | `false` | `1.22.0` |
| workerSrc | 手动制定 pdfjsLib.GlobalWorkerOptions.workerSrc 的地址,默认是放在项目 public 下的,名称版本分别为 pdf.worker.min.js 3.8.24 | `string` | `/pdf.worker.min.js` | `1.22.0` |



### PDFViewerHandle

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export interface PDFMarkPluginProps {
/** 插件实例ID */
drawingPluginId?: string;

/** 按钮名称 */
buttonName?: string;
}

Expand Down

0 comments on commit 27ccdcd

Please sign in to comment.