Skip to content

Commit

Permalink
feat(Hatch): rename hatch->spline points to controlPoints (#117)
Browse files Browse the repository at this point in the history
Rename points to controlPoints when using a spline in hatch. Only for consistency reasons.

BREAKING CHANGE: Renamed hatch split property points to controlPoints
  • Loading branch information
ieskudero committed Nov 18, 2022
1 parent 3cf60c6 commit 70e9a5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/handlers/entity/hatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ function createDrawEntity(type) {
rational: 0,
periodic: 0,
knots: { count: 0, knots: [] },
points: { count: 0, point: { x: 0, y: 0 } },
controlPoints: { count: 0, point: { x: 0, y: 0 } },
weights: 1,
}
}
Expand Down Expand Up @@ -299,7 +299,7 @@ function fillDrawEntity(type, drawType, value) {
break
case 4:
{
drawEntity.points.point.x = value
drawEntity.controlPoints.point.x = value
}
break
}
Expand All @@ -324,7 +324,7 @@ function fillDrawEntity(type, drawType, value) {
break
case 4:
{
drawEntity.points.point.y = value
drawEntity.controlPoints.point.y = value
}
break
}
Expand Down Expand Up @@ -484,7 +484,7 @@ function fillDrawEntity(type, drawType, value) {
switch (drawType) {
case 4:
{
drawEntity.points.count = value
drawEntity.controlPoints.count = value
}
break
}
Expand Down

0 comments on commit 70e9a5d

Please sign in to comment.