首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >用角2实现Rappid

用角2实现Rappid
EN

Stack Overflow用户
提问于 2018-01-11 14:28:38
回答 2查看 2.1K关注 0票数 1

我正在致力于一个角2应用程序,在其中一个组件中我必须实现rappid,并且已经购买了一个许可的rappid,我已经获得了许可的rappid.js文件。

如何将拉皮德与角2相结合的问题。

我必须使用工具栏,光环,检查器,模板和其他ui组件的栅格。

我想如果我使用npm jointjs模块,这些特性将在那里不可用,因为它只会公开核心的JointJS库。

是否有演示应用程序显示Rappid与角2的集成。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-05-06 00:14:52

找不到好的答案,所以我使用了角6和Rappid 2.2做了一个完整的演示

这是github

代码语言:javascript
运行
复制
git clone https://github.com/wdunn001/Rappid-Angular-Demo
npm i
ng serve

所以为了让这件事发生我不得不

  1. 使用所有必需的rappid js及其依赖项库以及主干joinjs、jquery和逸散的@类型编辑package.json “主干”:"^1.3.3“、”连接“:"^2.1.0”、"jquery":"^3.3.1“、”提交“:"^3.10.1”、"dagre":"0.7.4“、”图形库“:"1.0.7”、“画布”:"git+https://github.com/clientIO/canvg.git#v2.2.0-rappid“、"ws":"0.8.1”
  2. 包括在angular.json中的那些 "node_modules/jquery/dist/jquery.min.js","node_modules/backbone/node_modules/underscore/underscore.js",“node_modules/主干/Backbone.js”,"node_modules/lodash/index.js",“node_modules/jointjs/dist/dist/joint.js”,“node_modules/dagre/dist/dist/d既要.jquery”,"rappid/build/rappid.min.js“
  3. 将.css从rappid.min.css中包含到angular.json中,以及从kitchensink.ts应用程序中的style.material.css确保kitchensink.ts应用程序中的style.css被添加到app.component.css中,并且所有对body或html的引用都应用于:host
代码语言:javascript
运行
复制
1. edit the styles.css in your app to have a display block for canvas
2. edit the kitchensink .ts in about a 1000 ways refer to the github to much here to list
3. import the config files and model files and ensure the properly reference the right directory
4. move all assets to the angular assets folder
5. make sure your ts config points to the rappid.min.t.ds file

票数 2
EN

Stack Overflow用户

发布于 2018-01-31 19:47:02

在文件夹应用程序中,有一个用打字本编写的KitchenSink应用程序的版本。文件夹名为KitchenSinkTs。

您仍然需要创建一个模块和一个组件的角度,但它将更容易。

package.json已经有了运行rappid的所有节点依赖项。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48209390

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档