Skip to content

Commit

Permalink
fix: ignore api spec and checkin with scriptappy format (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
veinfors committed Feb 10, 2022
1 parent 9bce736 commit 80c7f89
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 13 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
**/index.d.ts
**/spec.json
50 changes: 37 additions & 13 deletions apis/stardust/api-spec/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
"returns": {
"type": "#/definitions/Embed"
},
"examples": ["import { embed } from '@nebula.js/stardust'\nconst n = embed(app);\nn.render({ id: 'abc' });"],
"examples": [
"import { embed } from '@nebula.js/stardust'\nconst n = embed(app);\nn.render({ id: 'abc' });"
],
"entries": {
"createConfiguration": {
"description": "Creates a new `embed` scope bound to the specified `configuration`.\n\nThe configuration is merged with all previous scopes.",
Expand Down Expand Up @@ -353,7 +355,9 @@
"description": "The embed instance used.",
"type": "#/definitions/Embed"
},
"examples": ["import { useEmbed } from '@nebula.js/stardust';\n\nconst embed = useEmbed();\nembed.render(...)"]
"examples": [
"import { useEmbed } from '@nebula.js/stardust';\n\nconst embed = useEmbed();\nembed.render(...)"
]
},
"useTranslator": {
"description": "Gets the translator.",
Expand Down Expand Up @@ -670,7 +674,9 @@
}
]
},
"examples": ["const selections = await n.selections();\nselections.mount(element);"]
"examples": [
"const selections = await n.selections();\nselections.mount(element);"
]
},
"field": {
"description": "Gets the listbox instance of the specified field",
Expand Down Expand Up @@ -822,7 +828,9 @@
}
}
],
"examples": ["fieldInstance.mount(element);"]
"examples": [
"fieldInstance.mount(element);"
]
},
"unmount": {
"description": "Unmounts the field listbox from the DOM.",
Expand All @@ -831,7 +839,9 @@
},
"kind": "function",
"params": [],
"examples": ["listbox.unmount();"]
"examples": [
"listbox.unmount();"
]
}
}
},
Expand Down Expand Up @@ -879,7 +889,9 @@
"description": "Destroys the visualization and removes it from the the DOM.",
"kind": "function",
"params": [],
"examples": ["const viz = await embed(app).render({\n element,\n id: 'abc'\n});\nviz.destroy();"]
"examples": [
"const viz = await embed(app).render({\n element,\n id: 'abc'\n});\nviz.destroy();"
]
},
"convertTo": {
"description": "Converts the visualization to a different registered type",
Expand Down Expand Up @@ -914,7 +926,9 @@
]
}
},
"examples": ["const viz = await embed(app).render({\n element,\n type: 'barchart'\n});\nviz.destroy();"]
"examples": [
"const viz = await embed(app).render({\n element,\n type: 'barchart'\n});\nviz.destroy();"
]
},
"Flags": {
"kind": "interface",
Expand Down Expand Up @@ -952,13 +966,17 @@
"type": "HTMLElement"
}
],
"examples": ["selections.mount(element);"]
"examples": [
"selections.mount(element);"
]
},
"unmount": {
"description": "Unmounts the app selection UI from the DOM.",
"kind": "function",
"params": [],
"examples": ["selections.unmount();"]
"examples": [
"selections.unmount();"
]
}
}
},
Expand Down Expand Up @@ -2022,7 +2040,9 @@
"description": "The resolved color.",
"type": "string"
},
"examples": ["theme.getColorPickerColor({ index: 1 });\ntheme.getColorPickerColor({ color: 'red' });"]
"examples": [
"theme.getColorPickerColor({ index: 1 });\ntheme.getColorPickerColor({ color: 'red' });"
]
},
"getContrastingColorTo": {
"description": "Get the best contrasting color against the specified `color`.\nThis is typically used to find a suitable text color for a label placed on an arbitrarily colored background.\n\nThe returned colors are derived from the theme.",
Expand All @@ -2038,7 +2058,9 @@
"description": "- The color that has the best contrast against the specified `color`.",
"type": "string"
},
"examples": ["theme.getContrastingColorTo('#400');"]
"examples": [
"theme.getContrastingColorTo('#400');"
]
},
"getStyle": {
"description": "Get the value of a style attribute in the theme by searching in the theme's JSON structure.\nThe search starts at the specified base path and continues upwards until the value is found.\nIf possible it will get the attribute's value using the given path.",
Expand All @@ -2064,7 +2086,9 @@
"description": "The style value",
"type": "string"
},
"examples": ["theme.getStyle('object', 'title.main', 'fontSize');\ntheme.getStyle('', '', 'fontSize');"]
"examples": [
"theme.getStyle('object', 'title.main', 'fontSize');\ntheme.getStyle('', '', 'fontSize');"
]
}
},
"definitions": {
Expand Down Expand Up @@ -2289,4 +2313,4 @@
"entries": {}
}
}
}
}

0 comments on commit 80c7f89

Please sign in to comment.