Basic document handling
This commit is contained in:
351
BEdit/src/bedit/data/libraries/test.bedit.json
Normal file
351
BEdit/src/bedit/data/libraries/test.bedit.json
Normal file
@@ -0,0 +1,351 @@
|
||||
{
|
||||
"format": "bedit-document",
|
||||
"version": 1,
|
||||
"metadata": {
|
||||
"name": "Untitled"
|
||||
},
|
||||
"roots": [
|
||||
{
|
||||
"id": "97cd3d0b-c36a-467e-b1f5-4c794979bd99",
|
||||
"name": "something",
|
||||
"position": {
|
||||
"x": 0.0,
|
||||
"y": 0.0
|
||||
},
|
||||
"rotation": 0.0,
|
||||
"interface": {
|
||||
"inputs": [
|
||||
{
|
||||
"id": "in",
|
||||
"name": "Input",
|
||||
"position": {
|
||||
"x": 0.0,
|
||||
"y": 0.0
|
||||
},
|
||||
"properties": {}
|
||||
}
|
||||
],
|
||||
"outputs": []
|
||||
},
|
||||
"icon": {
|
||||
"shape": "rectangle",
|
||||
"fill": "#f4f4f4",
|
||||
"border": "#303030",
|
||||
"text": "Something"
|
||||
},
|
||||
"properties": {},
|
||||
"library": {
|
||||
"showSubtree": true
|
||||
},
|
||||
"implementation": {
|
||||
"kind": "text",
|
||||
"source": {
|
||||
"equations": [],
|
||||
"parameters": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "614b4018-c00e-40ce-b59c-5d5795eab7d0",
|
||||
"name": "Test",
|
||||
"position": {
|
||||
"x": 0.0,
|
||||
"y": 0.0
|
||||
},
|
||||
"rotation": 0.0,
|
||||
"interface": {
|
||||
"inputs": [],
|
||||
"outputs": []
|
||||
},
|
||||
"icon": {
|
||||
"shape": "rectangle",
|
||||
"fill": "#f4f4f4",
|
||||
"border": "#303030",
|
||||
"text": "Test"
|
||||
},
|
||||
"properties": {},
|
||||
"library": {
|
||||
"showSubtree": false
|
||||
},
|
||||
"implementation": {
|
||||
"kind": "graph",
|
||||
"graph": {
|
||||
"blocks": [
|
||||
{
|
||||
"id": "4ad9ab39-f332-4a9e-ae1a-02141b90a4ce",
|
||||
"name": "sin",
|
||||
"position": {
|
||||
"x": -28.0,
|
||||
"y": -179.0
|
||||
},
|
||||
"rotation": 0.0,
|
||||
"interface": {
|
||||
"inputs": [
|
||||
{
|
||||
"id": "input-0bcb214f",
|
||||
"name": "a",
|
||||
"position": {
|
||||
"x": -223.0,
|
||||
"y": -161.0
|
||||
},
|
||||
"properties": {}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"id": "output-a55cd289",
|
||||
"name": "b",
|
||||
"position": {
|
||||
"x": 133.0,
|
||||
"y": -152.0
|
||||
},
|
||||
"properties": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
"icon": {
|
||||
"shape": "rectangle",
|
||||
"fill": "#f4f4f4",
|
||||
"border": "#303030",
|
||||
"text": "sin()"
|
||||
},
|
||||
"properties": {},
|
||||
"library": {
|
||||
"showSubtree": false
|
||||
},
|
||||
"implementation": {
|
||||
"kind": "graph",
|
||||
"graph": {
|
||||
"blocks": [],
|
||||
"connections": [
|
||||
{
|
||||
"id": "cef30af9-fdc5-4a28-a7d6-4ab3c83e65d7",
|
||||
"source": {
|
||||
"interface": "input-0bcb214f"
|
||||
},
|
||||
"target": {
|
||||
"interface": "output-a55cd289"
|
||||
},
|
||||
"name": "",
|
||||
"properties": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "88f40d88-f62b-432f-a6a0-95513b48409e",
|
||||
"name": "constant",
|
||||
"position": {
|
||||
"x": -260.0,
|
||||
"y": -178.0
|
||||
},
|
||||
"rotation": 0.0,
|
||||
"interface": {
|
||||
"inputs": [],
|
||||
"outputs": [
|
||||
{
|
||||
"id": "output-1e15ff3f",
|
||||
"name": "Output 1",
|
||||
"position": {
|
||||
"x": 71.0,
|
||||
"y": -134.0
|
||||
},
|
||||
"properties": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
"icon": {
|
||||
"shape": "rectangle",
|
||||
"fill": "#f4f4f4",
|
||||
"border": "#303030",
|
||||
"text": "C"
|
||||
},
|
||||
"properties": {},
|
||||
"library": {
|
||||
"showSubtree": true
|
||||
},
|
||||
"implementation": {
|
||||
"kind": "graph",
|
||||
"graph": {
|
||||
"blocks": [],
|
||||
"connections": []
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "88941f2d-8edd-4dd9-a07b-3f206f6b76c5",
|
||||
"name": "New Text Block 1",
|
||||
"position": {
|
||||
"x": 225.0,
|
||||
"y": -167.0
|
||||
},
|
||||
"rotation": 0.0,
|
||||
"interface": {
|
||||
"inputs": [
|
||||
{
|
||||
"id": "in",
|
||||
"name": "Input",
|
||||
"position": {
|
||||
"x": 0.0,
|
||||
"y": 0.0
|
||||
},
|
||||
"properties": {}
|
||||
}
|
||||
],
|
||||
"outputs": []
|
||||
},
|
||||
"icon": {
|
||||
"shape": "rectangle",
|
||||
"fill": "#f4f4f4",
|
||||
"border": "#303030",
|
||||
"text": "Text"
|
||||
},
|
||||
"properties": {},
|
||||
"library": {
|
||||
"showSubtree": true
|
||||
},
|
||||
"implementation": {
|
||||
"kind": "text",
|
||||
"source": {
|
||||
"equations": [],
|
||||
"parameters": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": [
|
||||
{
|
||||
"id": "b3837790-26ba-46a6-91f9-3b6808c7ad1a",
|
||||
"source": {
|
||||
"block": "88f40d88-f62b-432f-a6a0-95513b48409e",
|
||||
"port": "output-1e15ff3f"
|
||||
},
|
||||
"target": {
|
||||
"block": "4ad9ab39-f332-4a9e-ae1a-02141b90a4ce",
|
||||
"port": "input-0bcb214f"
|
||||
},
|
||||
"name": "",
|
||||
"properties": {}
|
||||
},
|
||||
{
|
||||
"id": "50b2c7aa-d824-407c-ae0f-6b3bb4b1b79e",
|
||||
"source": {
|
||||
"block": "4ad9ab39-f332-4a9e-ae1a-02141b90a4ce",
|
||||
"port": "output-a55cd289"
|
||||
},
|
||||
"target": {
|
||||
"block": "88941f2d-8edd-4dd9-a07b-3f206f6b76c5",
|
||||
"port": "in"
|
||||
},
|
||||
"name": "",
|
||||
"properties": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "465796f5-9075-45f6-81b9-7fa17476392c",
|
||||
"name": "sin",
|
||||
"position": {
|
||||
"x": 0.0,
|
||||
"y": 0.0
|
||||
},
|
||||
"rotation": 0.0,
|
||||
"interface": {
|
||||
"inputs": [
|
||||
{
|
||||
"id": "input-0bcb214f",
|
||||
"name": "Input 1",
|
||||
"position": {
|
||||
"x": -223.0,
|
||||
"y": -161.0
|
||||
},
|
||||
"properties": {}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"id": "output-a55cd289",
|
||||
"name": "Output 1",
|
||||
"position": {
|
||||
"x": 133.0,
|
||||
"y": -152.0
|
||||
},
|
||||
"properties": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
"icon": {
|
||||
"shape": "rectangle",
|
||||
"fill": "#f4f4f4",
|
||||
"border": "#303030",
|
||||
"text": "sin()"
|
||||
},
|
||||
"properties": {},
|
||||
"library": {
|
||||
"showSubtree": false
|
||||
},
|
||||
"implementation": {
|
||||
"kind": "graph",
|
||||
"graph": {
|
||||
"blocks": [],
|
||||
"connections": [
|
||||
{
|
||||
"id": "029ccfaa-7150-4a53-beec-286ff8e2a628",
|
||||
"source": {
|
||||
"interface": "input-0bcb214f"
|
||||
},
|
||||
"target": {
|
||||
"interface": "output-a55cd289"
|
||||
},
|
||||
"name": "",
|
||||
"properties": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bb0adff3-baf2-469b-9a80-f05910d0f259",
|
||||
"name": "constant",
|
||||
"position": {
|
||||
"x": 0.0,
|
||||
"y": 0.0
|
||||
},
|
||||
"rotation": 0.0,
|
||||
"interface": {
|
||||
"inputs": [],
|
||||
"outputs": [
|
||||
{
|
||||
"id": "output-1e15ff3f",
|
||||
"name": "Output 1",
|
||||
"position": {
|
||||
"x": 71.0,
|
||||
"y": -134.0
|
||||
},
|
||||
"properties": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
"icon": {
|
||||
"shape": "rectangle",
|
||||
"fill": "#f4f4f4",
|
||||
"border": "#303030",
|
||||
"text": "C"
|
||||
},
|
||||
"properties": {},
|
||||
"library": {
|
||||
"showSubtree": true
|
||||
},
|
||||
"implementation": {
|
||||
"kind": "graph",
|
||||
"graph": {
|
||||
"blocks": [],
|
||||
"connections": []
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user