# venshine/beziermaker architecture

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

- Interactive diagram: https://gitdiagram.com/venshine/beziermaker
- Repository: https://github.com/venshine/beziermaker

## Overview

1. The “bezier” module – This is the core library containing the actual implementation of the Bézier drawing logic. It includes:
- Android-specific configuration (AndroidManifest.xml, build.gradle, resources files)
- The main Java package (com.wx.beziermaker) with the key component BezierView.java where the core algorithms and drawing routines are implemented.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Sample Demo Application Subgraph
    subgraph "Sample Demo Application"
        S1["MainActivity (Demo)"]:::component
        S2["UI Layout (activity_main.xml)"]:::layout
        S3a["AndroidManifest.xml"]:::config
        S3b["build.gradle"]:::config
    end

    %% Bezier Library Module Subgraph
    subgraph "Bezier Library Module"
        B1["BezierView (Library)"]:::component
        B2["Algorithm: de Casteljau Computation"]:::algorithm
        B3a["AndroidManifest.xml"]:::config
        B3b["build.gradle"]:::config
        B3c["strings.xml"]:::config
    end

    %% Relationships within Sample Demo Application
    S1 -->|"loadsLayout"| S2
    S1 -->|"usesConfig"| S3a
    S1 -->|"usesConfig"| S3b

    %% Interaction from Sample to Library
    S1 -->|"calls:start,stop,addPoint,delPoint"| B1

    %% Relationships within Bezier Library Module
    B1 -->|"computes"| B2
    B1 -->|"reads"| B3a
    B1 -->|"reads"| B3b
    B1 -->|"reads"| B3c

    %% Click Events for Sample Demo Application
    click S1 "https://github.com/venshine/beziermaker/blob/master/sample/src/main/java/com/wx/beziermaker/demo/MainActivity.java"
    click S2 "https://github.com/venshine/beziermaker/blob/master/sample/src/main/res/layout/activity_main.xml"
    click S3a "https://github.com/venshine/beziermaker/blob/master/sample/src/main/AndroidManifest.xml"
    click S3b "https://github.com/venshine/beziermaker/blob/master/sample/build.gradle"

    %% Click Events for Bezier Library Module
    click B1 "https://github.com/venshine/beziermaker/blob/master/bezier/src/main/java/com/wx/beziermaker/BezierView.java"
    click B3a "https://github.com/venshine/beziermaker/blob/master/bezier/src/main/AndroidManifest.xml"
    click B3b "https://github.com/venshine/beziermaker/blob/master/bezier/build.gradle"
    click B3c "https://github.com/venshine/beziermaker/blob/master/bezier/src/main/res/values/strings.xml"

    %% Class Definitions for Styling
    classDef component fill:#ADD8E6,stroke:#000,stroke-width:1px;
    classDef algorithm fill:#FFD700,stroke:#000,stroke-width:1px;
    classDef config fill:#FFCCCB,stroke:#000,stroke-width:1px;
    classDef layout fill:#90EE90,stroke:#000,stroke-width:1px;
```
