From 0a6cce903efcb857c0cebb5543c7880e2f057212 Mon Sep 17 00:00:00 2001
From: Timo Dittmann
Date: Wed, 12 Jan 2022 10:48:34 +0100
Subject: [PATCH] Added text features (#704)
* Added letter spacing
* Added word spacing
* Added textLength
* Added lengthAdjust
* Added lengthAdjust
---
.../ui/__snapshots__/scenario.js.snap | 134 ++++++++++++++++++
cypress/integration/ui/scenario.js | 29 ++++
src/editor/images/letter_spacing.svg | 17 +++
src/editor/images/text_length.svg | 19 +++
src/editor/images/word_spacing.svg | 15 ++
src/editor/locale/lang.af.js | 6 +
src/editor/locale/lang.ar.js | 6 +
src/editor/locale/lang.az.js | 6 +
src/editor/locale/lang.be.js | 6 +
src/editor/locale/lang.bg.js | 6 +
src/editor/locale/lang.ca.js | 6 +
src/editor/locale/lang.cs.js | 6 +
src/editor/locale/lang.cy.js | 6 +
src/editor/locale/lang.da.js | 6 +
src/editor/locale/lang.de.js | 6 +
src/editor/locale/lang.el.js | 6 +
src/editor/locale/lang.en.js | 6 +
src/editor/locale/lang.es.js | 6 +
src/editor/locale/lang.et.js | 6 +
src/editor/locale/lang.fa.js | 6 +
src/editor/locale/lang.fi.js | 6 +
src/editor/locale/lang.fr.js | 6 +
src/editor/locale/lang.fy.js | 6 +
src/editor/locale/lang.ga.js | 6 +
src/editor/locale/lang.gl.js | 6 +
src/editor/locale/lang.he.js | 6 +
src/editor/locale/lang.hi.js | 6 +
src/editor/locale/lang.hr.js | 6 +
src/editor/locale/lang.hu.js | 6 +
src/editor/locale/lang.hy.js | 6 +
src/editor/locale/lang.id.js | 6 +
src/editor/locale/lang.is.js | 6 +
src/editor/locale/lang.it.js | 6 +
src/editor/locale/lang.ja.js | 6 +
src/editor/locale/lang.ko.js | 6 +
src/editor/locale/lang.lt.js | 6 +
src/editor/locale/lang.lv.js | 6 +
src/editor/locale/lang.mk.js | 6 +
src/editor/locale/lang.ms.js | 6 +
src/editor/locale/lang.mt.js | 6 +
src/editor/locale/lang.nl.js | 6 +
src/editor/locale/lang.no.js | 6 +
src/editor/locale/lang.pl.js | 6 +
src/editor/locale/lang.pt-BR.js | 6 +
src/editor/locale/lang.pt-PT.js | 6 +
src/editor/locale/lang.ro.js | 6 +
src/editor/locale/lang.ru.js | 6 +
src/editor/locale/lang.sk.js | 6 +
src/editor/locale/lang.sl.js | 6 +
src/editor/locale/lang.sq.js | 6 +
src/editor/locale/lang.sr.js | 6 +
src/editor/locale/lang.sv.js | 6 +
src/editor/locale/lang.sw.js | 6 +
src/editor/locale/lang.test.js | 6 +
src/editor/locale/lang.th.js | 6 +
src/editor/locale/lang.tl.js | 6 +
src/editor/locale/lang.tr.js | 6 +
src/editor/locale/lang.uk.js | 6 +
src/editor/locale/lang.vi.js | 6 +
src/editor/locale/lang.yi.js | 6 +
src/editor/locale/lang.zh-CN.js | 6 +
src/editor/locale/lang.zh-HK.js | 6 +
src/editor/locale/lang.zh-TW.js | 6 +
src/editor/panels/TopPanel.html | 16 +++
src/editor/panels/TopPanel.js | 36 +++++
src/svgcanvas/elem-get-set.js | 64 +++++++++
src/svgcanvas/sanitize.js | 2 +-
src/svgcanvas/svgcanvas.js | 4 +
68 files changed, 683 insertions(+), 1 deletion(-)
create mode 100644 src/editor/images/letter_spacing.svg
create mode 100644 src/editor/images/text_length.svg
create mode 100644 src/editor/images/word_spacing.svg
diff --git a/cypress/integration/ui/__snapshots__/scenario.js.snap b/cypress/integration/ui/__snapshots__/scenario.js.snap
index db0a2bd4..1d90542d 100644
--- a/cypress/integration/ui/__snapshots__/scenario.js.snap
+++ b/cypress/integration/ui/__snapshots__/scenario.js.snap
@@ -730,3 +730,137 @@ exports[`use various parts of svg-edit > check tool_text_decoration_overline #0`
+
+
+
+
+
+
+
+