From 90bf659b29f22e9854ef795c1ba5fbc97c9667df Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 16 Jul 2022 10:24:24 +0200 Subject: [PATCH] [api-minor] Deprecate the SVG back-end --- src/display/svg.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/display/svg.js b/src/display/svg.js index a0e9813e9..e24f47332 100644 --- a/src/display/svg.js +++ b/src/display/svg.js @@ -14,6 +14,7 @@ */ /* globals __non_webpack_require__ */ +import { deprecated, DOMSVGFactory } from "./display_utils.js"; import { FONT_IDENTITY_MATRIX, IDENTITY_MATRIX, @@ -24,7 +25,6 @@ import { Util, warn, } from "../shared/util.js"; -import { DOMSVGFactory } from "./display_utils.js"; import { isNodeJS } from "../shared/is_node.js"; /** @type {any} */ @@ -467,6 +467,9 @@ if ( SVGGraphics = class { constructor(commonObjs, objs, forceDataSchema = false) { + deprecated( + "The SVG back-end is no longer maintained and *may* be removed in the future." + ); this.svgFactory = new DOMSVGFactory(); this.current = new SVGExtraState();