# janinadiers/ba-web-zeichenumgebung architecture

> Architecture diagram of the GitHub repository janinadiers/ba-web-zeichenumgebung, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/janinadiers/ba-web-zeichenumgebung
- Repository: https://github.com/janinadiers/ba-web-zeichenumgebung

## Overview

##### Main Components

a) Frontend Application (This Repository)
- Static Assets Layer
- HTML (index.html)
- CSS (style.css)
- JavaScript Components
- Main Script (script.js)
- Export Functionality (export.js)
- Preview Functionality (preview.js)

b) Backend Service (External Repository)
- Petri Net Recognizer System
- API Endpoints

##### Component Relationships

- index.html ← style.css
- index.html ← script.js
- script.js ← export.js
- script.js ← preview.js
- Frontend → Backend API calls

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Client Environment"
        subgraph "Static Assets"
            HTML["index.html"]:::static
            CSS["style.css"]:::static
        end

        subgraph "JavaScript Components"
            SCRIPT["script.js"]:::script
            EXPORT["export.js"]:::script
            PREVIEW["preview.js"]:::script
        end

        HTML --> CSS
        HTML --> SCRIPT
        SCRIPT --> EXPORT
        SCRIPT --> PREVIEW
    end

    subgraph "Server Environment"
        BACKEND["Petri Net Recognizer"]:::backend
        API["REST API Endpoints"]:::api
        BACKEND --> API
    end

    SCRIPT -. "HTTP Requests" .-> API

    %% Component Mappings
    click HTML "https://github.com/janinadiers/ba-web-zeichenumgebung/blob/main/index.html"
    click CSS "https://github.com/janinadiers/ba-web-zeichenumgebung/blob/main/style.css"
    click SCRIPT "https://github.com/janinadiers/ba-web-zeichenumgebung/blob/main/script.js"
    click EXPORT "https://github.com/janinadiers/ba-web-zeichenumgebung/blob/main/export.js"
    click PREVIEW "https://github.com/janinadiers/ba-web-zeichenumgebung/blob/main/preview.js"

    %% Styling
    classDef static fill:#FFE873,stroke:#333
    classDef script fill:#FFB973,stroke:#333
    classDef backend fill:#98FB98,stroke:#333
    classDef api fill:#DDA0DD,stroke:#333

    %% Legend
    subgraph Legend
        L1["Static Asset"]:::static
        L2["Script Component"]:::script
        L3["Backend Service"]:::backend
        L4["API Endpoint"]:::api
        L5[" "] -. "HTTP Request" .-> L6[" "]
        L7[" "] --> L8[" "]
        L_TEXT["Solid: Direct Dependency<br/>Dashed: API Call"]
    end
```
