forked from Helioviewer-Project/helioviewer.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidated tileLayerData params into separate object to improve rea…
…dability after difference bug fix.
- Loading branch information
Helioviewer-Kirill
committed
Jun 11, 2018
1 parent
a18cd0a
commit 038a546
Showing
3 changed files
with
82 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//container object for params used during tile layer creation and mutation | ||
class TileLayerData { | ||
constructor(id, sourceId, difference, diffCount, diffTime, baseDiffTime, | ||
onDifference, onDiffCount, onDiffTime, onDiffDate, hierarchy, | ||
index, name, visible, startOpened, opacity, onOpacityChange){ | ||
|
||
this.id = id; | ||
this.sourceId = sourceId; | ||
this.difference = difference; | ||
this.diffCount = diffCount; | ||
this.diffTime = diffTime; | ||
this.baseDiffTime = baseDiffTime; | ||
this.onDifference = onDifference; | ||
this.onDiffCount = onDiffCount; | ||
this.onDiffTime = onDiffTime; | ||
this.onDiffDate = onDiffDate; | ||
this.hierarchy = hierarchy; | ||
this.index = index; | ||
this.name = name; | ||
this.visible = visible; | ||
this.startOpened = startOpened; | ||
this.opacity = opacity; | ||
this.onOpacityChange = onOpacityChange; | ||
|
||
} | ||
} |