let xdiff = xa - xb;
let ydiff = ya - yb;
- if (way === 'horizontal') {
+ if (way === 'columns') {
return Math.abs(xdiff) > xTolerance ? xdiff : ydiff;
- } else if (way === 'vertical') {
+ } else if (way === 'lines') {
return Math.abs(ydiff) > yTolerance ? ydiff : xdiff;
}
});
res.items = $.extend(res.items, {
"order_selection": {
name: (TRANSLATIONS.reorder_selection) + '', items: {
- 'reorder_horizontal': {
- name: TRANSLATIONS.reorder_horizontal, callback: function () {
- $this.reorderSelection('horizontal');
+ 'reorder_lines': {
+ name: TRANSLATIONS.reorder_lines, callback: function () {
+ $this.reorderSelection('lines');
}
- }, 'reorder_vertical': {
- name: TRANSLATIONS.reorder_vertical, callback: function () {
- $this.reorderSelection('vertical');
+ }, 'reorder_columns': {
+ name: TRANSLATIONS.reorder_columns, callback: function () {
+ $this.reorderSelection('columns');
}
},
}
if ($(this).prop('checked')) {
$this.linkeditor.links.selectLink(link);
- } else {$this.linkeditor.links.deselectLink(link);
+ } else {
+ $this.linkeditor.links.deselectLink(link);
}
return true;
toggleVersions: function () {
this.togglePanel('versions');
- }, toggleLayers: function () {
+ },
+ toggleLayers: function () {
this.togglePanel('layers');
- }, toggleForm: function () {
+ },
+ toggleForm: function () {
this.togglePanel('form');
- }, toggleAccessibility: function () {
+ },
+ toggleAccessibility: function () {
this.togglePanel('accessibility');
- }, togglePanel: function (panel) {
+ },
+ togglePanel: function (panel) {
this.setPanelState(panel, 'toggle');
- }, setPanelState: function (panel, newState) {
+ },
+ setPanelState: function (panel, newState) {
var $this = this;
var panelDiv = $('#linkeditor-panel-' + panel);
let container = panelDiv.closest('.linkeditor-panel-side');
if (newState) {
this.linkeditor.settings.set(side + '_tool', panel);
+ $('body').addClass(panel + '-panel').removeClass('no-' + panel + '-panel');
+ } else {
+ $('body').removeClass(panel + '-panel').addClass('no-' + panel + '-panel');
}
this.linkeditor.settings.set(side + '_open', newState);
&.pendingPolygonCreate
clip-path: none !important
+ .accessibility-panel &[fb-orderable="1"]:after
+ position: absolute
+ left: 5px
+ top: 5px
+ line-height: 30px
+ display: block
+ color: #000
+ font-weight: bold
+ font-size: 20px
+ content: attr(fb-order)
+ background-color: rgba(255,255,255,0.5)
+ width: 30px
+ height: 30px
+ border-radius: 50%
+ text-align: center
+ border: 1px solid #000
+
.corners
visibility: hidden
position: absolute
'delete_selection'=>__('Supprimer la sélection'),
'edit_link_order'=>__('Modifier l\'ordre'),
'reorder_selection'=>__('Réordonner la sélection'),
- 'reorder_horizontal'=>__('Horizontal puis vertical'),
- 'reorder_vertical'=>__('Vertical puis horizontal'),
+ 'reorder_lines'=>__('Par lignes'),
+ 'reorder_columns'=>__('Par colonnes'),
'move_up'=>__('Avant'),
'move_down'=>__('Après'),
'move_beginning'=>__('Au début'),