Skip to content

Commit

Permalink
コメントを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
sigprogramming committed Jan 29, 2025
1 parent 4e5335f commit d8fe861
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sing/graphics/pitchLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export type ViewInfo = {
readonly offsetY: number;
};

/**
* ピッチラインを描画するクラス。
*/
export class PitchLine {
color: Color;
width: number;
Expand All @@ -48,6 +51,9 @@ export class PitchLine {
this.container = new PIXI.Container();
}

/**
* ピッチラインを更新する。(パラメーターの変更を適用する)
*/
update(viewInfo: ViewInfo) {
this.container.renderable = this.isVisible;
if (!this.isVisible) {
Expand Down Expand Up @@ -126,6 +132,9 @@ export class PitchLine {
}
}

/**
* 破棄する。
*/
destroy() {
this.lineStripMap.forEach((value) => value.destroy());
this.lineStripMap.clear();
Expand Down

0 comments on commit d8fe861

Please sign in to comment.