Skip to content

Commit

Permalink
fix: 修复图片下的变量缩放问题
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoKam committed May 15, 2024
1 parent 2f8e71d commit 59f3190
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 7 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"build": "echo \"ok\"",
"deploy": "npm run docs:build && npm run docs:deploy",
"c": "changeset",
"cv": "changeset; changeset version;",
"cv:pre": "changeset version --snapshot prepublish --snapshot-prerelease-template {tag}-${TIMESTAMP}",
"pub": "npm run test && changeset publish && git push",
"pub:only": "npm run test && changeset publish",
Expand Down
6 changes: 6 additions & 0 deletions packages/painter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @orca-fe/painter

## 1.4.55

### Patch Changes

- fix: 修复图片下的缩放变量问题

## 1.4.54

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/painter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orca-fe/painter",
"version": "1.4.54",
"version": "1.4.55",
"description": "Konva Painter",
"keywords": [
"react",
Expand Down
8 changes: 4 additions & 4 deletions packages/painter/src/Painter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,10 @@ const Painter = forwardRef(function <T extends ShapeDataType>(props: PainterProp
dataIndex,
);
}}
style={{
// @ts-expect-error 允许 variable
'--transformer-layout-scale': 'var(--scale-factor)',
}}
// style={{
// // @ts-expect-error 允许 variable
// '--transformer-layout-scale': 'var(--scale-factor)',
// }}
>
{(item, index) => (
<>
Expand Down
7 changes: 7 additions & 0 deletions packages/pdf-viewer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @orca-fe/pdf-viewer

## 1.21.9

### Patch Changes

- Updated dependencies
- @orca-fe/painter@1.4.55

## 1.21.8

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/pdf-viewer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orca-fe/pdf-viewer",
"version": "1.21.8",
"version": "1.21.9",
"description": "PDF Viewer",
"keywords": [
"react",
Expand Down Expand Up @@ -40,7 +40,7 @@
"dependencies": {
"@orca-fe/hooks": "^1.12.0",
"@orca-fe/jss-plugin-auto-prefix": "^0.0.1",
"@orca-fe/painter": "^1.4.54",
"@orca-fe/painter": "^1.4.55",
"@orca-fe/pdfjs-dist-browserify": "^3.8.24",
"@orca-fe/pocket": "^3.4.4",
"@orca-fe/simple-jss": "^0.0.3",
Expand Down

0 comments on commit 59f3190

Please sign in to comment.