Skip to content

Commit c7c8172

Browse files
gokaysatireszkadev
authored andcommitted
Add type strings to derived and base classes.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: Id071599b60febd88f0c1c276613b1805644ea375
1 parent 4e89640 commit c7c8172

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

browser/mocha_tests/CanvasSectionContainer.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
/// <reference path="../src/app/TilesMiddleware.ts" />
1717
/// <reference path="../src/app/Rectangle.ts" />
1818
/// <reference path="../src/app/LOUtil.ts" />
19+
/// <reference path="../src/app/ViewLayout.ts" />
1920
/// <reference path="../src/app/ViewLayoutMultiPage.ts" />
2021
/// <reference path="./helper/canvasContainerSetup.ts" />
2122
/// <reference path="./helper/rectUtil.ts" />

browser/src/app/DocumentBase.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212

1313
class DocumentBase {
14+
public readonly type: string = 'DocumentBase';
1415
public activeView: ViewLayoutBase;
1516
protected _fileSize: cool.SimplePoint;
1617

browser/src/app/ViewLayout.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*/
1111

1212
class ViewLayoutBase {
13+
public readonly type: string = 'ViewLayoutBase';
1314
protected _viewedRectangle: cool.SimpleRectangle;
1415
private lastViewedRectangle: cool.SimpleRectangle;
1516
protected clientVisibleAreaCommand: string = '';

browser/src/app/ViewLayoutMultiPage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class LayoutPageRectangle extends cool.SimpleRectangle {
1818
}
1919

2020
class MultiPageViewLayout extends ViewLayoutBase {
21+
public readonly type: string = 'MultiPageViewLayout';
2122
public gapBetweenPages = 20; // Core pixels.
2223
public availableWidth = 0;
2324
private maxRowsSize = 2;

0 commit comments

Comments
 (0)