Skip to content

Commit

Permalink
build: v8.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
liihuu committed Jun 27, 2022
1 parent a9ef676 commit da55719
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/en/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log
## 8.6.0
`To be released`
`2022-06-28`
+ 🆕 Api `setShapeOptions` add `points` parameter.
+ 🆕 Add `minHeight` for pane.
+ 🆕 When the technical indicator template `plot.type` is `line`, add the property `isDashed` and segment.
Expand Down
7 changes: 6 additions & 1 deletion docs/en/instance-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,15 @@ Create a technical indicator, the return value is a string that identifies the w
- `paneOptions` window configuration information, which can be defaulted, `{ id, height, dragEnabled }`
- `id` window id, default. Special paneId: candle_pane, the window id of the main image
- `height` The height of the window
- `minHeight` The min height of the window
- `dragEnbaled` window can be adjusted by dragging

Example:
```javascript
chart.createTechnicalIndicator('MA', false, {
id:'pane_1',
height: 100,
minHeihgt: 50
dragEnabled: true
})
```
Expand Down Expand Up @@ -263,8 +265,9 @@ Get shape information.

### setShapeOptions(options)
Set the drawn shape configuration.
- `options` configuration, `{ id, styles, lock, mode }`
- `options` configuration, `{ id, points, styles, lock, mode, data }`
- `id` calls the createShape method to return the identity, by default it set all
- `points` point
- `styles` style, the format is the same in the configuration of `shape`
- `lock` is lock
- `mode` mode type, 'normal' | 'weak_magnet' | 'strong_magnet'
Expand Down Expand Up @@ -472,12 +475,14 @@ Set pane options.
- `options` pane options `{ id, height, dragEnabled }`
- `id` pane id
- `height` The height of the window
- `minHeight` The min height of the window
- `dragEnbaled` window can be adjusted by dragging
Example:
```javascript
chart.setPaneOptions({
id: 'pane_1',
height: 100,
minHeight: 50,
dragEnabled: true
})
```
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-CN/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 更新日志
## 8.6.0
`待发布`
`2022-06-28`
+ 🆕 Api `setShapeOptions`新增`points`参数。
+ 🆕 窗口参数新增`minHeight`
+ 🆕 技术指标模版`plot.type``line`时,新增属性`isDashed`和分段。
Expand Down
5 changes: 5 additions & 0 deletions docs/zh-CN/instance-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,15 @@
- `paneOptions` 窗口配置信息,可缺省, `{ id, height, dragEnabled }`
- `id` 窗口id,可缺省。特殊的paneId: candle_pane,主图的窗口id
- `height` 窗口高度,可缺省
- `minHeight` 窗口最小高度,可缺省
- `dragEnbaled` 窗口是否可以拖拽调整高度,可缺省

示例:
```javascript
chart.createTechnicalIndicator('MA', false, {
id: 'pane_1',
height: 100,
minHeight: 50,
dragEnabled: true
})
```
Expand Down Expand Up @@ -265,6 +267,7 @@ chart.createShape({
设置已绘制的图形标记配置。
- `options` 配置, `{ id, styles, lock, mode, data }`
- `id` 图形标记标识,缺省则设置所有的
- `points` 点信息
- `styles` 样式,可缺省,格式同样式配置中 `shape` 一致
- `lock` 是否锁定,可缺省
- `mode` 模式类型,可缺省,类型为'normal' | 'weak_magnet' | 'strong_magnet'
Expand Down Expand Up @@ -467,13 +470,15 @@ chart.createHtml({
- `options` 窗口配置 `{ id, height, dragEnabled }`
- `id` 窗口id
- `height` 窗口高度,可缺省
- `minHeihgt`: 最小高度,可缺省
- `dragEnbaled` 窗口是否可以拖拽调整高度,可缺省

示例:
```javascript
chart.setPaneOptions({
id: 'pane_1',
height: 100,
minHeight: 50,
dragEnabled: true
})
```
Expand Down

0 comments on commit da55719

Please sign in to comment.