jit.js源码解读
来源:互联网 发布:远程桌面控制软件下载 编辑:程序博客网 时间:2024/06/06 00:49
layouts.Tree.js
Layouts.Tree = (function() {
.....
return new Class({
compute : function(property, computeLevels) {},
computePositions : function(node, prop) {}
});
})();
省略部分主要是一些内部函数:
function getBoundaries(graph, config, level, orn, prop) {}
function movetree(node, prop, val, orn) {}
function moveextent(extent, val) {}
function merge(ps, qs) {}
function mergelist(ls, def) {}
function fit(ext1, ext2, subtreeOffset, siblingOffset, i) {}
function fitlistl(es, subtreeOffset, siblingOffset) {}
function fitlistr(es, subtreeOffset, siblingOffset) {}
function fitlist(es, subtreeOffset, siblingOffset, align) {}
function design(graph, node, prop, config, orn) {}
后续更新。。。
spaceTree.js的inherit options and instance properties
Inherits options from
- <Options.Canvas>
- <Options.Controller>
- <Options.Tree>
- <Options.Node>
- <Options.Edge>
- <Options.Label>
- <Options.Events>
- <Options.Tips>
- <Options.NodeStyles>
- <Options.Navigation>
canvas - Access a <Canvas> instance.
graph - Access a <Graph> instance.
op - Access a <ST.Op> instance.
fx - Access a <ST.Plot> instance.
labels - Access a <ST.Label> interface implementation.
对应代码中
主要写法:
$jit.ST= (function() {
returnnewClass({
Implements: [Loader, Extras, Layouts.Tree],
initialize:function(controller) {
var$ST=$jit.ST;
},
plot:function() {},
switchPosition:function(pos,method,onComplete) {},
switchAlignment:function(align,method,onComplete) {},
addNodeInPath:function(id) {},
clearNodesInPath:function(id) {},
reposition:function() {},
requestNodes:function(node,onComplete) {},
contract:function(onComplete,switched) {},
move:function(node,onComplete) {},
expand:function (node,onComplete) {},
selectPath:function(node) {},
setRoot:function(id,method,onComplete) {},
addSubtree:function(subtree,method,onComplete) {},
removeSubtree:function(id,removeRoot,method,onComplete) {},
select:function(id,onComplete) {},
onClick:function (id,options) {}
})();
后续更新。。。
Inherits options from
- <Options.Canvas>
- <Options.Controller>
- <Options.Tree>
- <Options.Node>
- <Options.Edge>
- <Options.Label>
- <Options.Events>
- <Options.Tips>
- <Options.NodeStyles>
- <Options.Navigation>
canvas - Access a <Canvas> instance.
graph - Access a <Graph> instance.
op - Access a <ST.Op> instance.
fx - Access a <ST.Plot> instance.
labels - Access a <ST.Label> interface implementation.
对应代码中
主要写法:
$jit.ST= (function() {
returnnewClass({
Implements: [Loader, Extras, Layouts.Tree],
initialize:function(controller) {
var$ST=$jit.ST;
},
plot:function() {},
switchPosition:function(pos,method,onComplete) {},
switchAlignment:function(align,method,onComplete) {},
addNodeInPath:function(id) {},
clearNodesInPath:function(id) {},
reposition:function() {},
requestNodes:function(node,onComplete) {},
contract:function(onComplete,switched) {},
move:function(node,onComplete) {},
expand:function (node,onComplete) {},
selectPath:function(node) {},
setRoot:function(id,method,onComplete) {},
addSubtree:function(subtree,method,onComplete) {},
removeSubtree:function(id,removeRoot,method,onComplete) {},
select:function(id,onComplete) {},
onClick:function (id,options) {}
})();
后续更新。。。
- jit.js源码解读
- Zepto.js 源码解读
- push.js 源码解读
- vue.js 源码解读
- [源码解读] FastClick.js源码解读
- Zepto源码解读-zepto.js
- Node.js-require() 源码解读
- prototype 源码解读 之 prototype.js
- prototype.js 源码解读v1.3.1版本
- prototype.js源码解读v1.3.1版本
- prototype.js 源码解读v1.3.1版本
- prototype 源码解读 之 prototype.js
- prototype 源码解读 之 prototype.js
- prototype 源码解读 之 prototype.js
- prototype 源码解读 之 prototype.js
- prototype 源码解读 之 prototype.js
- 解读extjs源码之AbstractSelectionModel.js
- 分享:json2.js源码解读笔记
- POJ
- boost::shared_ptr 分析与实现
- 快速排序的三种实现以及应用场景
- 教你如何迅速秒杀掉:99%的海量数据处理面试题
- 前端跨域解决方案
- jit.js源码解读
- Druid连接池的testQuery/validationQuery
- MapStruct处理Java中枚举Enum类型使用与举例
- Linux 远程登录
- Ubuntu下tomcat的docker镜像下载
- 逆序对
- 【LeetCode】506. Relative Ranks
- User Guide:eccrypto.h学习笔记(翻译)
- leetcode[Longest Substring Without Repeating Characters]//待整理多种解法