Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dda9fa3e
authored
Jan 16, 2024
by
liuyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改画布
1 parent
ac26a1d0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
7 deletions
public/drawio/extention/js/exScratchpad.js
public/drawio/extention/js/url.js
public/drawio/js/diagramly/App.js
public/drawio/js/diagramly/StorageFile.js
public/drawio/js/grapheditor/Menus.js
public/drawio/js/grapheditor/Sidebar.js
public/drawio/extention/js/exScratchpad.js
View file @
dda9fa3
This diff is collapsed.
Click to expand it.
public/drawio/extention/js/url.js
View file @
dda9fa3
const
ajaxUrl
=
'172.20.10.3:7003'
;
\ No newline at end of file
// const ajaxUrl = '172.20.10.3:7003';
const
ajaxUrl
=
'43.143.211.42'
;
public/drawio/js/diagramly/App.js
View file @
dda9fa3
...
...
@@ -5716,7 +5716,7 @@ App.prototype.loadLibraries = function(libs, done)
if
(
service
==
'L'
)
{
const
that
=
this
;
s
etScratchpad
(
that
);
initS
etScratchpad
(
that
);
if
(
isLocalStorage
||
mxClient
.
IS_CHROMEAPP
)
{
...
...
public/drawio/js/diagramly/StorageFile.js
View file @
dda9fa3
...
...
@@ -244,6 +244,13 @@ StorageFile.prototype.saveFile = function(title, revision, success, error)
this
.
setShadowModified
(
false
);
var
data
=
this
.
getData
();
// console.log(data)
let
stringArray
=
data
.
split
(
'<mxlibrary>'
)[
1
].
split
(
'</mxlibrary>'
);
saveScratchpad
(
JSON
.
parse
(
stringArray
[
0
]))
this
.
ui
.
setDatabaseItem
(
null
,
[{
title
:
this
.
title
,
size
:
data
.
length
,
...
...
public/drawio/js/grapheditor/Menus.js
View file @
dda9fa3
...
...
@@ -458,7 +458,6 @@ Menus.prototype.init = function()
menu
.
addSeparator
(
parent
);
menu
.
addItem
(
mxResources
.
get
(
'organic'
),
null
,
mxUtils
.
bind
(
this
,
function
()
{
var
layout
=
new
mxFastOrganicLayout
(
graph
);
promptSpacing
(
layout
.
forceConstant
,
mxUtils
.
bind
(
this
,
function
(
newValue
)
...
...
@@ -475,7 +474,6 @@ Menus.prototype.init = function()
{
tmp
=
graph
.
getDefaultParent
();
}
layout
.
execute
(
tmp
);
if
(
graph
.
getModel
().
isVertex
(
tmp
))
...
...
public/drawio/js/grapheditor/Sidebar.js
View file @
dda9fa3
...
...
@@ -2234,7 +2234,8 @@ Sidebar.prototype.createThumb = function(cells, width, height, parent, title, sh
node
.
innerHTML
=
this
.
graph
.
container
.
innerHTML
;
}
// console.log(node)//解释,包含便签本的缩略图的svg格式
// console.log(node)//解释,包含便签本的缩略图的svg格式, 也有拖拽到便签本的事件
this
.
graph
.
getModel
().
clear
();
this
.
graph
.
view
.
scaleAndTranslate
(
1
,
0
,
0
);
this
.
graph
.
shapeBackgroundColor
=
(
Editor
.
isDarkMode
()
?
...
...
@@ -2277,7 +2278,6 @@ Sidebar.prototype.createThumb = function(cells, width, height, parent, title, sh
mxUtils
.
write
(
div
,
title
);
parent
.
appendChild
(
div
);
}
return
bounds
;
};
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment