mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 17:06:23 +00:00
fix: enlarge arrow head
This commit is contained in:
@@ -263,6 +263,7 @@ export class LogseqPortalShape extends TLBoxShape<LogseqPortalShapeProps> {
|
||||
// @ts-expect-error ???
|
||||
'--ls-primary-background-color': fill,
|
||||
'--ls-primary-text-color': stroke,
|
||||
'--ls-title-text-color': stroke,
|
||||
}}
|
||||
>
|
||||
<LogseqPortalShapeHeader type="P" pageId={pageId} />
|
||||
|
||||
@@ -32,7 +32,7 @@ export const Arrow = React.memo(function StraightArrow({
|
||||
// Path between start and end points
|
||||
const path = 'M' + Vec.toFixed(start) + 'L' + Vec.toFixed(end)
|
||||
// Arrowheads
|
||||
const arrowHeadLength = Math.min(arrowDist / 3, strokeWidth * 8)
|
||||
const arrowHeadLength = Math.min(arrowDist / 3, strokeWidth * 16)
|
||||
const startArrowHead = decorationStart
|
||||
? getStraightArrowHeadPoints(start, end, arrowHeadLength)
|
||||
: null
|
||||
|
||||
@@ -46,7 +46,7 @@ export function getArrowPath(
|
||||
) {
|
||||
const strokeWidth = style.strokeWidth
|
||||
const arrowDist = Vec.dist(start, end)
|
||||
const arrowHeadLength = Math.min(arrowDist / 3, strokeWidth * 8)
|
||||
const arrowHeadLength = Math.min(arrowDist / 3, strokeWidth * 16)
|
||||
const path: (string | number)[] = []
|
||||
path.push(`M ${start} L ${end}`)
|
||||
if (decorationStart) {
|
||||
|
||||
Reference in New Issue
Block a user