Skip to content

Commit

Permalink
fix: fix edge preview arrow style
Browse files Browse the repository at this point in the history
should not draw edge preview as outline, otherwise the arrow will not filled
  • Loading branch information
bubkoo committed Dec 13, 2019
1 parent fed85af commit 343b398
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/x6/src/handler/edge/handler.ts
Expand Up @@ -1549,7 +1549,6 @@ export class EdgeHandler extends MouseHandler {
this.previewShape.apply(this.state)
this.previewShape.points = this.absolutePoints
this.previewShape.scale = this.state.view.scale
this.previewShape.shadow = false

const args = {
graph: this.graph,
Expand All @@ -1558,10 +1557,8 @@ export class EdgeHandler extends MouseHandler {
}

applySelectionPreviewStyle(args)
this.previewShape.outline = true
this.previewShape.shadow = false
this.previewShape.cursor = getSelectionPreviewCursor(args)

this.previewShape.shadow = false
this.previewShape.redraw()
}

Expand Down

0 comments on commit 343b398

Please sign in to comment.