mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-10 22:12:48 +00:00
Fix snippet
This commit is contained in:
@@ -4,10 +4,11 @@ const dedent = require('dedent-tabs').default;
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
center :()=>{
|
center :()=>{
|
||||||
return dedent`
|
return dedent`
|
||||||
{{imageMaskCenter${_.random(1, 10)},--offsetX:0cm,--offsetY:0cm,--rotation:0;
|
{{imageMaskCenter${_.random(1, 10)},--offsetX:0%,--offsetY:0%,--rotation:0;
|
||||||
{height:100%}
|
{height:100%}
|
||||||
}}
|
}}
|
||||||
<!-- Use --offset to shift the mask toward or away from the page center.
|
<!-- Use --offsetX to shift the mask left or right (can use cm instead of %)
|
||||||
|
Use --offsetY to shift the mask up or down
|
||||||
Use --rotation to set rotation angle in degrees. -->\n\n`;
|
Use --rotation to set rotation angle in degrees. -->\n\n`;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -30,7 +31,7 @@ module.exports = {
|
|||||||
const offsetX = (x == 'left' ? '-50%' : '50%');
|
const offsetX = (x == 'left' ? '-50%' : '50%');
|
||||||
const offsetY = (y == 'top' ? '50%' : '-50%');
|
const offsetY = (y == 'top' ? '50%' : '-50%');
|
||||||
return dedent`
|
return dedent`
|
||||||
{{imageMaskCorner${_.random(1, 37)},--offsetX:${offsetX},--offsetY:${offsetY},--rotation:0deg
|
{{imageMaskCorner${_.random(1, 37)},--offsetX:${offsetX},--offsetY:${offsetY},--rotation:0
|
||||||
{height:100%}
|
{height:100%}
|
||||||
}}
|
}}
|
||||||
<!-- Use --offsetX to shift the mask left or right (can use cm instead of %)
|
<!-- Use --offsetX to shift the mask left or right (can use cm instead of %)
|
||||||
|
|||||||
Reference in New Issue
Block a user