From a7886c2046e44d291ca0142ce8fc3194dc4db3eb Mon Sep 17 00:00:00 2001 From: pipipi-pikachu <1171051090@qq.com> Date: Sat, 12 Dec 2020 17:45:25 +0800 Subject: [PATCH] update --- public/index.html | 2 +- src/types/slides.ts | 7 ++- src/views/Editor/Canvas/AlignmentLine.vue | 65 +++++++++++++++++++++ src/views/Editor/Canvas/GridLines.vue | 51 ++++++++++++++++ src/views/Editor/Canvas/SlideBackground.vue | 57 ++++++++++++++++++ 5 files changed, 178 insertions(+), 4 deletions(-) create mode 100644 src/views/Editor/Canvas/AlignmentLine.vue create mode 100644 src/views/Editor/Canvas/GridLines.vue create mode 100644 src/views/Editor/Canvas/SlideBackground.vue diff --git a/public/index.html b/public/index.html index f1ced8e1..77fc4c42 100644 --- a/public/index.html +++ b/public/index.html @@ -15,6 +15,6 @@
- + diff --git a/src/types/slides.ts b/src/types/slides.ts index 1793cb06..13c8132e 100644 --- a/src/types/slides.ts +++ b/src/types/slides.ts @@ -60,12 +60,12 @@ export interface PPTIconElement extends PPTElementBaseProps, PPTElementSizeProps } export interface PPTLineElement extends PPTElementBaseProps { - start: number[]; - end: number[]; + start: [number, number]; + end: [number, number]; width: number; style: string; color: string; - marker: string[]; + marker: [string, string]; lineType: string; } @@ -121,6 +121,7 @@ export interface PPTAnimation { export interface Slide { id: string; + background: [string, string]; elements: PPTElement[]; animations: PPTAnimation[]; } \ No newline at end of file diff --git a/src/views/Editor/Canvas/AlignmentLine.vue b/src/views/Editor/Canvas/AlignmentLine.vue new file mode 100644 index 00000000..000f92a2 --- /dev/null +++ b/src/views/Editor/Canvas/AlignmentLine.vue @@ -0,0 +1,65 @@ + + + + + \ No newline at end of file diff --git a/src/views/Editor/Canvas/GridLines.vue b/src/views/Editor/Canvas/GridLines.vue new file mode 100644 index 00000000..e7bde13a --- /dev/null +++ b/src/views/Editor/Canvas/GridLines.vue @@ -0,0 +1,51 @@ + + + + + \ No newline at end of file diff --git a/src/views/Editor/Canvas/SlideBackground.vue b/src/views/Editor/Canvas/SlideBackground.vue new file mode 100644 index 00000000..60e70552 --- /dev/null +++ b/src/views/Editor/Canvas/SlideBackground.vue @@ -0,0 +1,57 @@ + + + + +