Skip to content

Commit

Permalink
leaferui版本升级
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsee committed Apr 15, 2024
1 parent c0df86f commit 2d99730
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 18 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.0.1(2024-04-15)

- 新增插件扩展功能
- 完善技术文档
- leaferui 升级到 v 1.0.0-rc.20

## 1.0.0-beta.1(2024-04-09)

- 代码开源
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@landing/editor",
"version": "1.0.0",
"version": "1.0.1",
"author": "mantou <[email protected]>",
"license": "MIT",
"scripts": {
Expand All @@ -15,22 +15,20 @@
"@daybrush/utils": "^1.13.0",
"@douyinfe/semi-ui": "2.54.0",
"@icon-park/react": "^1.4.2",
"@leafer-in/editor": "1.0.0-rc.19",
"@leafer-in/scroll": "^1.0.0-rc.19",
"@leafer-in/editor": "1.0.0-rc.21",
"@leafer-in/scroll": "^1.0.0-rc.21",
"@monaco-editor/react": "^4.6.0",
"asset-require-hook": "^1.2.0",
"axios": "^0.24.0",
"classnames": "^2.3.2",
"dayjs": "^1.11.10",
"fflate": "^0.8.2",
"ignore-styles": "^5.0.1",
"jquery": "^3.5.19",
"jsbarcode": "^3.11.6",
"leafer-ui": "1.0.0-rc.19",
"leafer-x-ruler": "^1.0.6",
"leafer-ui": "1.0.0-rc.21",
"leafer-x-ruler": "^1.0.7",
"localStorage": "^1.0.4",
"lodash": "^4.17.21",
"lottie-web": "^5.12.2",
"mobx": "^5.15.4",
"mobx-react": "^6.2.2",
"moveable-helper": "^0.4.0",
Expand Down Expand Up @@ -68,7 +66,7 @@
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.22.7",
"@leafer-ui/interface": "^1.0.0-rc.17",
"@leafer-ui/interface": "^1.0.0-rc.21",
"@rollup/plugin-commonjs": "^25.0.3",
"@types/gif.js": "^0.2.5",
"@types/jquery": "^3.5.18",
Expand Down
12 changes: 3 additions & 9 deletions src/pages/editor/core/View.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ export default function View(props: IViewProps) {
const app = new App({
view: target,
editor: {
lockRatio: true,
// point: { cornerRadius: 0 },
lockRatio: 'corner',
stroke: '#3f99f7',
skewable: false,
hover: false,
middlePoint: { cornerRadius: 100, width: 20, height: 6 },
rotatePoint: { width: 16, height: 16 },
},
Expand Down Expand Up @@ -273,16 +274,9 @@ export default function View(props: IViewProps) {
store.data = data;
}
}, [data]);

// useEffect(() => {
// store.app.x = pos.x;
// store.app.y = pos.y;
// }, [pos.x, pos.y]);

if (!loaded) {
return;
}
console.log('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX更新', data.layers, exLayers);

return (
<>
Expand Down
1 change: 0 additions & 1 deletion src/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ interface ImportMeta {
}

declare module 'PubSub';
declare module 'fflate';
declare module 'react-moveable';
declare module 'undo-redo-manager2';
declare module 'simple-query-string';

0 comments on commit 2d99730

Please sign in to comment.