diff --git a/src/display/canvas.js b/src/display/canvas.js index eebfdbcc4..bf959b24f 100644 --- a/src/display/canvas.js +++ b/src/display/canvas.js @@ -13,6 +13,13 @@ * limitations under the License. */ +import { + deprecated, + getCurrentTransform, + getCurrentTransformInverse, + getRGB, + PixelsPerInch, +} from "./display_utils.js"; import { FeatureTest, FONT_IDENTITY_MATRIX, @@ -26,12 +33,6 @@ import { Util, warn, } from "../shared/util.js"; -import { - getCurrentTransform, - getCurrentTransformInverse, - getRGB, - PixelsPerInch, -} from "./display_utils.js"; import { getShadingPattern, PathType, @@ -1184,6 +1185,9 @@ class CanvasGraphics { this.baseTransform = getCurrentTransform(this.ctx); if (this.imageLayer) { + deprecated( + "The `imageLayer` functionality will be removed in the future." + ); this.imageLayer.beginLayout(); } }