veheeavis Example

Cybertrcuk-EEA

Guide

Installation

npm install veheeavis

Basic Usage

veheeavis is a JavaScript library for visualizing vehicle EEA (Electrical/Electronic Architecture). It helps you create interactive ECU connection diagrams.

Example Code

const diagram = new veheeavis.Ploteeavis({
    container: '#diagram',
    data: {
        modules: [
            {
                id: "1",
                name: "AutopilotECU",
                type: "ECU",
                position: { x: 350, y: 50, width: 150, height: 100, color: "#ccc" },
                leftArray: [{ portid: "leftport0", portcolor: 0 }],
                rightArray: [{ portid: "rightport0", portcolor: 0 }]
            }
            // ... 更多模块
        ],
        connections: [
            {
                from: "AutopilotECU",
                to: "LeftController",
                fromPort: "leftport0",
                toPort: "rightport0"
            }
            // ... 更多连接
        ]
    }
});

Configuration