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 b8cddccf
authored
Jan 15, 2024
by
liuyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改画布逻辑
1 parent
50270694
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
19 deletions
public/drawio/extention/js/exScratchpad.js
public/drawio/js/diagramly/EditorUi.js
public/drawio/js/grapheditor/Menus.js
public/drawio/js/grapheditor/Sidebar.js
src/views/archi-ele-list/index.vue
public/drawio/extention/js/exScratchpad.js
View file @
b8cddcc
...
...
@@ -46,25 +46,25 @@ function setScratchpad(that) {//左侧便签本数据
}
];
var
xml
=
that
.
createLibraryDataFromImages
(
images
);
//
var xml = that.createLibraryDataFromImages(images);
let
request
=
window
.
indexedDB
.
open
(
'database'
,
2
);
//
let request = window.indexedDB.open('database', 2);
request
.
onsuccess
=
function
(
event
)
{
let
db
=
request
.
result
;
let
trx
=
db
.
transaction
(
'filesInfo'
,
'readwrite'
);
let
trx2
=
db
.
transaction
(
'files'
,
'readwrite'
);
//
request.onsuccess = function (event) {
//
let db = request.result;
//
let trx = db.transaction('filesInfo', 'readwrite');
//
let trx2 = db.transaction('files', 'readwrite');
trx
.
objectStore
(
'filesInfo'
).
put
({
title
:
'.scratchpad'
,
size
:
xml
.
length
,
lastModified
:
Date
.
now
(),
type
:
'L'
})
//
trx.objectStore('filesInfo').put({
//
title: '.scratchpad',
//
size: xml.length,
//
lastModified: Date.now(),
//
type: 'L'
//
})
trx2
.
objectStore
(
'files'
).
put
({
title
:
'.scratchpad'
,
data
:
xml
})
}
//
trx2.objectStore('files').put({
//
title: '.scratchpad',
//
data: xml
//
})
//
}
}
\ No newline at end of file
public/drawio/js/diagramly/EditorUi.js
View file @
b8cddcc
...
...
@@ -17194,6 +17194,7 @@
this
.
importCsvDialog
=
new
TextareaDialog
(
this
,
mxResources
.
get
(
'csv'
)
+
':'
,
Editor
.
defaultCsvValue
,
mxUtils
.
bind
(
this
,
function
(
newValue
)
{
console
.
log
(
newValue
)
this
.
importCsv
(
newValue
);
}),
null
,
null
,
620
,
430
,
null
,
true
,
true
,
mxResources
.
get
(
'import'
),
!
this
.
isOffline
()
?
'https://drawio-app.com/import-from-csv-to-drawio/'
:
null
);
...
...
public/drawio/js/grapheditor/Menus.js
View file @
b8cddcc
...
...
@@ -458,8 +458,9 @@ 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
)
{
this
.
editorUi
.
tryAndHandle
(
mxUtils
.
bind
(
this
,
function
()
...
...
public/drawio/js/grapheditor/Sidebar.js
View file @
b8cddcc
...
...
@@ -3828,7 +3828,6 @@ Sidebar.prototype.createVertexTemplateEntry = function(style, width, height, val
{
tags
+=
' '
+
title
;
}
tags
=
(
tags
!=
null
&&
tags
.
length
>
0
)
?
tags
:
((
title
!=
null
)
?
title
.
toLowerCase
()
:
''
);
return
this
.
addEntry
(
tags
,
mxUtils
.
bind
(
this
,
function
()
...
...
src/views/archi-ele-list/index.vue
View file @
b8cddcc
This diff is collapsed.
Click to expand it.
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