Comments (1)
@Zaynex Sorry for the late response.
-
In the current, we only support to add elements via APIs and we will think about this feature.
-
Here's an example code to show you
how to find the topic
:
const mainTopic1 = topic.add({title: 'main topic 1'}).cid() //or topic.cid('main topic 1')
const sameSubtopic1 = topic.on(mainTopic1).add({title: 'same subtopic 1'}).cid()
console.info('first:', sameSubtopic1)
const sameSubtopic2 = topic.add({title: 'same subtopic 1'}).cid()
console.info('second:', sameSubtopic2)
PS:
-
We allow adding the same topic on the map, but we advise to avoid this.
-
It returns the first one found if there is a duplicate topic when you call
.cid()
with title. -
You can also to save the IDs step by step as the above example code.
from xmind-sdk-js.
Related Issues (20)
- I have XMind to SQL HOT 4
- 可以支持将节点更换结构吗?例如将逻辑图更换成矩阵图🙏 HOT 1
- js 怎么解析xmind 文件 HOT 3
- TpeError: Class extends value undefined is not a constructor or null HOT 2
- It fails to open the zip file if there're some Chinese characters have been included HOT 9
- [BUG]broswer使用插件时报错 Cannot find module './robust-fdb2b57a.json' HOT 1
- 节点过多时,报错 Maximum call stack size exceeded
- x
- How can I create relationShip and floatTopic? HOT 1
- 是都可以在react项目中开发xmind功能
- Allow empty string as topic title HOT 4
- 请问Dumper 是干什么用的呢
- 请问Zipper是干什么用的呢 ?
- 是否已经适配了最新发版的引擎呢? HOT 4
- 如果用第三方的库实现对 xmind 文件的编辑,会违规吗? HOT 2
- documentation: boundaries, styles? HOT 4
- Broken sourcemap HOT 3
- 怎么添加外框的功能
- I can't seem to find the appropriate APIs for opening an existing xmind and exporting it to an image.
- Need help In Reconstructing MindMap HOT 6
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 xmind-sdk-js.