Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
d57a2953
Commit
d57a2953
authored
Nov 23, 2020
by
Piotr Gawron
Browse files
Merge branch '1417-export-with-overlay' into 'devel_15.1.x'
export of map to image ignored overlays See merge request
!1261
parents
dd13a4e2
01c64033
Pipeline
#36080
failed with stage
in 21 minutes and 27 seconds
Changes
2
Pipelines
46
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
d57a2953
...
@@ -13,6 +13,8 @@ minerva (15.1.1) stable; urgency=medium
...
@@ -13,6 +13,8 @@ minerva (15.1.1) stable; urgency=medium
unexpected
error
(#
1416
)
unexpected
error
(#
1416
)
*
Bug
fix
:
normal
user
could
not
update
tos
information
(#
1419
)
*
Bug
fix
:
normal
user
could
not
update
tos
information
(#
1419
)
*
Bug
fix
:
and
operator
in
SBGN
-
like
view
was
not
drawn
(#
1408
)
*
Bug
fix
:
and
operator
in
SBGN
-
like
view
was
not
drawn
(#
1408
)
*
Bug
fix
:
export
of
overlayed
map
as
an
image
did
not
respect
overlay
colors
(#
1417
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Thu
,
23
Nov
2020
15
:
00
:
00
+
0200
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Thu
,
23
Nov
2020
15
:
00
:
00
+
0200
...
...
rest-api/src/main/java/lcsb/mapviewer/api/projects/models/ModelRestImpl.java
View file @
d57a2953
...
@@ -27,6 +27,8 @@ import lcsb.mapviewer.model.map.BioEntity;
...
@@ -27,6 +27,8 @@ import lcsb.mapviewer.model.map.BioEntity;
import
lcsb.mapviewer.model.map.InconsistentModelException
;
import
lcsb.mapviewer.model.map.InconsistentModelException
;
import
lcsb.mapviewer.model.map.layout.*
;
import
lcsb.mapviewer.model.map.layout.*
;
import
lcsb.mapviewer.model.map.model.*
;
import
lcsb.mapviewer.model.map.model.*
;
import
lcsb.mapviewer.model.map.reaction.Reaction
;
import
lcsb.mapviewer.model.map.species.Element
;
import
lcsb.mapviewer.model.user.User
;
import
lcsb.mapviewer.model.user.User
;
import
lcsb.mapviewer.services.interfaces.ILayoutService
;
import
lcsb.mapviewer.services.interfaces.ILayoutService
;
import
lcsb.mapviewer.services.utils.ColorSchemaReader
;
import
lcsb.mapviewer.services.utils.ColorSchemaReader
;
...
@@ -325,7 +327,7 @@ public class ModelRestImpl extends BaseRestImpl {
...
@@ -325,7 +327,7 @@ public class ModelRestImpl extends BaseRestImpl {
Path2D
polygon
=
stringToPolygon
(
polygonString
,
colorModel
);
Path2D
polygon
=
stringToPolygon
(
polygonString
,
colorModel
);
SubModelCommand
subModelCommand
=
new
SubModelCommand
(
original
Model
,
polygon
);
SubModelCommand
subModelCommand
=
new
SubModelCommand
(
color
Model
,
polygon
);
Model
part
=
subModelCommand
.
execute
();
Model
part
=
subModelCommand
.
execute
();
Double
minX
=
originalModel
.
getWidth
();
Double
minX
=
originalModel
.
getWidth
();
...
@@ -366,7 +368,7 @@ public class ModelRestImpl extends BaseRestImpl {
...
@@ -366,7 +368,7 @@ public class ModelRestImpl extends BaseRestImpl {
}
}
List
<
Integer
>
visibleLayoutIds
=
deserializeIdList
(
overlayIds
);
List
<
Integer
>
visibleLayoutIds
=
deserializeIdList
(
overlayIds
);
for
(
Integer
integer
:
visibleLayoutIds
)
{
for
(
Integer
integer
:
visibleLayoutIds
)
{
Map
<
BioEntity
,
ColorSchema
>
map
=
layoutService
.
getElementsForLayout
(
colorModel
,
integer
);
Map
<
BioEntity
,
ColorSchema
>
map
=
layoutService
.
getElementsForLayout
(
part
,
integer
);
params
.
addVisibleLayout
(
map
);
params
.
addVisibleLayout
(
map
);
}
}
...
...
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