UNPKG

jodit-pro

Version:

PRO Version of Jodit Editor

2 lines (1 loc) 1.29 kB
var h=Object.defineProperty;var f=(r,e)=>h(r,"name",{value:e,configurable:!0});var i,c=function(r,e,o,t){var n=arguments.length,l=n<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,o):t,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(r,e,o,t);else for(var p=r.length-1;p>=0;p--)(a=r[p])&&(l=(n<3?a(l):n>3?a(e,o,l):a(e,o))||l);return n>3&&l&&Object.defineProperty(e,o,l),l};import{component as m,hook as d}from"jodit/esm/core/decorators/index.js";import{UIRange as u}from"../../../../../core/ui/form/range/range.js";import{ColorInput as y}from"../../../../color-picker/ui/input/color-input.js";import{UIPolylineEditor as g}from"../polyline/polyline.js";let s=(i=class extends g{className(){return"UIPolygonEditor"}onReady(){var e,o;this.append([new y(this.j,{label:"Fill color",value:(e=this.state.fillColor)!==null&&e!==void 0?e:"#000",onChange:f(t=>this.j.e.fire(this,"change","fillColor",t),"onChange")}).setMod("trigger",!1),new u(this.j,{label:"Opacity",min:0,max:1,value:(o=this.state.fillOpacity)!==null&&o!==void 0?o:1,onChange:f(t=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(t)||0)},"onChange")}).setMod("log",!1)],"form")}},f(i,"UIPolygonEditor"),i);c([d("ready")],s.prototype,"onReady",null),s=c([m],s);export{s as UIPolygonEditor};