docs: remove extra right bracket (#737)

This commit is contained in:
Li Kang
2022-01-12 13:11:21 +01:00
committed by GitHub
parent 2dbe30df1e
commit 1f0d5f0870
3 changed files with 5 additions and 5 deletions

View File

@@ -1939,7 +1939,7 @@
"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": {

View File

@@ -83,8 +83,8 @@ export default function theme() {
* @returns {string} The style value
*
* @example
* theme.getStyle('object', 'title.main', 'fontSize'));
* theme.getStyle('', '', 'fontSize'));
* theme.getStyle('object', 'title.main', 'fontSize');
* theme.getStyle('', '', 'fontSize');
*/
getStyle(basePath, path, attribute) {
if (!styleResolverInstanceCache[basePath]) {

View File

@@ -896,8 +896,8 @@ The search starts at the specified base path and continue upwards until the valu
If possible it will get the attribute's value using the given path.
```js
theme.getStyle('object', 'title.main', 'fontSize'));
theme.getStyle('', '', 'fontSize'));
theme.getStyle('object', 'title.main', 'fontSize');
theme.getStyle('', '', 'fontSize');
```
#### interface: ScalePalette