Skip to content

Commit

Permalink
Use contentControl class definition directly.
Browse files Browse the repository at this point in the history
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Icd9f3e79e90e277c6ba251867534aa8e3d572af4
  • Loading branch information
gokaysatir committed Jan 21, 2025
1 parent a236553 commit ddb21e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion browser/src/canvas/sections/ContentControlSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions browser/src/layer/tile/CanvasTileLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit ddb21e5

Please sign in to comment.