[api-minor] Deprecate the SVG back-end
This commit is contained in:
parent
de7d1d2167
commit
90bf659b29
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user