简体   繁体   English

在 nodejs 中实现交互式图像的最佳工具是什么?

[英]What would be the best tools to achieve interactive images in nodejs?

I'm building a web application to create character builds from a video game.我正在构建一个 Web 应用程序来从视频游戏中创建角色。 Most functionality for the character builds has been implemented but I'm not sure how to proceed with the next part.角色构建的大部分功能已经实现,但我不确定如何进行下一部分。

In game there is a wheel that allows the player to traverse down a graph and build a path to unlock skills.在游戏中,有一个轮子可以让玩家向下遍历图形并建立一条解锁技能的路径。 The image for that is here图像在这里在此处输入图片说明

I'm currently developing using the MERN stack and I was thinking about using KonvaJS to implement this wheel into the game.我目前正在使用 MERN 堆栈进行开发,我正在考虑使用 KonvaJS 将这个轮子实现到游戏中。 Some key features of this wheel are:这个轮子的一些主要特点是:

  1. Lines between two nodes light up if they're active (activated by clicking)如果两个节点处于活动状态(通过单击激活),则它们之间的线会亮起

  2. Lines to available paths dimly light up通往可用路径的线路昏暗地亮起

  3. Hovering over a node shows the tooltip of that node's information将鼠标悬停在节点上会显示该节点信息的工具提示

  4. Clicking a node selects it单击一个节点将其选中

  5. The three rings (inner, middle, outer) can be rotated to mix and match nodes三个环(内、中、外)可以旋转以混合和匹配节点

    My question is, what would be the best tool to achieve this functionality on the application?我的问题是,在应用程序上实现此功能的最佳工具是什么?

There is another library FabricJs which handles few stuff by default saving you alot of time.还有另一个库FabricJs ,它默认处理很少的东西,为您节省了大量时间。 Object transforming tool is build-in feature for Fabric.js.对象转换工具是 Fabric.js 的内置功能。 You can quite simply transform, resize and rotate objects.您可以非常简单地变换、调整大小和旋转对象。 Konva has No such support, so you will have to implement that manually. Konva 没有这样的支持,所以你必须手动实现。 Hence i would prefer FabricJs!因此我更喜欢 FabricJs!

暂无
暂无

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

相关问题 为了实现这一目标,从父母那里获取数据的最佳方法是什么? - What would be the best way to get data from a parent in order to achieve this? 什么是在NodeJS中处理语言文件的最佳方法 - What would be the best way to handle language files in NodeJS 使用 DiscordJS 在聊天中获取表情符号图像的最佳方法是什么? - What would be the best method to get images of emoji in chat using DiscordJS? 如果我想实现自定义文本 styles 并接受多行字符串文本而不显示截断空格,哪种元素类型最好? - What element type would be best if I want to achieve custom text styles and accept multiline string text without truncating spaces displayed? 实现以下结果的最佳方法是什么? - What is the best way to achieve the following result? Javascript时间比较:实现此目标的最佳方法是什么? - Javascript Time Comparison: What is the best way to achieve this? 什么是实现相当于mysql的最快方法 - “截断表名”为IndexedDB? - What would be the fastest way to achieve the equivalent of mysql - “truncate tablename” for IndexedDB? 什么是一些最好的Javascript内存检测工具? - What are some of the best Javascript memory detecting tools? 制作在线纸牌游戏的最佳工具是什么? - What are the best tools to make an online card game? 您将使用什么 JS 库来创建交互式自定义 map - What JS library would you use to create an interactive custom map
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM