Skip to content

Commit

Permalink
style: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc authored and tiensonqin committed Dec 28, 2022
1 parent 5b1a323 commit 2673cbe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions tldraw/apps/tldraw-logseq/src/lib/shapes/LineShape.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ export class LineShape extends TLLineShape<LineShapeProps> {
id,
} = this.props
const labelSize =
label || isEditing
? getTextLabelSize(
label,
{ fontFamily: 'var(--ls-font-family)', fontSize, lineHeight: 1, fontWeight },
6
)
: [0, 0]
label || isEditing
? getTextLabelSize(
label,
{ fontFamily: 'var(--ls-font-family)', fontSize, lineHeight: 1, fontWeight },
6
)
: [0, 0]
const midPoint = Vec.med(start.point, end.point)
const dist = Vec.dist(start.point, end.point)
const scale = Math.max(
Expand Down Expand Up @@ -149,13 +149,13 @@ export class LineShape extends TLLineShape<LineShapeProps> {
} = this.props
const bounds = this.getBounds()
const labelSize =
label || isEditing
? getTextLabelSize(
label,
{ fontFamily: 'var(--ls-font-family)', fontSize, lineHeight: 1, fontWeight },
6
)
: [0, 0]
label || isEditing
? getTextLabelSize(
label,
{ fontFamily: 'var(--ls-font-family)', fontSize, lineHeight: 1, fontWeight },
6
)
: [0, 0]
const midPoint = Vec.med(start.point, end.point)
const dist = Vec.dist(start.point, end.point)
const scale = Math.max(
Expand Down
2 changes: 1 addition & 1 deletion tldraw/apps/tldraw-logseq/src/lib/shapes/arrow/Arrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const Arrow = React.memo(function StraightArrow({
const arrowDist = Vec.dist(start, end)
if (arrowDist < 2) return null
const { strokeWidth } = style
const sw = 1 + strokeWidth * levelToScale[scaleLevel ?? 'md'] / 10
const sw = 1 + (strokeWidth * levelToScale[scaleLevel ?? 'md']) / 10
// Path between start and end points
const path = 'M' + Vec.toFixed(start) + 'L' + Vec.toFixed(end)
// Arrowheads
Expand Down

0 comments on commit 2673cbe

Please sign in to comment.