From b5cd8327ddbe745072364e482ee31b4fc991afbf Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Mon, 29 Mar 2021 03:52:08 -0700 Subject: [PATCH] Change document, viewport, and canvas terminology --- README.md | 4 +- client/web/.eslintrc.js | 2 +- .../components/panel-system/DockablePanel.vue | 4 +- .../src/components/panel-system/PanelArea.vue | 2 +- .../{ViewportPanel.vue => DocumentPanel.vue} | 43 +++++++++++-------- client/web/src/wasm-callback-processor.js | 4 +- .../web/wasm/src/{viewport.rs => document.rs} | 16 ++++--- client/web/wasm/src/lib.rs | 6 +-- core/editor/src/dispatcher/events.rs | 8 ++-- docs/codebase/architecture-overview.nomnoml | 2 +- docs/editor/1-overview.md | 27 ++++++++---- docs/editor/index.md | 7 ++- 12 files changed, 73 insertions(+), 52 deletions(-) rename client/web/src/components/panels/{ViewportPanel.vue => DocumentPanel.vue} (76%) rename client/web/wasm/src/{viewport.rs => document.rs} (76%) diff --git a/README.md b/README.md index bc772167e..dd9c65a50 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,9 @@ If the Graphite project strikes your fancy, join our Discord community to chat w ## Design mockup -This is a **work-in-progress mockup** of the viewport, properties, and layers panels. The mockup is a nonfunctional pixel-perfect prototype, not code. It is presently being replicated by a functional web UI. +This is a **work-in-progress mockup** of the document, properties, and layers panels. The mockup is a nonfunctional pixel-perfect prototype, not code. It is presently being replicated by a functional web UI. -![Interactive viewport](https://files.keavon.com/-/FatherlyGorgeousAmphiuma/capture.png) +![Demo UI mockup](https://files.keavon.com/-/FatherlyGorgeousAmphiuma/capture.png) ## Vision diff --git a/client/web/.eslintrc.js b/client/web/.eslintrc.js index f09f8675a..e88b2c773 100644 --- a/client/web/.eslintrc.js +++ b/client/web/.eslintrc.js @@ -19,6 +19,6 @@ module.exports = { "linebreak-style": ["error", "unix"], indent: ["error", "tab"], quotes: ["error", "double"], - camelcase: ["error", { ignoreImports: true, ignoreDestructuring: true }] + camelcase: ["error", { ignoreImports: true, ignoreDestructuring: true }], }, }; diff --git a/client/web/src/components/panel-system/DockablePanel.vue b/client/web/src/components/panel-system/DockablePanel.vue index 742230ecd..9b3e8b983 100644 --- a/client/web/src/components/panel-system/DockablePanel.vue +++ b/client/web/src/components/panel-system/DockablePanel.vue @@ -166,7 +166,7 @@