Skip to content

Commit

Permalink
Remove renderIcons method
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Nov 27, 2023
1 parent d31c264 commit 4fae56f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
3 changes: 3 additions & 0 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ export type ISurveyEnvironment = {
root: Document | ShadowRoot,
rootElement: HTMLElement | ShadowRoot,
popupMountContainer: HTMLElement | string,
/**
* @deprecated
*/
svgMountContainer: HTMLElement | string,
stylesSheetsMountContainer: HTMLElement,
}
Expand Down
14 changes: 0 additions & 14 deletions src/svgbundle.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { settings, ISurveyEnvironment } from "./settings";
import { getElement } from "./utils/utils";

class SvgIconData {
[key: string]: string
}
Expand Down Expand Up @@ -58,17 +55,6 @@ export class SvgIconRegistry {
public iconsRenderedHtml() {
return Object.keys(this.icons).map(icon => this.icons[icon]).join("");
}
public renderIcons() {
const containerId = "sv-icon-holder-global-container";
if(!!settings.environment && !settings.environment.root.getElementById(containerId)) {
let iconsDiv = document.createElement("div");
iconsDiv.id = containerId;
iconsDiv.innerHTML = "<svg>" + this.iconsRenderedHtml() + "</svg>";
iconsDiv.style.display = "none";

getElement(settings.environment.svgMountContainer).appendChild(iconsDiv);
}
}
}
export var SvgRegistry: SvgIconRegistry = new SvgIconRegistry();
export var SvgBundleViewModel: any;
Expand Down

0 comments on commit 4fae56f

Please sign in to comment.