Skip to content

Commit

Permalink
docs: add some config for node-tool (#3416)
Browse files Browse the repository at this point in the history
  • Loading branch information
NewByVector authored Mar 23, 2023
1 parent 2b65127 commit 632b7dc
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 189 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"update:deps": "pnpm update --interactive --latest --recursive",
"setup:husky": "husky install .husky",
"prepare": "is-ci || run-p setup:husky build:dev",
"start": "cd ./examples/x6-example-features && pnpm start"
"start:demo": "cd ./examples/x6-example-features && pnpm start",
"start:site": "cd ./sites/x6-sites && pnpm start"
},
"rss": {
"clean:turbo": "rimraf .turbo",
Expand Down
6 changes: 3 additions & 3 deletions packages/x6/src/registry/tool/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ export class Button extends ToolsView.ToolItem<

export namespace Button {
export interface Options extends ToolsView.ToolItem.Options {
x?: number
y?: number
distance?: number
x?: number | string
y?: number | string
distance?: number | string
offset?: number | Point.PointLike
rotate?: boolean
useCellGeometry?: boolean
Expand Down
87 changes: 62 additions & 25 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sites/x6-sites/docs/api/registry/edge-tool.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ graph.addEdge({

| 参数名 | 类型 | 默认值 | 说明 |
| -------- | -------------------------------------------------------------------- | ----------- | ------------------------------ |
| distance | number | `undefined` | 偏离起点的距离或比例。 |
| distance | number \| string | `undefined` | 偏离起点的距离或比例。 |
| offset | number \| Point.PointLike | `0` |`distance` 基础上的偏移量。 |
| rotate | boolean | `undefined` | 是否跟随边旋转。 |
| markup | Markup.JSONMarkup | `undefined` | 渲染按钮的 Markup 定义。 |
Expand Down
Loading

0 comments on commit 632b7dc

Please sign in to comment.