Giter Club home page Giter Club logo

jtopo_topology's Introduction

jtopo_topology's People

Contributors

wenyuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jtopo_topology's Issues

Stage.width = 1000 不能设置

上代码
let canvas: any = document.getElementById('learn-canvas'); this.stage = new JTopo.Stage(canvas); this.stage.width = 1000; this.stage.height = 200;

错误信息:
ProductListComponent.html:3 ERROR TypeError: Cannot set property width of [object Object] which has only a getter at JTopoComponent.push../src/app/jTopo/jTopo.component.ts.JTopoComponent.ngOnInit (jTopo.component.ts:26) at checkAndUpdateDirectiveInline (core.js:21764) at checkAndUpdateNodeInline (core.js:29983) at checkAndUpdateNode (core.js:29945) at debugCheckAndUpdateNode (core.js:30579) at debugCheckDirectivesFn (core.js:30539) at Object.eval [as updateDirectives] (ProductListComponent.html:30) at Object.debugUpdateDirectives [as updateDirectives] (core.js:30531) at checkAndUpdateView (core.js:29927) at callViewAction (core.js:30168)
希望有人能帮忙解答一下

is:issue is:open node节点的zIndex设置了显示不会变化,这是为啥

您好:

我是这么写的
zIndexAdd: function () {
if (editor.currentNode instanceof JTopo.Node) {
console.log(editor.currentNode.zIndex)
editor.currentNode.zIndex =+ 10;//node的层级属性zIndex的值发生了变化。但是图形却没有移动到上层。初始化整个图形zIndex还是有效的。就是动态改变图形不会变层级。
}
}
,其他的比如角度之类的已修改就变了。
还发现只要设置的zIndex再做其他操作都不生效,比如先设置zIndex,再删除这个节点也不行。
editor.currentNode.zIndex =+ 10;
editor.scene.remove(editor.currentNode.zIndex) //结果节点删除不了
但是先设置其他的再操作不会这样。
比如
editor.currentNode.rotate =+ 10;
editor.scene.remove(editor.currentNode.zIndex)//结果节点可删除

求解。

鼠标中键的上下滚动与放大缩小

建议修改为:
向上:放大
向下:缩小

jtopo-0.4.8-dev.js 1103行

null != this.wheelZoom && (b > 0 ? this.zoomOut(this.wheelZoom) : this.zoomIn(this.wheelZoom))

线的拖拽是怎么实现的

请教一下,我打开页面,在实例化的时候,将线也作为可以拖拽部分,
var nodes_line = $("[topo-div-type='topo-link']");
var nodes_line = nodes_line.length;
for (var i = 0; i < nodes_line; i++) {
var text = $(nodes_line[i]).find("span").eq(0).text();
editor.drag(nodes_line[i], document.getElementById('topology-canvas'), text);
}
但是拖在在舞台区,就成了一个图片,请教一下这个怎么处理才能连线

topoImgPath is not defined

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.