Add custom data for Foundry / RipCrypt custom elements
This commit is contained in:
parent
04ec35113b
commit
27d924e336
3 changed files with 54 additions and 1 deletions
18
.vscode/foundry.html-data.json
vendored
Normal file
18
.vscode/foundry.html-data.json
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"version": 1.1,
|
||||||
|
"globalAttributes": [
|
||||||
|
{ "name": "data-tooltip", "description": "The content for the tooltip to display" },
|
||||||
|
{ "name": "data-tooltip-direction", "description": "The direction that the tooltip renders in, in relation to the element that has the tooltip", "valueSet": "tooltip-direction" }
|
||||||
|
],
|
||||||
|
"valueSets": [
|
||||||
|
{
|
||||||
|
"name": "tooltip-direction",
|
||||||
|
"values": [
|
||||||
|
{ "name": "UP", "description": "Put the tooltip above the element" },
|
||||||
|
{ "name": "LEFT", "description": "Put the tooltip to the left of the element" },
|
||||||
|
{ "name": "RIGHT", "description": "Put the tooltip to the right of element" },
|
||||||
|
{ "name": "DOWN", "description": "Put the tooltip below the element" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
31
.vscode/ripcrypt.html-data.json
vendored
Normal file
31
.vscode/ripcrypt.html-data.json
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
"version": 1.1,
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"name": "rc-icon",
|
||||||
|
"description": "Loads an icon asynchronously, caching the result for future uses",
|
||||||
|
"attributes": [
|
||||||
|
{ "name": "name", "description": "The name of the icon, this is relative to the assets folder of the dotdungeon system" },
|
||||||
|
{ "name": "path", "description": "The full path of the icon, this will only be used if `name` isn't provided or fails to fetch." },
|
||||||
|
{ "name": "var:size", "description": "The size of the icon, must be a valid CSS unit" },
|
||||||
|
{ "name": "var:fill", "description": "The fill of the icon, must be a valid CSS colour" },
|
||||||
|
{ "name": "var:stroke", "description": "The stroke colour of the icon, must be a valid CSS colour" },
|
||||||
|
{ "name": "var:stroke-width", "description": "The stroke width of the icon, must be a valid CSS unit" },
|
||||||
|
{ "name": "var:stroke-linejoin", "description": "The stroke linejoin of the icon, must be a valid CSS value" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "rc-svg",
|
||||||
|
"description": "Loads an icon asynchronously, caching the result for future uses",
|
||||||
|
"attributes": [
|
||||||
|
{ "name": "name", "description": "The name of the icon, this is relative to the assets folder of the dotdungeon system" },
|
||||||
|
{ "name": "path", "description": "The full path of the icon, this will only be used if `name` isn't provided or fails to fetch." },
|
||||||
|
{ "name": "var:size", "description": "The size of the icon, must be a valid CSS unit" },
|
||||||
|
{ "name": "var:fill", "description": "The fill of the icon, must be a valid CSS colour" },
|
||||||
|
{ "name": "var:stroke", "description": "The stroke colour of the icon, must be a valid CSS colour" },
|
||||||
|
{ "name": "var:stroke-width", "description": "The stroke width of the icon, must be a valid CSS unit" },
|
||||||
|
{ "name": "var:stroke-linejoin", "description": "The stroke linejoin of the icon, must be a valid CSS value" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
|
|
@ -4,5 +4,9 @@
|
||||||
},
|
},
|
||||||
"search.exclude": {
|
"search.exclude": {
|
||||||
"foundry.*.link": true
|
"foundry.*.link": true
|
||||||
}
|
},
|
||||||
|
"html.customData": [
|
||||||
|
"./.vscode/foundry.html-data.json",
|
||||||
|
"./.vscode/ripcrypt.html-data.json"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue