Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create schema for PBDLSharedMasterNode #28

Open
ivan-015 opened this issue Jul 13, 2021 · 0 comments
Open

Create schema for PBDLSharedMasterNode #28

ivan-015 opened this issue Jul 13, 2021 · 0 comments
Assignees

Comments

@ivan-015
Copy link
Contributor

ivan-015 commented Jul 13, 2021

The schema for PBDLSharedMasterNode should contain all the attributes of PBDLNode, in addition to the following:

  • availableOverrideProperties - a list of overrideProperty objects of the Shared Master.

The overrideProperty object shall contain the attributes of PBDLNode in addition to the following:

  • properties - a list of the properties of the element that can be overridden.

Below is a shortened example of what a PBDLSharedMasterNode should look like:

{
	"type": "pbdl_shared_master_node",
	"UUID": "<UUID>", // What PBDL `instances` will reference as "symbolID"
	"availableOverrideProperties": [
		{
			"type": "overrideProperty",
			"UUID": "<UUID>", // What PBDL `overrideValues` will reference as "propertyUUID"
			"properties": [
				{ // sample property
					"type": "color",
					"value": "0x00000000" // default value. For sketch, we need to do a lookup inside symbol master's layers to find this value
				},
				{
					"type": "corner_radii",
					"value": [35,35,35,35] // default value. For sketch, we need to do a lookup inside symbol master's layers to find this value
				}
			],
		}
	],
}
@ivan-015 ivan-015 self-assigned this Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant