feat(freehand): bump plait into 0.75.0-next.9 and resolve freehand unexpected resize-handle after moving freehand elements (#84)
This commit is contained in:
1 parent
477ddfb24d
commit
412990b77c
3 files changed
+32
-32
No files matched your search
Generated
+24
-24
@@ -10,12 +10,12 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@floating-ui/react": "^0.26.24",
|
||||
"@plait/common": "^0.75.0-next.7",
|
||||
"@plait/core": "^0.75.0-next.7",
|
||||
"@plait/draw": "^0.75.0-next.7",
|
||||
"@plait/layouts": "^0.75.0-next.7",
|
||||
"@plait/mind": "^0.75.0-next.7",
|
||||
"@plait/text-plugins": "^0.75.0-next.7",
|
||||
"@plait/common": "^0.75.0-next.9",
|
||||
"@plait/core": "^0.75.0-next.9",
|
||||
"@plait/draw": "^0.75.0-next.9",
|
||||
"@plait/layouts": "^0.75.0-next.9",
|
||||
"@plait/mind": "^0.75.0-next.9",
|
||||
"@plait/text-plugins": "^0.75.0-next.9",
|
||||
"ahooks": "^3.8.0",
|
||||
"browser-fs-access": "^0.35.0",
|
||||
"classnames": "^2.5.1",
|
||||
@@ -4345,17 +4345,17 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@plait/common": {
|
||||
"version": "0.75.0-next.7",
|
||||
"resolved": "https://registry.npmjs.org/@plait/common/-/common-0.75.0-next.7.tgz",
|
||||
"integrity": "sha512-Sk7CO/7wb9+hsgNASKesjHPmy4dVEvesTiBdrIVI4c3qetRhPkpyaxfFW0JiIlo15/dOvbFptqy73L2QMu+MPA==",
|
||||
"version": "0.75.0-next.9",
|
||||
"resolved": "https://registry.npmjs.org/@plait/common/-/common-0.75.0-next.9.tgz",
|
||||
"integrity": "sha512-jhbj0srDlIuFLy1s+er08wpaJgCGYqdi0g4Bj1t72Ea4db56Ip4NcoUrfa/LsJUq0u4l4gM6c/Is35X/V4gcPw==",
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@plait/core": {
|
||||
"version": "0.75.0-next.7",
|
||||
"resolved": "https://registry.npmjs.org/@plait/core/-/core-0.75.0-next.7.tgz",
|
||||
"integrity": "sha512-Gfw+YHvvYJoMqOz+7dHYQdXPqgxXD4Bq+GrDjOg01rsW6yZd6nshYxuyOUgIGt+OD5jGPczrrodTCqdfYfFzjg==",
|
||||
"version": "0.75.0-next.9",
|
||||
"resolved": "https://registry.npmjs.org/@plait/core/-/core-0.75.0-next.9.tgz",
|
||||
"integrity": "sha512-JA3zf2dyt5BrP+276AhXDM8xmzRGYCy5nNNVl3gSWxKb53KAr1kPz0whjmYvfQuPBvwCN9ZMwjxvT661ambQjg==",
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
},
|
||||
@@ -4368,33 +4368,33 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@plait/draw": {
|
||||
"version": "0.75.0-next.7",
|
||||
"resolved": "https://registry.npmjs.org/@plait/draw/-/draw-0.75.0-next.7.tgz",
|
||||
"integrity": "sha512-3S0yF6KJnrcyffDwtjal7xospOoy+aulmmsUIDMdaYG3vcOy+EFME0VIYojSkbaqd/HIrtJF+q9GvRUtBz0p2w==",
|
||||
"version": "0.75.0-next.9",
|
||||
"resolved": "https://registry.npmjs.org/@plait/draw/-/draw-0.75.0-next.9.tgz",
|
||||
"integrity": "sha512-agpQZ62Z/LEl0DlnrT/45DuvIn3lSLYyx/5v48IFKu2IgJ29Cl2+TFwiTvc44dTWSUacItagOypQgLMSKGwHYQ==",
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@plait/layouts": {
|
||||
"version": "0.75.0-next.7",
|
||||
"resolved": "https://registry.npmjs.org/@plait/layouts/-/layouts-0.75.0-next.7.tgz",
|
||||
"integrity": "sha512-05Bc8r9jC0N1YWQz8+C19w3K/26Q2FVWlPExp6Fp588I1ByzAaGIl3jOLkBQWQCOfklY2WcxNfepBN9onG2N4g==",
|
||||
"version": "0.75.0-next.9",
|
||||
"resolved": "https://registry.npmjs.org/@plait/layouts/-/layouts-0.75.0-next.9.tgz",
|
||||
"integrity": "sha512-5oJC3361HgZDVXnNLwTs2sEI3cuITRY/UA8xoRp1clTNLbQ+IMKToxFTeZLrFQujQoRy55Byo4GAuSDXskdsJw==",
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@plait/mind": {
|
||||
"version": "0.75.0-next.7",
|
||||
"resolved": "https://registry.npmjs.org/@plait/mind/-/mind-0.75.0-next.7.tgz",
|
||||
"integrity": "sha512-f4Ts5o+XhyI0zcW9jXYN/wmSKPodJtdxF8z7OLAlKhUHIw475YBI9lCzeIuV4NB1briT+LIpWnL7i5UJK/PQxw==",
|
||||
"version": "0.75.0-next.9",
|
||||
"resolved": "https://registry.npmjs.org/@plait/mind/-/mind-0.75.0-next.9.tgz",
|
||||
"integrity": "sha512-5SGTcIqtfgKwWDtpAtU5bI/ZTz+da9NIwyc1e8On/OuowPzgZI3A0GgeRmVihwCYPps055hD2Rsi7kPBAaWYlA==",
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@plait/text-plugins": {
|
||||
"version": "0.75.0-next.7",
|
||||
"resolved": "https://registry.npmjs.org/@plait/text-plugins/-/text-plugins-0.75.0-next.7.tgz",
|
||||
"integrity": "sha512-hbikVOGcnlm3os+jxHIpPZ6buCgDEQHhBAcDFbLWPmOz1rz+GicthYNlhPP8wRthOj26eT+YJxxGEd4qYBiiOA==",
|
||||
"version": "0.75.0-next.9",
|
||||
"resolved": "https://registry.npmjs.org/@plait/text-plugins/-/text-plugins-0.75.0-next.9.tgz",
|
||||
"integrity": "sha512-gBhAfJOANqh9QBUj0+JDpTRAa5axCFcY2KNxUpDL8cww4IYwdrfAQuR70eyAGOjxKCp70OJRmiIhDktwQ8y5zQ==",
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
}
|
||||
|
||||
+6
-6
@@ -10,12 +10,12 @@
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@floating-ui/react": "^0.26.24",
|
||||
"@plait/common": "^0.75.0-next.7",
|
||||
"@plait/core": "^0.75.0-next.7",
|
||||
"@plait/draw": "^0.75.0-next.7",
|
||||
"@plait/layouts": "^0.75.0-next.7",
|
||||
"@plait/mind": "^0.75.0-next.7",
|
||||
"@plait/text-plugins": "^0.75.0-next.7",
|
||||
"@plait/common": "^0.75.0-next.9",
|
||||
"@plait/core": "^0.75.0-next.9",
|
||||
"@plait/draw": "^0.75.0-next.9",
|
||||
"@plait/layouts": "^0.75.0-next.9",
|
||||
"@plait/mind": "^0.75.0-next.9",
|
||||
"@plait/text-plugins": "^0.75.0-next.9",
|
||||
"ahooks": "^3.8.0",
|
||||
"browser-fs-access": "^0.35.0",
|
||||
"classnames": "^2.5.1",
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
isSelectionMoving,
|
||||
ACTIVE_STROKE_WIDTH,
|
||||
} from '@plait/core';
|
||||
import { ActiveGenerator, CommonElementFlavour } from '@plait/common';
|
||||
import { ActiveGenerator, CommonElementFlavour, hasResizeHandle } from '@plait/common';
|
||||
import { Freehand } from './type';
|
||||
import { FreehandGenerator } from './freehand.generator';
|
||||
|
||||
@@ -30,7 +30,7 @@ export class FreehandComponent
|
||||
getStrokeWidth: () => ACTIVE_STROKE_WIDTH,
|
||||
getStrokeOpacity: () => 1,
|
||||
hasResizeHandle: () => {
|
||||
return !isSelectionMoving(this.board);
|
||||
return hasResizeHandle(this.board, this.element);
|
||||
},
|
||||
});
|
||||
this.generator = new FreehandGenerator(this.board);
|
||||
|
||||
Reference in new issue
Block a user