fix: rectr 标签

This commit is contained in:
unanmed 2025-01-02 13:52:43 +08:00
parent 77dfbb5a62
commit f29c76ffc9

View File

@ -21,9 +21,9 @@ import {
Line, Line,
Path, Path,
QuadraticCurve, QuadraticCurve,
Rect Rect,
RectR
} from '../preset/graphics'; } from '../preset/graphics';
import { BaseProps } from './props';
type OnItemCreate< type OnItemCreate<
E extends ERenderItemEvent = ERenderItemEvent, E extends ERenderItemEvent = ERenderItemEvent,
@ -217,10 +217,10 @@ tagMap.register('layer-group', (_0, _1, props) => {
return l; return l;
} }
}); });
tagMap.register<EDamageEvent, Damage>('damage', (_0, _1, props) => { tagMap.register<EDamageEvent, Damage>('damage', (_0, _1, _props) => {
return new Damage(); return new Damage();
}); });
tagMap.register('animation', (_0, _1, props) => { tagMap.register('animation', (_0, _1, _props) => {
return new Animate(); return new Animate();
}); });
tagMap.register('g-rect', se(Rect, 'absolute', ElementState.None)); 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-bezier', se(BezierCurve, 'absolute', ElementState.None));
tagMap.register('g-quad', se(QuadraticCurve, 'absolute', ElementState.None)); tagMap.register('g-quad', se(QuadraticCurve, 'absolute', ElementState.None));
tagMap.register('g-path', se(Path, '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('icon', standardElementNoCache(Icon));
tagMap.register('winskin', (_0, _1, props) => { tagMap.register('winskin', (_0, _1, props) => {
if (!props) return new Winskin(core.material.images.images['winskin.png']); if (!props) return new Winskin(core.material.images.images['winskin.png']);