Skip to content

Commit

Permalink
Doc: update
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglin2 committed Apr 9, 2024
1 parent 088fd39 commit 5bff885
Show file tree
Hide file tree
Showing 4 changed files with 1,595 additions and 4 deletions.
6 changes: 5 additions & 1 deletion web/src/pages/Doc/en/constructor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const mindMap = new MindMap({

| Field Name | Type | Default Value | Description | Required |
| -------------------------------- | ------- | ---------------- | ------------------------------------------------------------ | -------- |
| el | Element | | Container element, must be a DOM element | Yes |
| el | Element | | Container element, must be a DOM element(When the position of container elements on the page has changed but the size has not changed, the 'getElRectInfo()' method must be called to update the relevant information inside the library; When the size also changes, the 'resize()' method must be called, otherwise it will cause some functional exceptions) | Yes |
| data | Object 、null | | Mind map data, Please refer to the introduction of 【Data structure】 below. V0.9.9+supports passing empty objects or null, and the canvas will display blank space | |
| layout | String | logicalStructure | Layout type, options: logicalStructure (logical structure diagram), mindMap (mind map), catalogOrganization (catalog organization diagram), organizationStructure (organization structure diagram)、timeline(v0.5.4+, timeline)、timeline2(v0.5.4+, up down alternating timeline)、fishbone(v0.5.4+, fishbone diagram) | |
| fishboneDeg(v0.5.4+) | Number | 45 | Set the diagonal angle of the fishbone structure diagram | |
Expand Down Expand Up @@ -355,6 +355,10 @@ Current Theme Configuration.

## Instance methods

### getElRectInfo()

Update the position and size information of container elements. Be sure to call this method to update information when the position of container elements on the page changes. If the size of container elements has also changed, please call the 'resize' method.

### updateData(data)

> v0.9.9+
Expand Down
Loading

0 comments on commit 5bff885

Please sign in to comment.