Comments (4)
- 见 ports 设置连接点
ports: [ {placement: 'center'}]
- 在 style 中设置字体,如设置标签字体:
labelFontFamily
如果使用 Typescript 开发,你直接在 style 中输入 fontFamily 就能列出所有可配置字体部分
![image](https://private-user-images.githubusercontent.com/25787943/335476044-d145bbbc-351d-4368-804a-0836382fbb6e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MzcyMzUsIm5iZiI6MTcyMTQzNjkzNSwicGF0aCI6Ii8yNTc4Nzk0My8zMzU0NzYwNDQtZDE0NWJiYmMtMzUxZC00MzY4LTgwNGEtMDgzNjM4MmZiYjZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIwVDAwNTUzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM4NmU4YTk0NjllZWMyY2M3ZTQ5ZmQyMTAwNThmNzViYWJmZGQ0ZDk3OWIyNWZlNzUyNzNiZWQ0M2Y2MWMzMGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.y8OnYcSkN4Z-Zf95O3yuI560V6zYKye-H2WDWkPd98E)
- 状态样式是在默认样式的基础上计算得到的
- 这是目前的计算逻辑所决定的,当前计算的包围盒会考虑边框宽度。后续根据社区反馈再决定是否要调整。
- 这个后面会进行修正
from g6.
- 见 ports 设置连接点
ports: [ {placement: 'center'}]
- 在 style 中设置字体,如设置标签字体:
labelFontFamily
如果使用 Typescript 开发,你直接在 style 中输入 fontFamily 就能列出所有可配置字体部分3. 状态样式是在默认样式的基础上计算得到的 4. 这是目前的计算逻辑所决定的,当前计算的包围盒会考虑边框宽度。后续根据社区反馈再决定是否要调整。 5. 这个后面会进行修正
可以看看我写的demo,就3的,我选中node或combo时,label
字号会变化,combo也会变化,而且我本地还有选中时combo飘移的。
codesandbox
顺便吐槽下,你们这官网图表实例,hover那个codesandbox按钮,tooltip导致滚动来回出现,没法点击。
from g6.
- 见 ports 设置连接点
ports: [ {placement: 'center'}]
- 在 style 中设置字体,如设置标签字体:
labelFontFamily
如果使用 Typescript 开发,你直接在 style 中输入 fontFamily 就能列出所有可配置字体部分3. 状态样式是在默认样式的基础上计算得到的 4. 这是目前的计算逻辑所决定的,当前计算的包围盒会考虑边框宽度。后续根据社区反馈再决定是否要调整。 5. 这个后面会进行修正
可以看看我写的demo,就3的,我选中node或combo时,
label
字号会变化,combo也会变化,而且我本地还有选中时combo飘移的。 codesandbox顺便吐槽下,你们这官网图表实例,hover那个codesandbox按钮,tooltip导致滚动来回出现,没法点击。
你提供的示例无法打开。另外你提到的按钮滚动的问题应该是模版的问题,麻烦去这里提个 Issue 呢:https://github.com/antvis/dumi-theme-antv/ 这个问题应该跟显示设备有关系
from g6.
- 见 ports 设置连接点
ports: [ {placement: 'center'}]
- 在 style 中设置字体,如设置标签字体:
labelFontFamily
如果使用 Typescript 开发,你直接在 style 中输入 fontFamily 就能列出所有可配置字体部分3. 状态样式是在默认样式的基础上计算得到的 4. 这是目前的计算逻辑所决定的,当前计算的包围盒会考虑边框宽度。后续根据社区反馈再决定是否要调整。 5. 这个后面会进行修正
可以看看我写的demo,就3的,我选中node或combo时,
label
字号会变化,combo也会变化,而且我本地还有选中时combo飘移的。 codesandbox
顺便吐槽下,你们这官网图表实例,hover那个codesandbox按钮,tooltip导致滚动来回出现,没法点击。你提供的示例无法打开。另外你提到的按钮滚动的问题应该是模版的问题,麻烦去这里提个 Issue 呢:https://github.com/antvis/dumi-theme-antv/ 这个问题应该跟显示设备有关系
好的,示例忘放开了:codesandbox
from g6.
Related Issues (20)
- 如何恢复被批量更新的自定义节点的样式 HOT 2
- 树图删除中间的某个节点并保留他的子节点 HOT 2
- 5.0版本动态添加元素边,拖拽和缩放画布之后边错位,如果在新增边也是错位的 HOT 1
- Custom React Node with zoom-canvas and drag-canvas displaces the node. HOT 4
- 树图TreeGraph首次render时先触发了afterrender事件 HOT 1
- [v5] Calling render while an existing render is happening causes force layout to flash HOT 1
- gForce 布局,没有设置 preset 依然显示 HOT 1
- Cannot read properties of undefined (reading 'Graph') HOT 2
- Method not implemented. 报错。 HOT 4
- [V5] label 使用padding并且折行的情况下,background宽度不能覆盖全部文字内容 HOT 1
- 【5.x】边选中有偏差 HOT 1
- 【V5】5.0.9 combo updateComboData 更新 icon/badge 等不生效
- cursor 状态不会自动变化 HOT 1
- dagre布局下的combo,如何设置固定宽度,高度由内容自动撑开,或者有api实现节点换行吗
- V5.0.9 自定义节点展开 收缩有问题 HOT 2
- 【V5】树布局中,节点高度不固定的情况下,getHeight按节点实际高度设置,会出现节点布局重叠问题
- 树布局中如何在getWidth中获取节点的宽高
- [V5] hover-activate behavior makes expand/collapse combo breaking HOT 1
- [V5]拖动Custom React Node后,连线错乱 HOT 1
- 【V5】5.0.10 click-select behavior 双击节点后 选择失效 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from g6.