Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
6c4d6aa2
Commit
6c4d6aa2
authored
May 09, 2022
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_svg_editor: stop autoloading content from localstorage
parent
4a37ad96
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/method-draw/js/start.js.js
...m/portal_skins/erp5_svg_editor/method-draw/js/start.js.js
+2
-2
No files found.
bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/method-draw/js/start.js.js
View file @
6c4d6aa2
...
@@ -32,7 +32,7 @@ const shapeLib = svgCanvas.addExtension.apply(this, ["shapes", MD.Shapelib]);
...
@@ -32,7 +32,7 @@ const shapeLib = svgCanvas.addExtension.apply(this, ["shapes", MD.Shapelib]);
const
eyedropper
=
svgCanvas
.
addExtension
.
apply
(
this
,
[
"
eyedropper
"
,
MD
.
Eyedropper
]);
const
eyedropper
=
svgCanvas
.
addExtension
.
apply
(
this
,
[
"
eyedropper
"
,
MD
.
Eyedropper
]);
state
.
set
(
"
canvasId
"
,
t
(
"
Untitled
"
));
state
.
set
(
"
canvasId
"
,
t
(
"
Untitled
"
));
state
.
set
(
"
canvasMode
"
,
state
.
get
(
"
canvasMode
"
));
state
.
set
(
"
canvasMode
"
,
state
.
get
(
"
canvasMode
"
));
/*
// load from param
// load from param
console.log(window.location.search)
console.log(window.location.search)
if (!window.location.search.includes("?load=")) {
if (!window.location.search.includes("?load=")) {
...
@@ -56,7 +56,7 @@ else {
...
@@ -56,7 +56,7 @@ else {
}
}
state.set("canvasTitle", svgCanvas.getDocumentTitle());
state.set("canvasTitle", svgCanvas.getDocumentTitle());
*/
//editor.paintBox.fill.setPaint(state.get("canvasFill"));
//editor.paintBox.fill.setPaint(state.get("canvasFill"));
//editor.paintBox.stroke.setPaint(state.get("canvasStroke"));
//editor.paintBox.stroke.setPaint(state.get("canvasStroke"));
//editor.paintBox.canvas.setPaint(state.get("canvasBackground"));
//editor.paintBox.canvas.setPaint(state.get("canvasBackground"));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment