forked from comozilla/parapara-canvas-editor
-
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.
- Loading branch information
Ayato Sakurai
authored and
Ayato Sakurai
committed
May 7, 2016
1 parent
dd36df9
commit bafc989
Showing
6 changed files
with
107 additions
and
102 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 |
---|---|---|
@@ -1,22 +1,23 @@ | ||
import eventPublisher from "./../publisher"; | ||
|
||
function LineWidthPickerPanel(elem) { | ||
// このelem には、input[type="range"] 要素が入ってくる(はず)。 | ||
this.element = elem; | ||
class LineWidthPickerPanel{ | ||
constructor(){ | ||
this.element = elem; | ||
eventPublisher.subscribe("lineWidth", (lineWidth) => { | ||
this.element.value = lineWidth; | ||
}); | ||
this.element.addEventListener("change", event => { | ||
eventPublisher.publish("lineWidth", event.target.value); | ||
}); | ||
} | ||
} | ||
|
||
LineWidthPickerPanel.prototype.changeMaxLineWidth = function(maxLineWidth) { | ||
// TODO | ||
}; | ||
changeMaxLineWidth(){ | ||
|
||
LineWidthPickerPanel.prototype.changeMinLineWidth = function(minLineWidth) { | ||
// TODO | ||
}; | ||
|
||
changeMinLineWidth(){ | ||
// TODO | ||
} | ||
} | ||
export default LineWidthPickerPanel; |
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import eventPublisher from "./../publisher"; | ||
|
||
function PlayerView(element) { | ||
this.element = element; | ||
class PlayerView{ | ||
constructor(){ | ||
this.element = element; | ||
this.element.addEventListener("click", () => { | ||
eventPublisher.publish("isPlaying", true); | ||
}); | ||
}); | ||
} | ||
} | ||
|
||
export default PlayerView; |
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