feat(web-platform): release V0.8.3 常规界面优化
web-platform-release / Build and publish release (push) Has been cancelled
web-platform-ci / TypeScript, lint, unit, build (push) Has been cancelled
web-platform-ci / Playwright E2E (push) Has been cancelled
web-platform-ci / TypeScript, lint, unit, build (pull_request) Has been cancelled
web-platform-ci / Playwright E2E (pull_request) Has been cancelled

This commit is contained in:
2026-09-04 15:34:24 +08:00
parent 63d67a645b
commit fa5485049a
60 changed files with 4494 additions and 2073 deletions
+4 -14
View File
@@ -17,8 +17,7 @@ const common = {
onEditorConvert: async () => true,
onEditorBindInteraction: () => {},
onEditorSelect: () => {},
onEditorTransformMode: () => {},
onEditorSnapping: () => {},
onEditorSessionStateChange: () => {},
onMapDisplay: () => {},
onDraft: () => {},
};
@@ -88,25 +87,16 @@ describe('PhysicalMapPanel', () => {
});
});
it('参数地形与认证资产共用视口变换界面', () => {
const onTransformMode = vi.fn();
const onSnapping = vi.fn();
it('参数地形属性不再承载视口变换工具', () => {
render(
<PhysicalMapPanel
{...common}
value={{ kind: 'builtin', config: { ...DEFAULT_PHYSICAL_MAP_CONFIG, preset: 'rough' } }}
onEditorTransformMode={onTransformMode}
onEditorSnapping={onSnapping}
onApply={() => {}}
/>,
);
expect(screen.getByLabelText('视口选择与变换')).toBeInTheDocument();
expect(screen.getByText(/点击空白区域取消选择/)).toBeInTheDocument();
expect(screen.getByRole('button', { name: '缩放工具 S' })).toBeDisabled();
fireEvent.click(screen.getByRole('button', { name: '旋转工具 E' }));
expect(onTransformMode).toHaveBeenLastCalledWith('rotate');
fireEvent.click(screen.getByLabelText('地图编辑吸附'));
expect(onSnapping).toHaveBeenLastCalledWith(null, null);
expect(screen.queryByLabelText('地图变换模式')).not.toBeInTheDocument();
expect(screen.getByText(/已统一到视口浮动工具条/)).toBeInTheDocument();
});
it('表单参数与外部视口变换合并到同一份草稿', () => {