From f29c76ffc9e4dc9b2a8aa6ca8a8d08bb126799b9 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 2 Jan 2025 13:52:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20rectr=20=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/render/renderer/map.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/render/renderer/map.ts b/src/core/render/renderer/map.ts index 81ac6b2..f249d54 100644 --- a/src/core/render/renderer/map.ts +++ b/src/core/render/renderer/map.ts @@ -21,9 +21,9 @@ import { Line, Path, QuadraticCurve, - Rect + Rect, + RectR } from '../preset/graphics'; -import { BaseProps } from './props'; type OnItemCreate< E extends ERenderItemEvent = ERenderItemEvent, @@ -217,10 +217,10 @@ tagMap.register('layer-group', (_0, _1, props) => { return l; } }); -tagMap.register('damage', (_0, _1, props) => { +tagMap.register('damage', (_0, _1, _props) => { return new Damage(); }); -tagMap.register('animation', (_0, _1, props) => { +tagMap.register('animation', (_0, _1, _props) => { return new Animate(); }); tagMap.register('g-rect', se(Rect, 'absolute', ElementState.None)); @@ -230,7 +230,7 @@ tagMap.register('g-line', se(Line, 'absolute', ElementState.None)); tagMap.register('g-bezier', se(BezierCurve, 'absolute', ElementState.None)); tagMap.register('g-quad', se(QuadraticCurve, 'absolute', ElementState.None)); tagMap.register('g-path', se(Path, 'absolute', ElementState.None)); -tagMap.register('g-rectr', se(Path, 'absolute', ElementState.None)); +tagMap.register('g-rectr', se(RectR, 'absolute', ElementState.None)); tagMap.register('icon', standardElementNoCache(Icon)); tagMap.register('winskin', (_0, _1, props) => { if (!props) return new Winskin(core.material.images.images['winskin.png']);