Skip to content

Commit 7112eea

Browse files
committed
Fix wrong table formatting due to typescript OR operator
1 parent 25502a2 commit 7112eea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

content/api/Konva.Animation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Animation constructor.
1818
| Name | Type | Description |
1919
| ---- | ---- | ----------- |
2020
| func | `AnimationFn` | function executed on each animation frame. The function is passed a frame object, which contains timeDiff, lastTime, time, and frameRate properties. The timeDiff property is the number of milliseconds that have passed since the last animation frame. The time property is the time in milliseconds that elapsed from the moment the animation started to the current animation frame. The lastTime property is a `time` value from the previous frame. The frameRate property is the current frame rate in frames / second. Return false from function, if you don't need to redraw layer/layers on some frames. |
21-
| layers (optional) | `Konva.Layer|Array` | layer(s) to be redrawn on each animation frame. Can be a layer, an array of layers, or null. Not specifying a node will result in no redraw. |
21+
| layers (optional) | `Konva.Layer\|Array` | layer(s) to be redrawn on each animation frame. Can be a layer, an array of layers, or null. Not specifying a node will result in no redraw. |
2222

2323
## Own Methods
2424

content/api/Konva.Stage.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Stage constructor. A stage is used to contain multiple layers
1818
| Name | Type | Description |
1919
| ---- | ---- | ----------- |
2020
| config | `Object` | |
21-
| container | `String|Element` | Container selector or DOM element |
21+
| container | `String\|Element` | Container selector or DOM element |
2222
| x (optional) | `Number` | |
2323
| y (optional) | `Number` | |
2424
| width (optional) | `Number` | |

create-api-docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ ${docItem.longname === 'Konva' ? 'sidebar_position: 1' : ''}
178178
markdown += `| ---- | ---- | ----------- |\n`;
179179
docItem.params.forEach((param) => {
180180
const name = param.name.replace('config.', '');
181-
const type = param.type ? param.type.names.join('|') : 'any';
181+
const type = param.type ? param.type.names.join('\\|') : 'any';
182182
const description = param.description
183183
? processDescription(param.description)
184184
: '';

0 commit comments

Comments
 (0)