File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ const NewComponentUsage = () => (
7474 autoPlay : true ,
7575 muted : true
7676 } }
77+ resize = { {
78+ height : 200
79+ } }
7780 videoCodec = { {
7881 use : 'h264' ,
7982 profile : 'baseline' ,
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ export const parseGravity = (gravity: Gravity) => {
2626
2727 switch ( gravity . mode ) {
2828 case 'special' :
29+ if ( gravity . position === 'liquid' ) {
30+ return 'g_liquid' ;
31+ }
2932 return '' ;
3033 case 'object' :
3134 return '' ;
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ export const createParseResize =
2727
2828 if ( ! resize . mode ) {
2929 return `c_scale${
30- parseWhenDefined ( resize . width , ( width ) => `w_ ${ width } ` ) } ${
31- parseWhenDefined ( resize . height , ( height ) => `h_ ${ height } ` )
30+ parseWhenDefined ( resize . width , parseWidth ) } ${
31+ parseWhenDefined ( resize . height , parseHeight )
3232 } `;
3333 }
3434
@@ -52,7 +52,7 @@ export const createParseResize =
5252 return `c_scale${
5353 parseWhenDefined ( resize . ignoreAspectRatio , parseIgnoreAspectRatio ) } ${
5454 parseWhenDefined ( resize . aspectRatio , parseAspectRatio ) } ${
55- resize . gravity ? 'g_liquid' : '' } ${
55+ parseWhenDefined ( resize . gravity , ( ) => parseGravity ( { mode : 'special' , position : 'liquid' } ) ) } ${
5656 parseWhenDefined ( resize . width , parseWidth ) } ${
5757 parseWhenDefined ( resize . height , parseHeight )
5858 } `;
You can’t perform that action at this time.
0 commit comments