From 0287c1e668a8568949b80020580d643a4d7e9158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BA=91=E9=A3=9E?= Date: Fri, 25 Feb 2022 16:13:37 +0800 Subject: [PATCH] feat:add page break --- index.html | 3 ++ src/assets/images/page-break.svg | 1 + src/editor/core/command/Command.ts | 6 +++ src/editor/core/command/CommandAdapt.ts | 11 +++++- src/editor/core/draw/Draw.ts | 14 ++++++- src/editor/core/draw/particle/PageBreak.ts | 44 ++++++++++++++++++++++ src/editor/dataset/enum/Element.ts | 3 +- src/editor/interface/Row.ts | 3 +- src/main.ts | 5 +++ src/style.css | 4 ++ 10 files changed, 88 insertions(+), 6 deletions(-) create mode 100644 src/assets/images/page-break.svg create mode 100644 src/editor/core/draw/particle/PageBreak.ts diff --git a/index.html b/index.html index 2acc94c..6e8745c 100644 --- a/index.html +++ b/index.html @@ -157,6 +157,9 @@ +