From 08d68c511df63ee22b318d115fd1ced659a2f9e9 Mon Sep 17 00:00:00 2001
From: Philipp Stadler <a51820432@unet.univie.ac.at>
Date: Tue, 20 Feb 2024 19:05:39 +0100
Subject: [PATCH] chore: use default renderer on ankidroid

Excluding code on the back has fixed the rendering glitches with the default renderer.
---
 .../.apkg-spec.yaml"                                        | 6 +++---
 src/components/write/write.ts                               | 5 -----
 src/templates/molaoshi/.template-spec.yaml                  | 2 +-
 3 files changed, 4 insertions(+), 9 deletions(-)

diff --git "a/content/Chinesisch lernen f\303\274r die Sinologie, Band 1/.apkg-spec.yaml" "b/content/Chinesisch lernen f\303\274r die Sinologie, Band 1/.apkg-spec.yaml"
index 47930c2..78c064e 100644
--- "a/content/Chinesisch lernen f\303\274r die Sinologie, Band 1/.apkg-spec.yaml"	
+++ "b/content/Chinesisch lernen f\303\274r die Sinologie, Band 1/.apkg-spec.yaml"	
@@ -5,7 +5,7 @@ templates:
 
 content:
 - import_csv:
-    content_version: 2024-02-20 18:30:00+00:00
+    content_version: 2024-02-20 18:33:00+00:00
     note_type: Vokabeln
     file_patterns:
     - 'Vokabeln/*.csv'
@@ -20,7 +20,7 @@ content:
     - Beispiele
     tags: []
 - import_csv:
-    content_version: 2024-02-20 18:30:00+00:00
+    content_version: 2024-02-20 18:33:00+00:00
     note_type: Vokabeln
     file_patterns:
     - 'Vokabeln (Strichnamen)/*.csv'
@@ -35,7 +35,7 @@ content:
     tags: []
 - import_csv:
     note_type: Vokabeln
-    content_version: 2024-02-20 18:30:00+00:00
+    content_version: 2024-02-20 18:33:00+00:00
     file_patterns:
     - 'Zeichenkomponenten/*.csv'
     deck_name_pattern: '{{content_folder}}::{{from_basename}}::{{card_type}}'
diff --git a/src/components/write/write.ts b/src/components/write/write.ts
index 8deb344..e3f6d01 100644
--- a/src/components/write/write.ts
+++ b/src/components/write/write.ts
@@ -1,7 +1,6 @@
 import HanziWriter, { type HanziWriterOptions } from 'hanzi-writer'
 import { type Strokes, createStrokes } from './strokes'
 import { colorBg, colorFg, colorHighlight } from './colors'
-import { Platform, isOnPlatform } from '../platform'
 import { GetHanziDataKind, getHanziData } from '../hanzi-data'
 
 const globalId = 'strichfolge-animation'
@@ -130,10 +129,6 @@ function initWrite (
       if (opts.highlightRadical === true) {
         hanziWriterOpts.radicalColor = colorHighlight
       }
-      if (isOnPlatform(Platform.AnkiDroid)) {
-        // looks less beatiful, but avoids some AnkiDroid glitches
-        hanziWriterOpts.renderer = 'canvas'
-      }
       // use bundled data if available, so it works offline most of the time
       const preloadedData = getHanziData({ char, kind: GetHanziDataKind.ANY })
       if (preloadedData !== undefined) {
diff --git a/src/templates/molaoshi/.template-spec.yaml b/src/templates/molaoshi/.template-spec.yaml
index 77beb0b..5cc35fb 100644
--- a/src/templates/molaoshi/.template-spec.yaml
+++ b/src/templates/molaoshi/.template-spec.yaml
@@ -1,4 +1,4 @@
-template_version: 2024-02-20 18:30:00+00:00
+template_version: 2024-02-20 18:33:00+00:00
 
 note_type:
   id: 2024-02-20 12:00:00+00:00
-- 
GitLab