@yangzw/bruce-img
Version:
An image processing tool that multifunctional and unrestricted
1 lines • 769 B
JavaScript
var x=this&&this.__awaiter||function(t,n,e,i){return new(e||(e=Promise))((function(o,r){function l(t){try{u(i.next(t))}catch(t){r(t)}}function c(t){try{u(i.throw(t))}catch(t){r(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(l,c)}u((i=i.apply(t,n||[])).next())}))};import{MarkBlendPrompt as bt,MarkColorPrompt as xt,MarkLabelPrompt as jt,MarkLeftPrompt as _t,MarkPositionPrompt as zt,MarkSizePrompt as Ot,MarkTopPrompt as Pt}from"./prompt.js";export default function ar(){return x(this,void 0,void 0,(function*(){const t=yield jt(),n=yield Ot(),e=yield xt(),i=yield bt(),o=yield zt();let r={};if("none"===o){r={left:yield _t(),top:yield Pt()}}return Object.assign({blend:i,color:e,label:t,position:o,size:n},r)}))}