Release 1.1.1
Release 1.1.1 adds support for rotating label and custom overlays to match their connectors. Here's our flowchart starter app with this functionality enabled:

This feature is supported both in the edges config for a diagram:
- React
- Vue
- Angular
- Svelte
import { DiagramComponent } from "@visuallyjs/browser-ui-react"
import "@visuallyjs/browser-ui/css/visuallyjs.css";
export default function App() {
const data = ...
const options = {
edges: {
showLabels: true,
labelsRotatable: true,
targetMarker: "PlainArrow"
}
}
return <div style={{width:"100%", height:"500px"}}>
<DiagramComponent data={data} options={options}/>
</div>
}
<script setup>
const options = {
edges: {
showLabels: true,
labelsRotatable: true,
targetMarker: "PlainArrow"
}
}
const data = ...
</script>
<template>
<div class="my-container">
<DiagramComponent :data="data" :options="options"></DiagramComponent>
</div>
</template>
import { VisuallyJsModule } from "@visuallyjs/browser-ui-angular";
import {Component} from "@angular/core";
@Component({
template:`<div style="width:100%;height:500px">
<vjs-diagram [data]="data" [options]="options"/>
</div>`
export class MyComponent {
data = ...
options = {
edges: {
showLabels: true,
labelsRotatable: true,
targetMarker: "PlainArrow"
}
}
}
<script>
import { DiagramComponent } from "@visuallyjs/browser-ui-svelte"
const data = ...
const options = {
edges: {
showLabels: true,
labelsRotatable: true,
targetMarker: "PlainArrow"
}
}
</script>
<div class="my-container">
<DiagramComponent data={data} options={options}/>
</div>
and inside the edges defined in a view for an App:



