manifest
manifest Property
Description
The manifest property retrieves the manifest data for the current diagram, returning a JSON string
containing a list of symbols and associated data.
To access this property, use the get method of the AutoSceneDrawWeb object, as shown in the example below.
Example - Get Diagram Manifest
editor = new window.__editor(undefined, document.getElementById('editor-node'));
editor.startup(...);
// Get the manifest data.
const manifest = editor.get('manifest');
Remarks
Manifest data is returned in JSON format. The data structure is illustrated below:
[
{
"source": "Man_Front",
"rotation": 0,
"location": {
"latitude": 43.60273193825536,
"longitude": -116.19551393631463
},
"data": [
{
"name": "Address",
"value": "7387 W. Wind Dr",
"id": 0
},
{
"name": "City",
"value": "Boise",
"id": 1
},
{
"name": "State",
"value": "Idaho",
"id": 2
},
{
"name": "Zip Code",
"value": "83709",
"id": 3
},
{
"name": "Country",
"value": "USA",
"id": 4
},
{
"name": "Eye Color",
"value": "Brown",
"id": 5
},
{
"name": "Hair Color",
"value": "Black",
"id": 6
}
]
},
{
"source": "Pickup",
"rotation": 0,
"location": {
"latitude": 43.60271401990029,
"longitude": -116.19549739229788
},
"data": [
{
"name": "VIN",
"value": "1G1YW2DW0A1JB9MJ9",
"show": false,
"id": 0
},
{
"name": "Type",
"value": "Pickup",
"show": false,
"id": 1
},
{
"name": "Year",
"value": "2021",
"show": true,
"id": 2
},
{
"name": "Make",
"value": "Ford",
"show": true,
"id": 3
},
{
"name": "Model",
"value": "F150",
"show": true,
"id": 4
},
{
"name": "Color",
"value": "green",
"show": false,
"id": 5
}
]
}
]