Skip to content

Commit 88d6d53

Browse files
committed
fix(textension): rename function getShapeReise to getResizeShape
1 parent 5434840 commit 88d6d53

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

examples/src/pages/extension/NodeResize/CustomeNode/ExclusiveGateway.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ExclusiveGatewayModel extends DiamondResize.model {
2626
}
2727

2828
class ExclusiveGatewayView extends DiamondResize.view {
29-
getShapeResize() {
29+
getResizeShape() {
3030
const attributes = super.getAttributes();
3131
const {
3232
x,

examples/src/pages/extension/NodeResize/CustomeNode/UserTask.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class UserTaskModel extends RectResize.model {
1111
}
1212
// 自定义节点的 view
1313
class UserTaskView extends RectResize.view {
14-
getShapeResize() {
14+
getResizeShape() {
1515
// 通过 getAttributes 获取 model 中的属性
1616
const { x, y, width, height, fill, stroke, strokeWidth, radius } = this.getAttributes();
1717
const attrs = {

packages/extension/src/NodeResize/Node/DiamondResize.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class DiamondResizeView extends DiamondNode {
3737
/>
3838
);
3939
}
40-
// getShapeResize绘制图形,功能等同于基础菱形的getShape功能,可以通过复写此方法,进行节点自定义
41-
getShapeResize(arrt) {
40+
// getResizeShape绘制图形,功能等同于基础菱形的getShape功能,可以通过复写此方法,进行节点自定义
41+
getResizeShape(arrt) {
4242
return <g><Polygon {...arrt} /></g>;
4343
}
4444
getShape() {
@@ -48,7 +48,7 @@ class DiamondResizeView extends DiamondNode {
4848
} = this.props;
4949
return (
5050
<g>
51-
{this.getShapeResize(attributes)}
51+
{this.getResizeShape(attributes)}
5252
{isSelected ? this.getControlGroup(attributes) : ''}
5353
</g>
5454
);

packages/extension/src/NodeResize/Node/EllipseResize.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class EllipseResizeView extends EllipseNode {
3737
/>
3838
);
3939
}
40-
// getShapeResize绘制图形,功能等同于基础椭圆的getShape功能,可以通过复写此方法,进行节点自定义
41-
getShapeResize(arrt) {
40+
// getResizeShape绘制图形,功能等同于基础椭圆的getShape功能,可以通过复写此方法,进行节点自定义
41+
getResizeShape(arrt) {
4242
return <g><Ellipse {...arrt} /></g>;
4343
}
4444
getShape() {
@@ -48,7 +48,7 @@ class EllipseResizeView extends EllipseNode {
4848
} = this.props;
4949
return (
5050
<g>
51-
{this.getShapeResize(attributes)}
51+
{this.getResizeShape(attributes)}
5252
{isSelected ? this.getControlGroup(attributes) : ''}
5353
</g>
5454
);

packages/extension/src/NodeResize/Node/RectResize.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class RectResizeView extends RectNode {
3737
/>
3838
);
3939
}
40-
// getShapeResize绘制图形,功能等同于基础矩形的getShape功能,可以通过复写此方法,进行节点自定义
41-
getShapeResize(arrt) {
40+
// getResizeShape绘制图形,功能等同于基础矩形的getShape功能,可以通过复写此方法,进行节点自定义
41+
getResizeShape(arrt) {
4242
return <g><Rect {...arrt} /></g>;
4343
}
4444
getShape() {
@@ -48,7 +48,7 @@ class RectResizeView extends RectNode {
4848
} = this.props;
4949
return (
5050
<g>
51-
{this.getShapeResize(attributes)}
51+
{this.getResizeShape(attributes)}
5252
{isSelected ? this.getControlGroup(attributes) : ''}
5353
</g>
5454
);

0 commit comments

Comments
 (0)