From 8494f4698f5d0c814a92b82ceae9f92ac1094e50 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Wed, 21 Sep 2022 21:20:22 +0800 Subject: [PATCH 1/4] feat:add search navigate --- index.html | 6 +++ src/assets/images/arrow-left.svg | 1 + src/assets/images/arrow-right.svg | 1 + src/editor/core/command/Command.ts | 12 ++++++ src/editor/core/command/CommandAdapt.ts | 23 +++++++++- src/editor/core/draw/Draw.ts | 17 ++------ src/editor/core/draw/interactive/Search.ts | 50 +++++++++++++++++++++- src/editor/index.ts | 1 + src/editor/interface/Editor.ts | 1 + src/main.ts | 6 +++ src/style.css | 46 ++++++++++++++++++++ 11 files changed, 148 insertions(+), 16 deletions(-) create mode 100644 src/assets/images/arrow-left.svg create mode 100644 src/assets/images/arrow-right.svg diff --git a/index.html b/index.html index 2503cfe..6925fc4 100644 --- a/index.html +++ b/index.html @@ -194,6 +194,12 @@