Skip to content

Commit

Permalink
ci: change labels of expand option of the tool_image_rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-render committed Aug 28, 2024
1 parent cc91d7a commit 59fb20d
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 17 deletions.
9 changes: 2 additions & 7 deletions tools/tool_image_rotation/js/render_tool_image_rotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,11 @@ const get_buttons = function(self) {
})

// expanded check box
// rotate the image and expand the canvas, with this option active the image expand the background avoiding crop.
// label
const expanded_label = ui.create_dom_element({
element_type : 'label',
inner_html : self.get_tool_label('expanded') || 'Expanded',
inner_html : self.get_tool_label('expand') || 'Expand',
parent : color_options_container
})

Expand All @@ -289,18 +290,12 @@ const get_buttons = function(self) {
expanded_checkbox.addEventListener('change', function(e) {

if(e.target.checked === true){

const image_size = self.main_element_image.getBoundingClientRect()
self.image_container.style.width = image_size.width +'px'


}else{

self.image_container.style.width = self.image_container.dd_options.width +'px'
self.image_container.style.height = self.image_container.dd_options.height +'px'

}

})

// apply_rotation_button_container
Expand Down
65 changes: 55 additions & 10 deletions tools/tool_image_rotation/register.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
{
"type": "dd151",
"section_id": "1",
"section_id": "-1",
"section_tipo": "dd128",
"from_component_tipo": "dd197"
}
Expand Down Expand Up @@ -75,13 +75,13 @@
"lg-nolan": [
{
"start": {
"day": 14,
"day": 28,
"hour": 20,
"time": 65062212940,
"time": 65074133255,
"year": 2024,
"month": 4,
"minute": 55,
"second": 40
"month": 8,
"minute": 7,
"second": 35
}
}
]
Expand Down Expand Up @@ -177,15 +177,15 @@
"inf": "Versión [component_input_text]",
"dato": {
"lg-nolan": [
"1.0.1"
"1.0.2"
]
}
},
"dd1328": {
"inf": "Versión Dédalo mínima [component_input_text]",
"dato": {
"lg-nolan": [
"6.1.0"
"6.2.6"
]
}
},
Expand Down Expand Up @@ -353,6 +353,51 @@
"lang": "lg-ell",
"name": "bk_colour",
"value": "Χρώμα φόντου"
},
{
"lang": "lg-eng",
"name": "expand",
"value": "Expand"
},
{
"lang": "lg-spa",
"name": "expand",
"value": "Expandir"
},
{
"lang": "lg-cat",
"name": "expand",
"value": "Expandir"
},
{
"lang": "lg-fra",
"name": "expand",
"value": "Élargir"
},
{
"lang": "lg-ita",
"name": "expand",
"value": "Espandi"
},
{
"lang": "lg-ell",
"name": "expand",
"value": "Επεκτείνετε το"
},
{
"lang": "lg-deu",
"name": "expand",
"value": "Erweitern Sie"
},
{
"lang": "lg-nep",
"name": "expand",
"value": ""
},
{
"lang": "lg-eus",
"name": "expand",
"value": ""
}
]
]
Expand All @@ -370,9 +415,9 @@
"section_id": 29,
"created_date": "2024-03-07 17:20:47",
"section_tipo": "dd1340",
"modified_date": "2024-04-14 20:55:40",
"modified_date": "2024-08-28 20:07:35",
"diffusion_info": null,
"created_by_userID": -1,
"section_real_tipo": "dd73",
"modified_by_userID": 1
"modified_by_userID": -1
}

0 comments on commit 59fb20d

Please sign in to comment.