diff --git a/src/hooks/useCreateElement.ts b/src/hooks/useCreateElement.ts index 585df8f9..6852cb43 100644 --- a/src/hooks/useCreateElement.ts +++ b/src/hooks/useCreateElement.ts @@ -63,6 +63,7 @@ export default () => { left: (VIEWPORT_SIZE - width) / 2, top: (VIEWPORT_SIZE * viewportRatio.value - height) / 2, fixedRatio: true, + rotate: 0 }) }) } @@ -147,6 +148,7 @@ export default () => { width, height, content, + rotate: 0 }) } @@ -168,6 +170,7 @@ export default () => { path: data.path, fill: themeColor.value, fixedRatio: false, + rotate: 0 }) } diff --git a/src/mocks/index.ts b/src/mocks/index.ts index 1637d919..d28f9b28 100644 --- a/src/mocks/index.ts +++ b/src/mocks/index.ts @@ -16,6 +16,7 @@ export const slides: Slide[] = [ fill: '#d14424', fixedRatio: false, opacity: 0.7, + rotate: 0 }, { type: 'shape', @@ -32,6 +33,7 @@ export const slides: Slide[] = [ x: 180, y: 0, }, + rotate: 0 }, { type: 'text', @@ -41,6 +43,7 @@ export const slides: Slide[] = [ width: 585, height: 188, content: '

PPTIST

', + rotate: 0 }, { type: 'text', @@ -50,6 +53,7 @@ export const slides: Slide[] = [ width: 585, height: 56, content: '

基于 Vue 3.x + TypeScript 的在线演示文稿应用

', + rotate: 0 }, { type: 'line',