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", "description": "The style value",
"type": "string" "type": "string"
}, },
"examples": ["theme.getStyle('object', 'title.main', 'fontSize'));\ntheme.getStyle('', '', 'fontSize'));"] "examples": ["theme.getStyle('object', 'title.main', 'fontSize'));\ntheme.getStyle('', '', 'fontSize');"]
} }
}, },
"definitions": { "definitions": {

View File

@@ -83,8 +83,8 @@ export default function theme() {
* @returns {string} The style value * @returns {string} The style value
* *
* @example * @example
* theme.getStyle('object', 'title.main', 'fontSize')); * theme.getStyle('object', 'title.main', 'fontSize');
* theme.getStyle('', '', 'fontSize')); * theme.getStyle('', '', 'fontSize');
*/ */
getStyle(basePath, path, attribute) { getStyle(basePath, path, attribute) {
if (!styleResolverInstanceCache[basePath]) { 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. If possible it will get the attribute's value using the given path.
```js ```js
theme.getStyle('object', 'title.main', 'fontSize')); theme.getStyle('object', 'title.main', 'fontSize');
theme.getStyle('', '', 'fontSize')); theme.getStyle('', '', 'fontSize');
``` ```
#### interface: ScalePalette #### interface: ScalePalette