From 6f538c6264a4dee35e3b046cb91ea30a4bdb0994 Mon Sep 17 00:00:00 2001 From: Leilukin Date: Sun, 23 Jun 2024 12:24:16 +0800 Subject: [PATCH] Update Grounded Wren's SVG icon control script --- src/assets/js/svgIconControl.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/assets/js/svgIconControl.js b/src/assets/js/svgIconControl.js index 05c27ba8..69d513fa 100644 --- a/src/assets/js/svgIconControl.js +++ b/src/assets/js/svgIconControl.js @@ -79,7 +79,7 @@ registerNamespace("GW.Controls.SVGLib", function(ns) { const ICON_CLASS = "icon"; /** - * Icon SVG path definitions + * Icon SVG path definitions */ ns.Icons = { "circle-info": { @@ -322,6 +322,17 @@ registerNamespace("GW.Controls.SVGLib", function(ns) { ICON_CITATION ); + iconEl.insertAdjacentHTML("afterbegin", + `` + ); + createChildElement( iconEl, ns.ElementTypes.title, @@ -415,6 +426,16 @@ registerNamespace("GW.Controls", function(ns) { } //Markup + this.insertAdjacentHTML("beforebegin", + `` + ); this.appendChild( ns.SVGLib.createIcon( this.iconObj,