Quote from: Mate on May 16, 2024, 22:38:54 PMUnder properties.appearance there is a checkbox option called "Show Label" that does what I want, so was wondering if that can be done programmatically.
connection.labelVisible = false;
selectedView = ... // Get the View you want to work with
// Find each ArchiMate relation in the View and delete the visual connection
$(selectedView).find('relation').each(connection => {
connection.delete();
});
selectedView = ... // Get the View you want to work with
// Find each ArchiMate relation in the View and reset name
$(selectedView).find('relation').each(connection => {
connection.name = "";
});
selectedView = ... // Get the View you want to work with
// Find each ArchiMate relation in the View and assign label expression
$(selectedView).find('relation').each(connection => {
connection.labelExpression = "${property:empty}";
});
<run .ajs script here> | socat - /tmp/mysock.sock
import { Server } from "net";
const server = Server({});
server.on("connection", (client) => {
client.on("data", (data) => {
// use data here
}
});
server.listen("/tmp/mysock.sock");