tuanchauict / MonoSketch

An ASCII graph drawing app
https://monosketch.io
Apache License 2.0
386 stars 11 forks source link

Update the mono file format with more information #465

Closed tuanchauict closed 1 year ago

tuanchauict commented 1 year ago

Instead of storing the root group as the main content of the JSON file, create a new class for the mono file. Sample:

{
    "root": {
        "i": "01-AAtCb+0HOere+Tl28pvlYowBuZY",
        "v": 1586431400,
        "ss": [
            {
                "type": "T",
                "i": "01-AAsmqv4f4f7AEmAOR3tej8UNgMC",
                "v": -656325960,
                "b": "17|13|16|3",
                "t": "Hello World!",
                "e": {
                    "be": {
                        "fe": true,
                        "fu": "F1",
                        "be": true,
                        "bu": "S1",
                        "du": "1|0|0"
                    },
                    "tha": 1,
                    "tva": 1
                }
            }
        ]
    },
    "extra": {
        "name": "this is file",
        "offset": "104|71"
    },
    "version": 1,
    "modified_timestamp_millis": 1684026059297
}