@@ -18,25 +18,25 @@ const AssetEdit = {
1818 currentURL : null ,
1919
2020 // Transformations Input
21- transformationsInput : document . getElementById ( 'edit_asset.transformations' ) ,
21+ transformationsInput : document . getElementById ( 'edit_asset.edit_affects. transformations' ) ,
2222
2323 // Text Overlay Inputs
24- textOverlayColorInput : document . getElementById ( 'edit_asset.text_overlay_color' ) ,
25- textOverlayFontFaceInput : document . getElementById ( 'edit_asset.text_overlay_font_face' ) ,
26- textOverlayFontSizeInput : document . getElementById ( 'edit_asset.text_overlay_font_size' ) ,
27- textOverlayTextInput : document . getElementById ( 'edit_asset.text_overlay_text' ) ,
28- textOverlayPositionInput : document . getElementById ( 'edit_asset.text_overlay_position' ) ,
29- textOverlayXOffsetInput : document . getElementById ( 'edit_asset.text_overlay_x_offset' ) ,
30- textOverlayYOffsetInput : document . getElementById ( 'edit_asset.text_overlay_y_offset' ) ,
24+ textOverlayColorInput : document . getElementById ( 'edit_asset.edit_affects. text_overlay_color' ) ,
25+ textOverlayFontFaceInput : document . getElementById ( 'edit_asset.edit_affects. text_overlay_font_face' ) ,
26+ textOverlayFontSizeInput : document . getElementById ( 'edit_asset.edit_affects. text_overlay_font_size' ) ,
27+ textOverlayTextInput : document . getElementById ( 'edit_asset.edit_affects. text_overlay_text' ) ,
28+ textOverlayPositionInput : document . getElementById ( 'edit_asset.edit_affects. text_overlay_position' ) ,
29+ textOverlayXOffsetInput : document . getElementById ( 'edit_asset.edit_affects. text_overlay_x_offset' ) ,
30+ textOverlayYOffsetInput : document . getElementById ( 'edit_asset.edit_affects. text_overlay_y_offset' ) ,
3131
3232 // Image Overlay Inputs
33- imageOverlayImageIdInput : document . getElementById ( 'edit_asset.image_overlay_image_id' ) ,
34- imageOverlayPublicIdInput : document . getElementById ( 'edit_asset.image_overlay_public_id' ) ,
35- imageOverlaySizeInput : document . getElementById ( 'edit_asset.image_overlay_size' ) ,
36- imageOverlayOpacityInput : document . getElementById ( 'edit_asset.image_overlay_opacity' ) ,
37- imageOverlayPositionInput : document . getElementById ( 'edit_asset.image_overlay_position' ) ,
38- imageOverlayXOffsetInput : document . getElementById ( 'edit_asset.image_overlay_x_offset' ) ,
39- imageOverlayYOffsetInput : document . getElementById ( 'edit_asset.image_overlay_y_offset' ) ,
33+ imageOverlayImageIdInput : document . getElementById ( 'edit_asset.edit_affects. image_overlay_image_id' ) ,
34+ imageOverlayPublicIdInput : document . getElementById ( 'edit_asset.edit_affects. image_overlay_public_id' ) ,
35+ imageOverlaySizeInput : document . getElementById ( 'edit_asset.edit_affects. image_overlay_size' ) ,
36+ imageOverlayOpacityInput : document . getElementById ( 'edit_asset.edit_affects. image_overlay_opacity' ) ,
37+ imageOverlayPositionInput : document . getElementById ( 'edit_asset.edit_affects. image_overlay_position' ) ,
38+ imageOverlayXOffsetInput : document . getElementById ( 'edit_asset.edit_affects. image_overlay_x_offset' ) ,
39+ imageOverlayYOffsetInput : document . getElementById ( 'edit_asset.edit_affects. image_overlay_y_offset' ) ,
4040
4141 // Buttons
4242 saveButton : document . getElementById ( 'cld-asset-edit-save' ) ,
@@ -85,7 +85,7 @@ const AssetEdit = {
8585 this . imageOverlayMap = [
8686 { key : 'imageId' , input : this . imageOverlayImageIdInput , defaultValue : '' , event : 'input' } ,
8787 { key : 'publicId' , input : this . imageOverlayPublicIdInput , defaultValue : '' , event : 'input' } ,
88- { key : 'size' , input : this . imageOverlaySizeInput , defaultValue : 20 , event : 'input' } ,
88+ { key : 'size' , input : this . imageOverlaySizeInput , defaultValue : 100 , event : 'input' } ,
8989 { key : 'opacity' , input : this . imageOverlayOpacityInput , defaultValue : 20 , event : 'input' } ,
9090 { key : 'position' , input : this . imageOverlayPositionInput , defaultValue : '' , event : 'change' } ,
9191 { key : 'xOffset' , input : this . imageOverlayXOffsetInput , defaultValue : 0 , event : 'input' } ,
@@ -425,11 +425,11 @@ const AssetEdit = {
425425 }
426426
427427 if ( xOffsetInput ?. value ) {
428- placementQualifiers . push ( `x_${ this . getFormattedPercentageValue ( xOffsetInput . value ) } ` ) ;
428+ placementQualifiers . push ( `x_${ xOffsetInput . value } ` ) ;
429429 }
430430
431431 if ( yOffsetInput ?. value ) {
432- placementQualifiers . push ( `y_${ this . getFormattedPercentageValue ( yOffsetInput . value ) } ` ) ;
432+ placementQualifiers . push ( `y_${ yOffsetInput . value } ` ) ;
433433 }
434434
435435 return placementQualifiers . length > 0 ? ',' + placementQualifiers . join ( ',' ) : '' ;
@@ -446,7 +446,7 @@ const AssetEdit = {
446446 let transformations = [ ] ;
447447
448448 if ( this . imageOverlaySizeInput ?. value ) {
449- transformations . push ( `c_scale,w_${ this . getFormattedPercentageValue ( this . imageOverlaySizeInput . value ) } ` ) ;
449+ transformations . push ( `c_scale,w_${ this . imageOverlaySizeInput . value } ` ) ;
450450 }
451451
452452 if ( this . imageOverlayOpacityInput ?. value ) {
0 commit comments