Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
9bbc91f8
Commit
9bbc91f8
authored
Feb 09, 2021
by
Piotr Gawron
Browse files
scope of export is more precise
parent
b3710212
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
9bbc91f8
...
...
@@ -13,6 +13,8 @@ minerva (16.0.0~alpha.1) stable; urgency=medium
are
supported
(#
1452
,
#
1450
,
#
1420
)
*
Small
improvement
:
information
about
perfect
search
are
stored
in
the
url
(#
1376
)
*
Small
improvement
:
context
menu
exporting
map
is
more
precise
about
scope
(#
1447
)
*
Bug
fix
:
removing
plugin
that
does
not
exist
anymore
does
not
raise
an
error
(#
1289
)
*
Bug
fix
:
broken
overlays
crashed
minerva
upgrade
(#
1453
)
...
...
frontend-js/src/main/js/gui/ContextMenu.js
View file @
9bbc91f8
...
...
@@ -109,6 +109,7 @@ ContextMenu.prototype.addOption = function (params) {
}
else
{
self
.
getElement
().
appendChild
(
option
);
}
return
link
;
};
/**
...
...
@@ -184,7 +185,7 @@ ContextMenu.prototype.createExportAsImageSubmenu = function () {
});
var
submenu
=
new
SubMenu
({
element
:
li
,
name
:
"
Export
as image
"
,
name
:
"
as image
"
,
customMap
:
self
.
getMap
()
});
...
...
@@ -226,7 +227,7 @@ ContextMenu.prototype.createExportAsModelSubmenu = function () {
});
var
submenu
=
new
SubMenu
({
element
:
li
,
name
:
"
Export
as map
"
,
name
:
"
as map
"
,
customMap
:
self
.
getMap
()
});
...
...
frontend-js/src/main/js/gui/MapContextMenu.js
View file @
9bbc91f8
...
...
@@ -51,6 +51,8 @@ MapContextMenu.prototype._createMapContextMenuGui = function () {
MapContextMenu
.
prototype
.
init
=
function
()
{
var
self
=
this
;
return
self
.
createExportAsImageSubmenu
().
then
(
function
(
submenu
)
{
var
link
=
self
.
addOption
({
name
:
"
Export current view:
"
})
$
(
link
).
css
(
'
cursor
'
,
'
default
'
);
self
.
addOption
({
submenu
:
submenu
});
return
self
.
createExportAsModelSubmenu
();
}).
then
(
function
(
submenu
)
{
...
...
frontend-js/src/main/js/gui/SelectionContextMenu.js
View file @
9bbc91f8
...
...
@@ -36,6 +36,8 @@ SelectionContextMenu.prototype.constructor = SelectionContextMenu;
SelectionContextMenu
.
prototype
.
init
=
function
()
{
var
self
=
this
;
return
self
.
createExportAsImageSubmenu
().
then
(
function
(
submenu
)
{
var
link
=
self
.
addOption
({
name
:
"
Export current view:
"
})
$
(
link
).
css
(
'
cursor
'
,
'
default
'
);
self
.
addOption
({
submenu
:
submenu
});
return
self
.
createExportAsModelSubmenu
();
}).
then
(
function
(
submenu
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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