Skip to content

Commit

Permalink
hide crop action (#140)
Browse files Browse the repository at this point in the history
build i18n terms

build webapp
  • Loading branch information
quborg authored May 23, 2024
1 parent 0620a18 commit 47aaba4
Show file tree
Hide file tree
Showing 66 changed files with 3,188 additions and 2,434 deletions.
876 changes: 436 additions & 440 deletions src/main/webapp/js/app.min.js

Large diffs are not rendered by default.

18 changes: 2 additions & 16 deletions src/main/webapp/js/diagramly/EditorUi.js
Original file line number Diff line number Diff line change
Expand Up @@ -9790,7 +9790,7 @@
if (this.menus != null)
{
var menusAddPopupMenuEditItems = Menus.prototype.addPopupMenuEditItems;

// Inserts copyAsImage into popup menu
this.menus.addPopupMenuEditItems = function(menu, cell, evt)
{
Expand All @@ -9809,23 +9809,9 @@
{
this.addPopupMenuArrangeItems(menu, cell, evt);
}

this.addMenuItems(menu, ['-', 'cut', 'copy', 'copyAsImage',
'duplicate', 'lockUnlock'], null, evt);

// Shows crop option for images
if (!this.isShowCellEditItems() && graph.getSelectionCount() == 1 &&
graph.isCellEditable(cell) && graph.getModel().isVertex(cell))
{
var state = graph.view.getState(cell);

if (state != null && mxUtils.getValue(state.style,
mxConstants.STYLE_IMAGE, null) != null)
{
menu.addSeparator();
this.addMenuItem(menu, 'crop', null, evt);
}
}
}
};

Expand Down
6 changes: 2 additions & 4 deletions src/main/webapp/js/extensions.min.js

Large diffs are not rendered by default.

24 changes: 2 additions & 22 deletions src/main/webapp/js/grapheditor/Actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1975,29 +1975,9 @@ this.addAction('editContent', function()
}, graph.cellEditor.isContentEditing(), !graph.cellEditor.isContentEditing(), true, clipPath);
}
}).isEnabled = isGraphEnabled;

this.addAction('crop...', function()
{
var cell = graph.getSelectionCell();

if (graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()) && cell != null)
{
var style = graph.getCurrentCellStyle(cell);

var value = style[mxConstants.STYLE_IMAGE], shape = style[mxConstants.STYLE_SHAPE];

if (!value || shape != 'image')
{
return; //Can only process an existing image
}

var dlg = new CropImageDialog(ui, value, style[mxConstants.STYLE_CLIP_PATH], function(clipPath, width, height)
{
applyClipPath(cell, clipPath, width, height, graph);
});

ui.showDialog(dlg.container, 300, 390, true, true);
}
this.addAction('crop...', function () {
return;
}).isEnabled = isGraphEnabled;
action = this.addAction('layers', mxUtils.bind(this, function()
{
Expand Down
139 changes: 65 additions & 74 deletions src/main/webapp/js/integrate.min.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/main/webapp/js/orgchart.min.js

Large diffs are not rendered by default.

1,190 changes: 593 additions & 597 deletions src/main/webapp/js/viewer-static.min.js

Large diffs are not rendered by default.

1,190 changes: 593 additions & 597 deletions src/main/webapp/js/viewer.min.js

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions src/main/webapp/resources/dia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ archiMate21=ArchiMate 2.1
arrange=Arrange
arrow=Arrow
arrows=Arrows
askMeAnything=Ask me anything
asNew=As New
atlas=Atlas
author=Author
Expand Down Expand Up @@ -178,7 +179,8 @@ dashed=Dashed
decideLater=Decide later
default=Default
delete=Delete
deleteColumn=Delete Column
deleteAll=Delete all
deleteColumn=Delete column
deleteLibrary401=Insufficient permissions to delete this library
deleteLibrary404=Selected library could not be found
deleteLibrary500=Error deleting library
Expand Down Expand Up @@ -330,6 +332,7 @@ fitWindow=Fit Window
flip=Flip
flipH=Flip Horizontal
flipV=Flip Vertical
flowAnimation=Flow Animation
flowchart=Flowchart
folder=Folder
font=Font
Expand Down Expand Up @@ -392,6 +395,7 @@ helpTranslate=Help us translate this application
hide=Hide
hideIt=Hide {1}
hidden=Hidden
highContrast=High Contrast
home=Home
horizontal=Horizontal
horizontalFlow=Horizontal Flow
Expand Down Expand Up @@ -480,6 +484,7 @@ linewidth=Linewidth
link=Link
links=Links
loading=Loading
locked=Locked
lockUnlock=Lock/Unlock
loggedOut=Logged Out
logIn=log in
Expand Down Expand Up @@ -612,7 +617,6 @@ preview=Preview
previousPage=Previous Page
presentationMode=Presentation Mode
print=Print
printAllPages=Print All Pages
procEng=Proc. Eng.
project=Project
priority=Priority
Expand Down Expand Up @@ -727,6 +731,7 @@ simpleArrow=Simple Arrow
simpleViewer=Simple Viewer
size=Size
sketch=Sketch
smoothing=Smoothing
snapToGrid=Snap to Grid
solid=Solid
sourceSpacing=Source Spacing
Expand Down Expand Up @@ -795,12 +800,15 @@ untitledDiagram=Untitled Diagram
untitledLayer=Untitled Layer
untitledLibrary=Untitled Library
unknownError=Unknown error
unknownUser=Unknown user
updateExistingDrawing=Update existing drawing
updateFile=Update {1}
updatingDocument=Updating Document. Please wait...
updatingPreview=Updating Preview. Please wait...
updatingSelection=Updating Selection. Please wait...
upload=Upload
url=URL
useCurrentSettings=Use current settings
useOffline=Use Offline
useRootFolder=Use root folder?
userManual=User Manual
Expand Down Expand Up @@ -1071,6 +1079,7 @@ parentChildSpacing=Parent Child Spacing
siblingSpacing=Sibling Spacing
confNoPermErr=Sorry, you don't have enough permissions to view this embedded diagram from page {1}
copyAsImage=Copy as Image
copyAsText=Copy as Text
lucidImport=Lucidchart Import
lucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.
installFirst=Please install {1} first
Expand Down Expand Up @@ -1270,6 +1279,11 @@ googleFonts=Google Fonts
diagDupl=Duplicate Diagram Detected
diagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We've created an independent copy. Please open the editor again.
diagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.
confCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?
confCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.
confALogsPageDesc=This page contains logs of draw.io long running services as attachments
confEditOnlyInPageEditor=Can only be edited within Confluence page editor
confEvalWarn=Evaluation License - Not for production use
alreadyOpen=The tab for this container is already open!
closeOthers=Close others
createMapFromContainer=Create map from container
Expand Down
18 changes: 16 additions & 2 deletions src/main/webapp/resources/dia_am.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ archiMate21=ArchiMate 2.1
arrange=Arrange
arrow=Arrow
arrows=Arrows
askMeAnything=Ask me anything
asNew=As New
atlas=Atlas
author=Author
Expand Down Expand Up @@ -178,7 +179,8 @@ dashed=Dashed
decideLater=Decide later
default=Default
delete=Delete
deleteColumn=Delete Column
deleteAll=Delete all
deleteColumn=Delete column
deleteLibrary401=Insufficient permissions to delete this library
deleteLibrary404=Selected library could not be found
deleteLibrary500=Error deleting library
Expand Down Expand Up @@ -330,6 +332,7 @@ fitWindow=Fit Window
flip=Flip
flipH=Flip Horizontal
flipV=Flip Vertical
flowAnimation=Flow Animation
flowchart=Flowchart
folder=Folder
font=Font
Expand Down Expand Up @@ -392,6 +395,7 @@ helpTranslate=Help us translate this application
hide=Hide
hideIt=Hide {1}
hidden=Hidden
highContrast=High Contrast
home=Home
horizontal=Horizontal
horizontalFlow=Horizontal Flow
Expand Down Expand Up @@ -480,6 +484,7 @@ linewidth=Linewidth
link=Link
links=Links
loading=Loading
locked=Locked
lockUnlock=Lock/Unlock
loggedOut=Logged Out
logIn=log in
Expand Down Expand Up @@ -612,7 +617,6 @@ preview=Preview
previousPage=Previous Page
presentationMode=Presentation Mode
print=Print
printAllPages=Print All Pages
procEng=Proc. Eng.
project=Project
priority=Priority
Expand Down Expand Up @@ -727,6 +731,7 @@ simpleArrow=Simple Arrow
simpleViewer=Simple Viewer
size=Size
sketch=Sketch
smoothing=Smoothing
snapToGrid=Snap to Grid
solid=Solid
sourceSpacing=Source Spacing
Expand Down Expand Up @@ -795,12 +800,15 @@ untitledDiagram=Untitled Diagram
untitledLayer=Untitled Layer
untitledLibrary=Untitled Library
unknownError=Unknown error
unknownUser=Unknown user
updateExistingDrawing=Update existing drawing
updateFile=Update {1}
updatingDocument=Updating Document. Please wait...
updatingPreview=Updating Preview. Please wait...
updatingSelection=Updating Selection. Please wait...
upload=Upload
url=URL
useCurrentSettings=Use current settings
useOffline=Use Offline
useRootFolder=Use root folder?
userManual=User Manual
Expand Down Expand Up @@ -1071,6 +1079,7 @@ parentChildSpacing=Parent Child Spacing
siblingSpacing=Sibling Spacing
confNoPermErr=Sorry, you don't have enough permissions to view this embedded diagram from page {1}
copyAsImage=Copy as Image
copyAsText=Copy as Text
lucidImport=Lucidchart Import
lucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.
installFirst=Please install {1} first
Expand Down Expand Up @@ -1270,3 +1279,8 @@ googleFonts=Google Fonts
diagDupl=Duplicate Diagram Detected
diagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We've created an independent copy. Please open the editor again.
diagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.
confCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?
confCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.
confALogsPageDesc=This page contains logs of draw.io long running services as attachments
confEditOnlyInPageEditor=Can only be edited within Confluence page editor
confEvalWarn=Evaluation License - Not for production use
16 changes: 15 additions & 1 deletion src/main/webapp/resources/dia_ar.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ archiMate21=ArchiMate 2.1
arrange=‫رتب‬
arrow=‫سهم‬
arrows=‫أسهم‬
askMeAnything=Ask me anything
asNew=‫كجديد‬
atlas=‫أطلس‬
author=‫المؤلف‬
Expand Down Expand Up @@ -178,6 +179,7 @@ dashed=‫متقطع‬
decideLater=‫الاختيار لاحقا‬
default=‫افتراضي‬
delete=‫حذف‬
deleteAll=Delete all
deleteColumn=‫حذف العمود‬
deleteLibrary401=Insufficient permissions to delete this library
deleteLibrary404=Selected library could not be found
Expand Down Expand Up @@ -330,6 +332,7 @@ fitWindow=‫ملائمة الشاشة‬
flip=‫انعكاس‬
flipH=‫انعكاس أفقي‬
flipV=‫انعكاس عمودي‬
flowAnimation=Flow Animation
flowchart=Flowchart
folder=Folder
font=‫خط‬
Expand Down Expand Up @@ -392,6 +395,7 @@ helpTranslate=‫ساعدنا في ترجمة هذا التطبيق‬
hide=‫إخفاء‬
hideIt=‫إخفاء {1}‬
hidden=‫مخفي‬
highContrast=High Contrast
home=‫الرئيسية‬
horizontal=‫أفقي‬
horizontalFlow=‫تدفق أفقي‬
Expand Down Expand Up @@ -480,6 +484,7 @@ linewidth=‫عرض الخط‬
link=‫رابط‬
links=Links
loading=‫تحميل‬
locked=Locked
lockUnlock=‫قفل/إلغاء قفل‬
loggedOut=‫تم تسجيل الخروج‬
logIn=log in
Expand Down Expand Up @@ -612,7 +617,6 @@ preview=‫معاينة‬
previousPage=Previous Page
presentationMode=Presentation Mode
print=‫طباعة‬
printAllPages=Print All Pages
procEng=Proc. Eng.
project=Project
priority=Priority
Expand Down Expand Up @@ -727,6 +731,7 @@ simpleArrow=‫سهم بسيط‬
simpleViewer=Simple Viewer
size=‫حجم‬
sketch=Sketch
smoothing=Smoothing
snapToGrid=Snap to Grid
solid=‫موحد‬
sourceSpacing=‫تباعد المصدر‬
Expand Down Expand Up @@ -795,12 +800,15 @@ untitledDiagram=‫مخطط دون اسم‬
untitledLayer=Untitled Layer
untitledLibrary=‫مكتبة دون اسم‬
unknownError=‫حدث خطأ ما‬
unknownUser=Unknown user
updateExistingDrawing=Update existing drawing
updateFile=Update {1}
updatingDocument=‫تحديث الوثيقة. برجاء الانتظار...‬
updatingPreview=‫تحديث المعاينة. المرجو الانتظار...‬
updatingSelection=‫تحديث الاختيار. برجاء الانتظار...‬
upload=‫رفع‬
url=‫الرابط‬
useCurrentSettings=Use current settings
useOffline=Use Offline
useRootFolder=Use root folder?
userManual=User Manual
Expand Down Expand Up @@ -1071,6 +1079,7 @@ parentChildSpacing=Parent Child Spacing
siblingSpacing=Sibling Spacing
confNoPermErr=Sorry, you don't have enough permissions to view this embedded diagram from page {1}
copyAsImage=Copy as Image
copyAsText=Copy as Text
lucidImport=Lucidchart Import
lucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.
installFirst=Please install {1} first
Expand Down Expand Up @@ -1270,3 +1279,8 @@ googleFonts=Google Fonts
diagDupl=Duplicate Diagram Detected
diagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We've created an independent copy. Please open the editor again.
diagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.
confCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?
confCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.
confALogsPageDesc=This page contains logs of draw.io long running services as attachments
confEditOnlyInPageEditor=Can only be edited within Confluence page editor
confEvalWarn=Evaluation License - Not for production use
Loading

0 comments on commit 47aaba4

Please sign in to comment.