From 5a95639ea1a0c25f1e65e0adb4b73fb11e39df0f Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Mon, 26 Apr 2021 19:48:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=96=87=E6=9C=AC=E3=80=81?= =?UTF-8?q?=E5=BD=A2=E7=8A=B6=E3=80=81=E5=9B=BE=E7=89=87=E7=9A=84rotate?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=BF=85=E9=80=89=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useCreateElement.ts | 6 +++--- src/types/slides.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hooks/useCreateElement.ts b/src/hooks/useCreateElement.ts index 6852cb43..9336eb91 100644 --- a/src/hooks/useCreateElement.ts +++ b/src/hooks/useCreateElement.ts @@ -63,7 +63,7 @@ export default () => { left: (VIEWPORT_SIZE - width) / 2, top: (VIEWPORT_SIZE * viewportRatio.value - height) / 2, fixedRatio: true, - rotate: 0 + rotate: 0, }) }) } @@ -148,7 +148,7 @@ export default () => { width, height, content, - rotate: 0 + rotate: 0, }) } @@ -170,7 +170,7 @@ export default () => { path: data.path, fill: themeColor.value, fixedRatio: false, - rotate: 0 + rotate: 0, }) } diff --git a/src/types/slides.ts b/src/types/slides.ts index 041a016b..eb95c1f1 100644 --- a/src/types/slides.ts +++ b/src/types/slides.ts @@ -35,7 +35,7 @@ interface PPTBaseElement { export interface PPTTextElement extends PPTBaseElement{ type: 'text'; content: string; - rotate?: number; + rotate: number; outline?: PPTElementOutline; fill?: string; lineHeight?: number; @@ -65,7 +65,7 @@ export interface PPTImageElement extends PPTBaseElement{ type: 'image'; fixedRatio: boolean; src: string; - rotate?: number; + rotate: number; outline?: PPTElementOutline; filters?: ImageElementFilters; clip?: ImageElementClip; @@ -85,7 +85,7 @@ export interface PPTShapeElement extends PPTBaseElement{ fixedRatio: boolean; fill: string; gradient?: ShapeGradient; - rotate?: number; + rotate: number; outline?: PPTElementOutline; opacity?: number; flip?: ImageOrShapeFlip;