Commit 344ae89 1 parent 9aa10cb commit 344ae89 Copy full SHA for 344ae89
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,10 @@ const searchVoicedSections = (phonemes: FramePhoneme[]) => {
73
73
};
74
74
75
75
const render = () => {
76
- if (! canvasWidth ) {
76
+ if (canvasWidth == undefined ) {
77
77
throw new Error (" canvasWidth is undefined." );
78
78
}
79
- if (! canvasHeight ) {
79
+ if (canvasHeight == undefined ) {
80
80
throw new Error (" canvasHeight is undefined." );
81
81
}
82
82
if (! renderer ) {
@@ -104,7 +104,7 @@ const render = () => {
104
104
}
105
105
// ピッチラインの生成・更新を行う
106
106
for (const [phraseKey, phrase] of phrases ) {
107
- if (! phrase .singer || ! phrase .query || ! phrase .startTime ) {
107
+ if (! phrase .singer || ! phrase .query || phrase .startTime == undefined ) {
108
108
continue ;
109
109
}
110
110
const tempos = [toRaw (phrase .tempos [0 ])];
You can’t perform that action at this time.
0 commit comments