From 70e9a5d46906f2f1984366df24adf80fd97c454b Mon Sep 17 00:00:00 2001 From: Ibon Eskudero Date: Fri, 18 Nov 2022 08:12:10 +0100 Subject: [PATCH] feat(Hatch): rename hatch->spline points to controlPoints (#117) Rename points to controlPoints when using a spline in hatch. Only for consistency reasons. BREAKING CHANGE: Renamed hatch split property points to controlPoints --- src/handlers/entity/hatch.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/handlers/entity/hatch.js b/src/handlers/entity/hatch.js index 4425ece..d9738be 100644 --- a/src/handlers/entity/hatch.js +++ b/src/handlers/entity/hatch.js @@ -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, } } @@ -299,7 +299,7 @@ function fillDrawEntity(type, drawType, value) { break case 4: { - drawEntity.points.point.x = value + drawEntity.controlPoints.point.x = value } break } @@ -324,7 +324,7 @@ function fillDrawEntity(type, drawType, value) { break case 4: { - drawEntity.points.point.y = value + drawEntity.controlPoints.point.y = value } break } @@ -484,7 +484,7 @@ function fillDrawEntity(type, drawType, value) { switch (drawType) { case 4: { - drawEntity.points.count = value + drawEntity.controlPoints.count = value } break }