Skip to content

Commit

Permalink
Tweak drawing detail
Browse files Browse the repository at this point in the history
  • Loading branch information
shioyadan committed Aug 17, 2019
1 parent 209e3c3 commit bc37382
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions konata_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,11 @@ class KonataRenderer{
// 拡大率によって決定
get canDrawDetailedly(){
let laneHeight = this.laneH_ - this.lane_height_margin_ * 2;
return laneHeight - 2 > 0; // 枠1ピクセルを除いて内部があるかどうか
return laneHeight > 1; // 1 以上あるかどうか
}
get canDrawDependency(){
let laneHeight = this.laneH_ - this.lane_height_margin_ * 2;
return laneHeight - 2 > 2; // 枠1ピクセルを除いて内部があるかどうか
}
get canDrawFrame(){
let laneHeight = this.laneH_ - this.lane_height_margin_ * 2;
Expand Down Expand Up @@ -716,7 +720,7 @@ class KonataRenderer{
// 依存関係の描画
let self = this;

if (!self.canDrawDetailedly) {
if (!self.canDrawDependency) {
return;
}
let arrowBeginOffsetX = self.opW_ * 3 / 4 + self.PIXEL_ADJUST;
Expand Down

0 comments on commit bc37382

Please sign in to comment.