Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Wireflow Laravel Package

getartisanflow/wireflow

View on GitHub
Deep Wiki
Context7

title: Markers description: Arrowhead markers for edges. order: 2

Markers

Markers are SVG arrowheads rendered at edge endpoints. Set markerEnd and markerStart on an edge to apply them.

Built-in marker types

Marker Visual Description
'arrow' Open chevron Unfilled polyline arrowhead
'arrowclosed' Filled triangle Closed and filled arrowhead

Shorthand strings

Use a string for the most common case:

public array $edges = [
    [
        'id' => 'e1',
        'source' => 'a',
        'target' => 'b',
        'markerEnd' => 'arrowclosed',
    ],
    [
        'id' => 'e2',
        'source' => 'b',
        'target' => 'c',
        'markerEnd' => 'arrow',
        'markerStart' => 'arrow',
    ],
];

MarkerConfig array

For full control over color and size, pass an associative array:

public array $edges = [
    [
        'id' => 'e1',
        'source' => 'a',
        'target' => 'b',
        'markerEnd' => [
            'type' => 'arrowclosed',
            'color' => '#ef4444',
            'width' => 15,
            'height' => 15,
        ],
        'markerStart' => 'arrow',
    ],
];
Property Type Default Description
type string (required) 'arrow' or 'arrowclosed'
color string CSS --flow-edge-stroke Stroke and fill color
width int 12 Marker width in stroke-width units
height int 12 Marker height in stroke-width units

::demo

<div x-data="flowCanvas({
    nodes: [
        { id: 'a', position: { x: 0, y: 0 }, data: { label: 'Source' } },
        { id: 'b', position: { x: 300, y: 80 }, data: { label: 'Target' } },
    ],
    edges: [
        { id: 'e1', source: 'a', target: 'b', markerStart: 'arrow', markerEnd: 'arrowclosed' },
    ],
    background: 'dots',
    fitViewOnInit: true,
    controls: false,
    pannable: false,
    zoomable: false,
})" class="flow-container" style="height: 250px;">
    <div x-flow-viewport>
        <template x-for="node in nodes" :key="node.id">
            <div x-flow-node="node">
                <div x-flow-handle:target></div>
                <span x-text="node.data.label"></span>
                <div x-flow-handle:source></div>
            </div>
        </template>
    </div>
</div>

::enddemo

Using both ends

Combine markerStart and markerEnd for bidirectional arrows:

[
    'id' => 'e1',
    'source' => 'a',
    'target' => 'b',
    'markerStart' => 'arrow',
    'markerEnd' => [
        'type' => 'arrowclosed',
        'color' => '#3b82f6',
    ],
]

Deduplication

Markers are deduplicated in SVG <defs> -- identical configurations (same type and color) share a single <marker> element regardless of how many edges use them.

See also

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
steadrun/laravel-monitor
labyrinthe/connect-laravel
elmogy/layan
drewdan/sentinel-client
dskripchenko/laravel-llm
fatryst/nuonuo
stevenay/myanfont
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin