From: Marc Foley Date: Wed, 12 Feb 2025 16:26:51 +0000 (+0000) Subject: wip axes adder X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39b41b2d75db7bd73265913b15d385ddd208ab69;p=thirdparty%2Fgoogle%2Ffonts.git wip axes adder --- diff --git a/.ci/tags.html b/.ci/tags.html index f20b19a29..15886c36d 100644 --- a/.ci/tags.html +++ b/.ci/tags.html @@ -80,11 +80,25 @@ -
- - - +
+
+ Pos {{ idx+1 }} +
+ + +
+
+
@@ -331,8 +345,27 @@ } }, methods: { + addAxis() { - this.newAxes.push({name: "wght", min: 100, max: 900}); + if (this.newAxes.length === 0) { + this.newAxes.push({axes: [{tag: "", coordinate: ""}], score: ""}) + this.newAxes.push({axes: [{tag: "", coordinate: ""}], score: ""}) + return; + } + this.newAxes.forEach((axisSet) => { + axisSet.axes.push({tag: "", coordinate: ""}) + }) + + // copy and dup + let newSet = [] + this.newAxes.forEach((axisSet) => { + let newAxisSet = {axes: [], score: axisSet.score} + axisSet.axes.forEach((axis) => { + newAxisSet.axes.push({tag: axis.tag, coordinate: axis.coordinate}) + }) + newSet.push(newAxisSet) + }) + this.newAxes = this.newAxes.concat(newSet); }, sortedCategories() { return Array.from(this.categories).sort();