Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zui
提交
cf03e14c
Z
zui
项目概览
易企天创
/
zui
大约 1 年 前同步成功
通知
6
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
37
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
37
Issue
37
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cf03e14c
编写于
6月 27, 2014
作者:
C
Catouse
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* added dirtyData flag and rerender when window size changed.
上级
0c3f842b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
6 deletion
+13
-6
dist/css/zui.css
dist/css/zui.css
+1
-1
dist/js/zui.min.js
dist/js/zui.min.js
+6
-2
src/js/mindmap.js
src/js/mindmap.js
+6
-2
src/less/views/mindmap.less
src/less/views/mindmap.less
+0
-1
未找到文件。
dist/css/zui.css
浏览文件 @
cf03e14c
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
dist/js/zui.min.js
浏览文件 @
cf03e14c
...
...
@@ -4818,6 +4818,7 @@ shortcut = {
this
.
$
=
$
(
element
);
this
.
options
=
this
.
getOptions
(
options
);
this
.
data
=
this
.
options
.
data
;
this
.
dirtyData
=
true
;
this
.
init
();
};
...
...
@@ -4833,7 +4834,7 @@ shortcut = {
id
:
$
.
uuid
()
},
nodeTeamplate
:
"
<div class='node expand-{expand}' data-type='{type}' data-id='{id}' data-parent='{parent}'><div class='wrapper'><div class='text' contenteditable='true'>{name}</div><div class='caption'>{caption}</div></div></div>
"
,
hSpace
:
1
5
0
,
hSpace
:
1
2
0
,
vSpace
:
20
,
lineCurvature
:
60
,
subLineWidth
:
4
,
...
...
@@ -4886,6 +4887,8 @@ shortcut = {
$canvas
.
attr
(
'
width
'
,
this
.
width
)
.
attr
(
'
height
'
,
this
.
height
);
if
(
!
this
.
dirtyData
)
this
.
showNode
(
this
.
data
);
}
Mindmap
.
prototype
.
computePosition
=
function
(
pos
)
...
...
@@ -4911,7 +4914,6 @@ shortcut = {
Mindmap
.
prototype
.
render
=
function
()
{
this
.
loadNode
(
this
.
data
);
console
.
log
(
this
.
data
);
this
.
showNode
(
this
.
data
);
}
...
...
@@ -5056,6 +5058,8 @@ shortcut = {
{
nodeData
.
ui
.
vSpan
=
vSpan
;
}
this
.
dirtyData
=
false
;
}
/* show on desktop with right position */
...
...
src/js/mindmap.js
浏览文件 @
cf03e14c
...
...
@@ -8,6 +8,7 @@
this
.
$
=
$
(
element
);
this
.
options
=
this
.
getOptions
(
options
);
this
.
data
=
this
.
options
.
data
;
this
.
dirtyData
=
true
;
this
.
init
();
};
...
...
@@ -23,7 +24,7 @@
id
:
$
.
uuid
()
},
nodeTeamplate
:
"
<div class='node expand-{expand}' data-type='{type}' data-id='{id}' data-parent='{parent}'><div class='wrapper'><div class='text' contenteditable='true'>{name}</div><div class='caption'>{caption}</div></div></div>
"
,
hSpace
:
1
5
0
,
hSpace
:
1
2
0
,
vSpace
:
20
,
lineCurvature
:
60
,
subLineWidth
:
4
,
...
...
@@ -76,6 +77,8 @@
$canvas
.
attr
(
'
width
'
,
this
.
width
)
.
attr
(
'
height
'
,
this
.
height
);
if
(
!
this
.
dirtyData
)
this
.
showNode
(
this
.
data
);
}
Mindmap
.
prototype
.
computePosition
=
function
(
pos
)
...
...
@@ -101,7 +104,6 @@
Mindmap
.
prototype
.
render
=
function
()
{
this
.
loadNode
(
this
.
data
);
console
.
log
(
this
.
data
);
this
.
showNode
(
this
.
data
);
}
...
...
@@ -246,6 +248,8 @@
{
nodeData
.
ui
.
vSpan
=
vSpan
;
}
this
.
dirtyData
=
false
;
}
/* show on desktop with right position */
...
...
src/less/views/mindmap.less
浏览文件 @
cf03e14c
...
...
@@ -24,7 +24,6 @@
position: absolute;
border: 2px solid transparent;
border-radius: 22px;
.transition();
&:hover
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录