diff options
Diffstat (limited to 'apps/web/src/lib/masks/definitions/star.ts')
| -rw-r--r-- | apps/web/src/lib/masks/definitions/star.ts | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/web/src/lib/masks/definitions/star.ts b/apps/web/src/lib/masks/definitions/star.ts index cdab2855..d311ab80 100644 --- a/apps/web/src/lib/masks/definitions/star.ts +++ b/apps/web/src/lib/masks/definitions/star.ts @@ -1,6 +1,7 @@ import type { MaskDefinition, RectangleMaskParams } from "@/lib/masks/types"; import { BOX_LIKE_MASK_PARAMS, + buildBoxMaskInteraction, computeBoxMaskParamUpdate, getBoxLikeGeometry, getDefaultSquareMaskParams, @@ -87,16 +88,18 @@ function buildOverlayStarPath({ export const starMaskDefinition: MaskDefinition<RectangleMaskParams> = { type: "star", name: "Star", - overlayShape: "box", - buildOverlayPath({ width, height }) { - return buildOverlayStarPath({ width, height }); - }, features: { hasPosition: true, hasRotation: true, sizeMode: "width-height", }, params: BOX_LIKE_MASK_PARAMS, + interaction: buildBoxMaskInteraction({ + sizeMode: "width-height", + buildOverlayPath({ width, height }) { + return buildOverlayStarPath({ width, height }); + }, + }), buildDefault(context) { return { type: "star", |
