简体   繁体   English

如何将 Go.js 的平面图与 React.js 集成

[英]How to integrate Go.js's floorplan with React.js

I wanted to create a react project allowing a user to annotate floorplan thanks to Go.js's floorplanner here is the linkhttps://gojs.net/latest/projects/floorplanner/FloorPlanner.html .我想创建一个反应项目,允许用户注释平面图感谢 Go.js 的平面图在这里是链接https://gojs.net/latest/projects/floorplanner/FloorPlanner.Z5256EZ30D826C If you look visit that link and down below you will see the scripts that were used to create floorplanner.如果您查看该链接并在下方查看,您将看到用于创建平面规划器的脚本。 But instead of creating the floorplanner with vanilla JS I wanted to use React.js.但是我不想使用普通 JS 创建平面规划器,而是使用 React.js。 Can someone help with the integration of Go.js's floorplanner with React?有人可以帮助将 Go.js 的平面规划器与 React 集成吗?

This question is too vague for an easy answer.这个问题太模糊,无法简单回答。 You should look at the react example: https://github.com/NorthwoodsSoftware/gojs-react您应该查看反应示例: https://github.com/NorthwoodsSoftware/gojs-react

And modify it to your liking.并根据自己的喜好进行修改。 This can involve taking large parts of all of the floor planner sample, though if you have no practice with GoJS this it may be worth taking the time to learn everything involved in the sample, before any integration.这可能涉及获取所有平面规划器示例的大部分内容,但如果您没有使用 GoJS 的实践,那么在任何集成之前花时间学习示例中涉及的所有内容可能是值得的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM