0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-02 17:12:45 +00:00
Files
homebrewery/themes/V3/Blank/snippets/imageMask.gen.js
2023-02-02 11:49:25 -05:00

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
![](https://i.imgur.com/GZfjDWV.png){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
![](https://i.imgur.com/1w5khYt.png){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`;
}
};
()=>{
};