Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

官网优化 #1669

Merged
merged 6 commits into from
Jul 10, 2024
Merged

官网优化 #1669

merged 6 commits into from
Jul 10, 2024

Conversation

FanSun521
Copy link
Collaborator

  1. api方法分类
  2. dumi版本升级
  3. 修复启动warning警告
  4. demo补充
  5. 概念修正和优化

fanyang added 3 commits July 4, 2024 14:05
- 1. 补充节点properties属性demo
- 2. 优化和修正概念解释
- 3. 添加项目模块命名空间,可以单独往某个模块添加依赖
- 4. 矩形、椭圆、多边形、菱形、圆可在properties.style设置样式属性
Copy link

changeset-bot bot commented Jul 8, 2024

⚠️ No Changeset found

Latest commit: 25c9dc3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

package.json Outdated
@@ -133,5 +133,14 @@
"engines": {
"node": ">=16.0.0",
"pnpm": ">=9.0.0"
}
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加这个干什么呢?

width: 100,
height: 100,
scale: 1, // 自定义放大倍数
clicked: false, // 自定义是否被点击
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isClicked

fanyang added 2 commits July 9, 2024 21:28
- 1.文案统一
- 2.增加微信官方号二维码
- 3.快速上手页补充插件使用和数据转换
- 4.文档中,内部导航统一放到右边
- 5.api顺序调整
- 6.处理官网demo-ts报错提示
if (rx) {
this.rx = rx
}
if (ry) {
this.ry = ry
}
// style 需挂载到实例上: 可以通过properties设置每个节点样式属性
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我们直接在 getNodeStyle 中处理 properties 中传入的 style,优先级顺序分别为

theme.baseNode + model.defaultStyle < theme.图形(比如circle、rect)< customStyle (通过 properties 传入的)

// style 需挂载到实例上: 可以通过properties设置每个节点样式属性
if (style) this.style = cloneDeep(style)
// 矩形特有
if (style?.radius) this.radius = style.radius
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

将 radius 提到 properties 中与 widht/height 处理一致。后续在 commonTheme 中移除 radius 这个中间态数据

if (radius) this.radius = radius

@boyongjiong boyongjiong merged commit c5ea58c into next Jul 10, 2024
1 check passed
@boyongjiong boyongjiong deleted the feat/site branch July 10, 2024 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants