MarkMindCkm / obsidian-markmind

A mind map, outline for obsidian,It support mobile and desktop
797 stars 35 forks source link

rich模式白屏,报错:Cannot read properties of null (reading 'getCBox') #716

Closed fang004 closed 1 year ago

fang004 commented 1 year ago

页面模式:mindmap-plugin: rich 详细描述:在界面上操作由树状改成table展示(当时展示正常),关闭后再次该文档白屏。 系统:macOS 10.15.7 OB:Version 1.1.16 (Installer 1.1.9) obsidian-markmind:1.7.4 console报错: [Uncaught TypeError: Cannot read properties of null (reading 'getCBox')](plugin:obsidian-markmind:15 Uncaught TypeError: Cannot read properties of null (reading 'getCBox'))

fang004 commented 1 year ago

`---

mindmap-plugin: rich


Root

{"theme":"","mindData":[[{"id":"63b95ed9-86bd-bf71","text":"BBB","isRoot":true,"main":true,"x":5000,"y":5000,"isExpand":true,"layout":{"layoutName":"mindmap2","direct":"right"},"stroke":"","style":{"background-color":"#44CEF6"}}],[{"id":"62ac724f-79c4-556e","text":"freeNode","main":false,"x":882,"y":722,"layout":{"layoutName":"mindmap2","direct":"mindmap"},"isExpand":true,"stroke":""}],[{"id":"5758b6af-8f10-764c","text":"AAA","stroke":"","x":5156,"y":5006,"layout":{"layoutName":"mindmap2","direct":"right"},"isExpand":true,"pid":"63b95ed9-86bd-bf71","style":{},"main":false},{"id":"8088547e-e825-620a","text":"G","stroke":"#925ef2","x":5281,"y":4982,"isExpand":true,"layout":{"layoutName":"table","direct":""},"pid":"5758b6af-8f10-764c","style":{}},{"id":"ff7802a7-f734-a244","text":"T","stroke":"#155cb2","x":5281,"y":5050,"layout":null,"isExpand":true,"pid":"5758b6af-8f10-764c","style":{}},{"id":"8cac0432-a67e-87f3","text":"工信部","stroke":"#925ef2","x":5490,"y":4972,"layout":null,"isExpand":true,"pid":"8088547e-e825-620a","style":{}},{"id":"a8a8afb3-f032-5564","text":"集团","stroke":"#925ef2","x":5490,"y":5006,"layout":null,"isExpand":false,"pid":"8088547e-e825-620a","style":{}},{"id":"1eca5699-ede6-ad14","text":"科技SDK","stroke":"#925ef2","x":10,"y":1837,"layout":null,"isExpand":true,"pid":"a8a8afb3-f032-5564","style":{}},{"id":"033236b9-c80e-b1af","text":"其他评分项目","stroke":"#925ef2","x":10,"y":1837,"layout":null,"isExpand":true,"pid":"a8a8afb3-f032-5564","style":{}}]],"induceData":[],"wireFrameData":[{"stroke":"rgb(42,122,194)","fill":"rgba(213,233,252,.1)","lineDash":[6,2],"data":{"text":"人员","nodeType":"wireFrame"},"radius":10,"lineWidth":1,"nodeId":"8088547e-e825-620a","endNodeId":"ff7802a7-f734-a244","range":"0,1","nodeData":{"id":"856e9819-01bc-01d4","text":"人员","nodeType":"wireFrame","style":{"padding-left":6,"padding-right":6,"padding-bottom":4,"padding-top":4,"background-color":"rgb(16, 151, 232)","color":"white","fontSize":12},"x":5281,"y":4942,"layout":null,"isExpand":true,"stroke":""},"text":"人员"}],"relateLinkData":[],"calloutData":[]}

`

MarkMindCkm commented 1 year ago

找到问题了,不能外框表格,否则会出问题,这是修改后的

{"theme":"","mindData":[[{"id":"63b95ed9-86bd-bf71","text":"BBB","isRoot":true,"main":true,"x":5000,"y":5000,"isExpand":true,"layout":{"layoutName":"mindmap2","direct":"right"},"stroke":"","style":{"background-color":"#44CEF6"}}],[{"id":"62ac724f-79c4-556e","text":"freeNode","main":false,"x":882,"y":722,"layout":{"layoutName":"mindmap2","direct":"mindmap"},"isExpand":true,"stroke":""}],[{"id":"5758b6af-8f10-764c","text":"AAA","stroke":"","x":5156,"y":5006,"layout":{"layoutName":"mindmap2","direct":"right"},"isExpand":true,"pid":"63b95ed9-86bd-bf71","style":{},"main":false},{"id":"8088547e-e825-620a","text":"G","stroke":"#925ef2","x":5281,"y":4923,"isExpand":true,"layout":{"layoutName":"table","direct":""},"pid":"5758b6af-8f10-764c","style":{}},{"id":"ff7802a7-f734-a244","text":"T","stroke":"#155cb2","x":5281,"y":5109,"layout":null,"isExpand":true,"pid":"5758b6af-8f10-764c","style":{}},{"id":"8cac0432-a67e-87f3","text":"工信部","stroke":"#925ef2","x":5281,"y":4909,"layout":null,"isExpand":true,"pid":"8088547e-e825-620a","style":{}},{"id":"a8a8afb3-f032-5564","text":"集团","stroke":"#925ef2","x":5281,"y":4967,"layout":null,"isExpand":true,"pid":"8088547e-e825-620a","style":{}},{"id":"5b5978a6-8a0f-a020","text":"Sub title","stroke":"#155cb2","x":5341,"y":5099,"layout":null,"isExpand":true,"pid":"ff7802a7-f734-a244"},{"id":"c822050a-f2f8-37a0","text":"Sub title","stroke":"#155cb2","x":5341,"y":5133,"layout":null,"isExpand":true,"pid":"ff7802a7-f734-a244"},{"id":"1eca5699-ede6-ad14","text":"科技SDK","stroke":"#925ef2","x":5346,"y":4947,"layout":null,"isExpand":true,"pid":"a8a8afb3-f032-5564","style":{}},{"id":"033236b9-c80e-b1af","text":"其他评分项目","stroke":"#925ef2","x":5346,"y":4986,"layout":null,"isExpand":true,"pid":"a8a8afb3-f032-5564","style":{}}]],"induceData":[],"wireFrameData":[],"relateLinkData":[],"calloutData":[]}