mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-02 17:12:45 +00:00
29 lines
783 B
JavaScript
29 lines
783 B
JavaScript
const _ = require('lodash');
|
|
const dedent = require('dedent-tabs').default;
|
|
|
|
module.exports = {
|
|
edge : ()=>{
|
|
return dedent`
|
|
{{imageMaskEdge${_.random(1, 8)},--offset:0cm,--rotation:0
|
|
{height:100%}
|
|
}}
|
|
<!-- Use --offset to shift the edge up or down from the page center.
|
|
Use --rotation to set rotation angle in degrees. -->\n\n`;
|
|
},
|
|
|
|
corner : ()=>{
|
|
return dedent`
|
|
{{imageMaskCorner${_.random(1, 8)},--offsetX:0%,offsetY:0%,--rotation:0
|
|
{height:100%}
|
|
}}
|
|
<!-- Use --offsetX to shift the mask left or right (you can use cm instead of %)
|
|
Use --offsetY to shift the mask up or down
|
|
Use --rotation to set rotation angle in degrees. -->\n\n`;
|
|
}
|
|
|
|
};
|
|
|
|
()=>{
|
|
|
|
};
|