-
-
Notifications
You must be signed in to change notification settings - Fork 860
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
82 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# line_style Option | ||
|
||
| Option Name | Data Type | Default Value | Description | | ||
| --- | --- | --- | --- | | ||
| line_style | string | curved | The style of the mind map lines, curved or straight | | ||
|
||
## Option Description | ||
|
||
The `line_style` option is used to set the style of the lines connecting the nodes in the mind map. This option supports the following two styles: | ||
|
||
- `curved` - curved lines. This is the default value. | ||
- `straight` - straight lines | ||
|
||
## Usage Example | ||
|
||
Below is an example of setting the `line_style` option: | ||
|
||
```javascript | ||
var options = { | ||
container: 'jsmind_container', | ||
editable: true, | ||
theme: 'primary', | ||
view: { | ||
line_style: 'straight', // Set the line style to straight | ||
} | ||
}; | ||
``` | ||
|
||
In the example above, the `line_style` option is set to straight. This setting will affect the style of the lines connecting the nodes in the mind map. | ||
|
||
<img width="399" alt="image" src="https://github.com/hizzgdev/jsmind/assets/1690290/a21f82c7-1913-4fe1-b854-4921ea55523d"> | ||
|
||
## Related Options and Settings | ||
|
||
### custom_line_render | ||
|
||
The `custom_line_render` option allows users to customize the rendering method of the mind map lines. With this option, users can have full control over the drawing process of the lines. | ||
|
||
For more information, please refer to the [custom_line_render option](option.view.custom_line_render.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# line_style 选项 | ||
|
||
| 选项名 | 数据类型 | 默认值 | 说明 | | ||
| --- | --- | --- | --- | | ||
| line_style | string | curved | 思维导图线条的样式,曲线或直线 | | ||
|
||
## 选项说明 | ||
|
||
`line_style` 选项用于设置思维导图中各节点之间连线的样式。此选项支持以下两种样式: | ||
|
||
- `curved` - 曲线,这是默认值。 | ||
- `straight` - 直线。 | ||
|
||
需要注意的是,`line_style` 的样式可以被 `custom_line_render` 所覆盖。 | ||
|
||
## 使用示例 | ||
|
||
以下是一个设置 `line_style` 选项的示例: | ||
|
||
```javascript | ||
var options = { | ||
container: 'jsmind_container', | ||
editable: true, | ||
theme: 'primary', | ||
view: { | ||
line_style: 'straight', // 设置线条样式为直线 | ||
} | ||
}; | ||
``` | ||
|
||
在上述示例中,`line_style` 选项被设置为直线(straight)。这个设置将影响思维导图中各节点之间连线的样式。 | ||
|
||
<img width="399" alt="image" src="https://github.com/hizzgdev/jsmind/assets/1690290/a21f82c7-1913-4fe1-b854-4921ea55523d"> | ||
|
||
## 相关选项和设置 | ||
|
||
### custom_line_render | ||
|
||
`custom_line_render` 选项允许用户自定义思维导图线条的渲染方法。通过此选项,用户可以完全控制线条的绘制过程。 | ||
|
||
更多信息请参考 [custom_line_render 选项](option.view.custom_line_render.md)。 |