From ddb21e55ec54d557ba4412f213668f5aa9ffa7d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6kay=20=C5=9Eat=C4=B1r?= Date: Thu, 16 Jan 2025 12:31:34 +0300 Subject: [PATCH] Use contentControl class definition directly. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gökay Şatır Change-Id: Icd9f3e79e90e277c6ba251867534aa8e3d572af4 --- browser/src/canvas/sections/ContentControlSection.ts | 2 +- browser/src/layer/tile/CanvasTileLayer.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/browser/src/canvas/sections/ContentControlSection.ts b/browser/src/canvas/sections/ContentControlSection.ts index 91e22e9a8cd52..c6a306d817f98 100644 --- a/browser/src/canvas/sections/ContentControlSection.ts +++ b/browser/src/canvas/sections/ContentControlSection.ts @@ -14,7 +14,7 @@ declare var app: any; namespace cool { -export class ContentControlSection extends app.definitions.canvasSectionObject { +export class ContentControlSection extends CanvasSectionObject { name: string = L.CSections.ContentControl.name; processingOrder: number = L.CSections.ContentControl.processingOrder; drawingOrder: number = L.CSections.ContentControl.drawingOrder; diff --git a/browser/src/layer/tile/CanvasTileLayer.js b/browser/src/layer/tile/CanvasTileLayer.js index b298a575c1144..62f7b270dd74b 100644 --- a/browser/src/layer/tile/CanvasTileLayer.js +++ b/browser/src/layer/tile/CanvasTileLayer.js @@ -3,7 +3,7 @@ * L.CanvasTileLayer is a layer with canvas based rendering. */ -/* global app L JSDialog CanvasSectionContainer GraphicSelection CanvasOverlay CDarkOverlay CSplitterLine CursorHeaderSection $ _ CPointSet CPolyUtil CPolygon Cursor CCellSelection PathGroupType UNOKey UNOModifier Uint8ClampedArray Uint8Array OtherViewCellCursorSection */ +/* global app L JSDialog CanvasSectionContainer GraphicSelection CanvasOverlay CDarkOverlay CSplitterLine CursorHeaderSection $ _ CPointSet CPolyUtil CPolygon Cursor CCellSelection PathGroupType UNOKey UNOModifier Uint8ClampedArray Uint8Array cool OtherViewCellCursorSection */ /*eslint no-extend-native:0*/ if (typeof String.prototype.startsWith !== 'function') { @@ -1588,7 +1588,7 @@ L.CanvasTileLayer = L.Layer.extend({ else if (textMsg.startsWith('contentcontrol:')) { textMsg = textMsg.substring('contentcontrol:'.length + 1); if (!app.sectionContainer.doesSectionExist(L.CSections.ContentControl.name)) { - app.sectionContainer.addSection(new app.definitions.ContentControlSection()); + app.sectionContainer.addSection(new cool.ContentControlSection()); } var section = app.sectionContainer.getSectionWithName(L.CSections.ContentControl.name); section.drawContentControl(JSON.parse(textMsg));