@agence-webup/rgb-panel-frontend
Advanced tools
Comparing version 2.0.2 to 2.0.3
/*! | ||
* WebupRGBPanel v1.0.0 | ||
* WebupRGBPanel v2.0.2 | ||
* (c) 2016-2020 Agence Webup | ||
@@ -92,3 +92,2 @@ * Released under the MIT License. | ||
this.thicknessSize3 = document.getElementById('size3'); | ||
this.sendButton = document.getElementById('send'); | ||
this.init(); | ||
@@ -95,0 +94,0 @@ this.canvas.addEventListener('mousedown', function () { |
/*! | ||
* WebupRGBPanel v1.0.0 | ||
* WebupRGBPanel v2.0.2 | ||
* (c) 2016-2020 Agence Webup | ||
* Released under the MIT License. | ||
*/ | ||
!function(M,N){"object"==typeof exports&&"undefined"!=typeof module?module.exports=N():"function"==typeof define&&define.amd?define(N):(M=M||self).WebupRGBPanel=N()}(this,function(){"use strict";function j(M,N){for(var D=0;D<N.length;D++){var j=N[D];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(M,j.key,j)}}return function(){function t(M,N,D,j,I,i,T){var z=this;!function(M,N){if(!(M instanceof N))throw new TypeError("Cannot call a class as a function")}(this,t),this.panelId=M,this.toolsId=N,this.width=D,this.height=j,this.apiEndpoint=I,this.matrix=[],this.mode=1,this.thickness=1,this.color="#00F",this.mouseDown=!1,this.thicknessPanelVisible=!1,this.rgbWrapper=document.getElementById("webup_rgb"),this.canvas=document.getElementById(this.panelId),this.tools=document.getElementById(this.toolsId),this.sendButton=document.getElementById(i),this.clearButton=document.getElementById(T);var g="\n ".concat(this.assetSize(1),"\n ").concat(this.assetSize(2),"\n ").concat(this.assetSize(3),'\n <a>\n <img id="pencil" src="').concat(this.assetPencil(),'" alt="pencil">\n </a>\n <a>\n <img src="').concat(this.assetEraser(),'" alt="eraser" id="eraser">\n </a>\n <span id="colorWrapper">\n <input type="color" id="colorInput" value="#00F">\n <img src="').concat(this.assetColorPalette(),'" id="color">\n </span>\n ');this.tools.insertAdjacentHTML("afterbegin",g),this.messageBox=document.getElementById("message"),this.pencilButton=document.getElementById("pencil"),this.eraserButton=document.getElementById("eraser"),this.colorInput=document.getElementById("colorInput"),this.colorPreview=document.getElementById("color"),this.thicknessSize1=document.getElementById("size1"),this.thicknessSize2=document.getElementById("size2"),this.thicknessSize3=document.getElementById("size3"),this.sendButton=document.getElementById("send"),this.init(),this.canvas.addEventListener("mousedown",function(){z.mouseDown=!0}),this.canvas.addEventListener("touchstart",function(){z.mouseDown=!0}),this.canvas.addEventListener("mouseup",function(){z.mouseDown=!1}),this.canvas.addEventListener("touchend",function(){z.mouseDown=!1}),this.canvas.addEventListener("mousemove",function(M){if(!0===z.mouseDown){var N=z.canvas.getBoundingClientRect().width,D=13*z.matrix.length/N,j=(M.pageX-z.canvas.offsetLeft)*D,I=(M.pageY-z.canvas.offsetTop)*D;z.drawOnCanvas(j,I,z.color)}}),this.canvas.addEventListener("touchmove",function(M){if(!0===z.mouseDown){M.preventDefault();var N=z.canvas.getBoundingClientRect().width,D=13*z.matrix.length/N,j=(M.pageX-z.canvas.offsetLeft)*D,I=(M.pageY-z.canvas.offsetTop)*D;z.drawOnCanvas(j,I,z.color)}}),this.colorPreview.addEventListener("click",function(){z.colorInput.value=z.color}),this.colorInput.addEventListener("change",function(){z.setColor()}),this.colorInput.addEventListener("input",function(){z.setColor()}),this.thicknessSize1.addEventListener("click",function(){z.setThickness(z.thicknessSize1)}),this.thicknessSize2.addEventListener("click",function(){z.setThickness(z.thicknessSize2)}),this.thicknessSize3.addEventListener("click",function(){z.setThickness(z.thicknessSize3)}),this.pencilButton.addEventListener("click",function(){1!==z.mode&&(z.mode=1,z.eraserButton.classList.contains("toolSelected")&&z.eraserButton.classList.remove("toolSelected"),z.pencilButton.classList.add("toolSelected"))}),this.eraserButton.addEventListener("click",function(){0!==z.mode&&(z.mode=0,z.pencilButton.classList.contains("toolSelected")&&z.pencilButton.classList.remove("toolSelected"),z.eraserButton.classList.add("toolSelected"))}),this.sendButton.addEventListener("click",function(){z.send()}),this.clearButton.addEventListener("click",function(){z.init()})}var M,N,D;return M=t,(N=[{key:"init",value:function(){this.matrix=[];for(var M=[],N=0;N<this.height;N++)M.push("#000");for(var D=0;D<this.width;D++)this.matrix.push(M);this.drawCanvas(),this.pencilButton.classList.add("toolSelected"),document.getElementById("smallFill").setAttribute("fill",this.color),document.getElementById("mediumFill").setAttribute("fill",this.color),document.getElementById("largeFill").setAttribute("fill",this.color)}},{key:"setThickness",value:function(M){switch(this.thicknessSize1.classList.contains("toolSelected")&&this.thicknessSize1.classList.remove("toolSelected"),this.thicknessSize2.classList.contains("toolSelected")&&this.thicknessSize2.classList.remove("toolSelected"),this.thicknessSize3.classList.contains("toolSelected")&&this.thicknessSize3.classList.remove("toolSelected"),M.id){case"size1":this.thickness=1;break;case"size2":this.thickness=2;break;case"size3":this.thickness=3}M.classList.add("toolSelected"),document.getElementById("smallFill").setAttribute("fill",this.color),document.getElementById("mediumFill").setAttribute("fill",this.color),document.getElementById("largeFill").setAttribute("fill",this.color)}},{key:"setColor",value:function(){this.mode=1,this.pencilButton.classList.contains("toolSelected")||this.pencilButton.classList.add("toolSelected"),this.eraserButton.classList.contains("toolSelected")&&this.eraserButton.classList.remove("toolSelected"),this.color=this.colorInput.value,this.colorPreview.style.backgroundColor=this.color,document.getElementById("smallFill").setAttribute("fill",this.color),document.getElementById("mediumFill").setAttribute("fill",this.color),document.getElementById("largeFill").setAttribute("fill",this.color)}},{key:"drawCanvas",value:function(){if(this.canvas.getContext){var M=this.canvas.getContext("2d");M.imageSmoothingEnabled=!1,M.lineWidth=1;for(var N=0,D=0,j=3,I=3,i=0;i<this.matrix.length;i++){for(var T=0;T<this.matrix[i].length;T++)M.strokeStyle="#909090",M.strokeRect(N,D,13,13),M.fillStyle="#777777",M.fillRect(N+1,D+1,12,12),M.fillStyle="#000"==this.matrix[i][T]?"#BABABA":this.matrix[i][T],M.fillRect(j,I,8,8),D+=13,I+=13;N+=13,D=0,j+=13,I=3}}}},{key:"drawOnCanvas",value:function(M,N){var D=Math.abs(Math.floor(M/13)),j=Math.abs(Math.floor(N/13)),I=[],i=[];I.push(D),i.push(j),1<this.thickness&&(0<=j-1&&i.push(j-1),D+1<=this.width-1&&I.push(D+1)),2<this.thickness&&(0<=D-1&&I.push(D-1),j+1<=this.width-1&&i.push(j+1));for(var T=[],z=0;z<this.matrix.length;z++){var g=[];if(g=JSON.parse(JSON.stringify(this.matrix[z])),I.includes(z)){if(1===this.mode)for(var t=0;t<i.length;t++)g[i[t]]=this.color;0===this.mode&&(g[j]="#000")}T.push(JSON.parse(JSON.stringify(g)))}if(this.matrix=T,1===this.thickness){var e=this.canvas.getContext("2d");e.imageSmoothingEnabled=!1,e.fillStyle="#000"===this.matrix[D][j]?"#BABABA":this.matrix[D][j],e.fillRect(13*D+3,13*j+3,8,8)}else this.drawCanvas()}},{key:"sendDrawing",value:function(){for(var M=[],N=0;N<this.matrix.length;N++)for(var D=0;D<this.matrix[N].length;D++)if("#000"!==this.matrix[N][D]){var j=this.hexToRgb(this.matrix[N][D]);M.push({x:+N,y:+D,r:+j.r,g:+j.g,b:+j.b})}var I={drawing:M};if(M.length<1)return alert("Dessinez ou écrivez quelque chose à envoyer !"),!1;var i=new XMLHttpRequest;i.addEventListener("load",this.init()),i.addEventListener("error",this.sendError),i.open("POST","".concat(this.apiEndpoint,"/send/drawing")),i.setRequestHeader("Content-Type","application/json"),i.send(JSON.stringify(I))}},{key:"sendMessage",value:function(){var M=this,N={text:this.messageBox.value},D=new XMLHttpRequest;D.addEventListener("load",function(){M.messageBox.value="",M.init()}),D.addEventListener("error",this.sendError),D.open("POST","".concat(this.apiEndpoint,"/send/message")),D.setRequestHeader("Content-Type","application/json"),D.send(JSON.stringify(N))}},{key:"hexToRgb",value:function(M){M=M.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(M,N,D,j){return N+N+D+D+j+j});var N=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(M);return N?{r:parseInt(N[1],16),g:parseInt(N[2],16),b:parseInt(N[3],16)}:null}},{key:"sendError",value:function(){alert("Une erreur est survenue")}},{key:"send",value:function(){null!==this.messageBox&&0<this.messageBox.value.length?this.sendMessage():this.sendDrawing()}},{key:"assetColorPalette",value:function(){return"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj4KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzEgLTU1MDIpIj4KICAgIDxyZWN0IHdpZHRoPSIxNDQwIiBoZWlnaHQ9IjYwNDciIGZpbGw9IiNGQkZCRkEiLz4KICAgIDxyZWN0IHdpZHRoPSIxNDQwIiBoZWlnaHQ9IjEwNTEiIHg9IjEiIHk9IjQ2MDMiIGZpbGw9IiNGQkZCRkEiLz4KICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIyMSA1MjY3KSI+CiAgICAgIDxyZWN0IHdpZHRoPSI1OSIgaGVpZ2h0PSIyODQiIHg9Ii41IiB5PSIuNSIgZmlsbD0iI0U1RTZFOCIgc3Ryb2tlPSIjNTk2MjcwIiBzdHJva2Utb3BhY2l0eT0iLjM2NyIvPgogICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMCAyMzUpIj4KICAgICAgICA8cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiLz4KICAgICAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDggOCkiPgogICAgICAgICAgPHBhdGggZmlsbD0iI0ZGRiIgZD0iTTAuNTIwODMzMzMzLDExLjk4MjM5NTggQzAuNTIwODMzMzMzLDQuMzQzODU0MTcgNi4yNSwwLjUyNDA2MjUgMTEuOTc5MTY2NywwLjUyNDA2MjUgQzE4LjY2MzU0MTcsMC41Mj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xLjI1OTUsMTYuODg3NiBDMS4xNjU1LDE2Ljc4NDYgMS4wMzE1LDE2LjcyNTYgMC44OTE1LDE2LjcyNTYgTDAuODkwNSwxNi43MjU2IEMwLjc0OTUsMTYuNzI1NiAwLjYxNTUsMTYuNzg1NiAwLjUyMTUsMTYuODg5NiBDLTAuMTgzNSwxNy42Njc2IC0wLjE2NzUsMTguODYyNiAwLjU1NjUsMTkuNjExNiBMMy42ODg1LDIyLjg1MDYgQzMuNzgyNSwyMi45NDg2IDMuOTEyNSwyMy4wMDM2IDQuMDQ3NSwyMy4wMDM2IEw5Ljk1NTUsMjMuMDAzNiBDMTAuMDkwNSwyMy4wMDM2IDEwLjIyMDUsMjIuOTQ4NiAxMC4zMTQ1LDIyLjg1MDYgTDEyLjE5OTUsMjAuOTAyNiBDMTIuMzkxNSwyMS4wNDk2IDEyLjY3NDUsMjEuMDM1NiAxMi44NTM1LDIwLjg1NjYgTDI0Ljg1MzUsOC44NTY2IEMyNS4wNDg1LDguNjYxNiAyNS4wNDg1LDguMzQ0NiAyNC44NTM1LDguMTQ5NiBMMjMuODUzNSw3LjE0OTYgWiIgb3BhY2l0eT0iLjEyIi8+CiAgICAgICAgPC9nPgogICAgICA8L2c+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"}},{key:"assetSize",value:function(M){switch(M){case 1:return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" id="size1" class="toolSelected"><g fill="none" fill-rule="evenodd" transform="translate(-231 -5502)"><rect width="1440" height="6047" fill="#FBFBFA"/><rect width="1440" height="1051" x="1" y="4603" fill="#FBFBFA"/><g transform="translate(221 5267)"><rect width="59" height="284" x=".5" y=".5" fill="#E5E6E8" stroke="#596270" stroke-opacity=".367" id="smallStroke"/><rect width="40" height="40" transform="translate(10 235)"/><rect width="7" height="7" x="26" y="252" fill="#596270" id="smallFill"/></g></g></svg>';case 2:return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" id="size2"><g fill="none" fill-rule="evenodd" transform="translate(-231 -5502)"><rect width="1440" height="6047" fill="#FBFBFA"/><rect width="1440" height="1051" x="1" y="4603" fill="#FBFBFA"/><g transform="translate(221 5267)"><rect width="59" height="284" x=".5" y=".5" fill="#E5E6E8" stroke="#596270" stroke-opacity=".367" id="mediumStroke"/><rect width="40" height="40" transform="translate(10 235)"/><rect width="12" height="12" x="24" y="250" fill="#596270" id="mediumFill"/></g></g></svg>';case 3:return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" id="size3"><g fill="none" fill-rule="evenodd" transform="translate(-231 -5502)"><rect width="1440" height="6047" fill="#FBFBFA"/><rect width="1440" height="1051" x="1" y="4603" fill="#FBFBFA"/><g transform="translate(221 5267)"><rect width="59" height="284" x=".5" y=".5" fill="#E5E6E8" stroke="#596270" stroke-opacity=".367" id="largeStroke"/><rect width="40" height="40" transform="translate(10 235)"/><rect width="20" height="20" x="20" y="246" fill="#596270" id="largeFill"/></g></g></svg>';default:return null}}}])&&j(M.prototype,N),D&&j(M,D),t}()}); | ||
!function(M,N){"object"==typeof exports&&"undefined"!=typeof module?module.exports=N():"function"==typeof define&&define.amd?define(N):(M=M||self).WebupRGBPanel=N()}(this,function(){"use strict";function j(M,N){for(var D=0;D<N.length;D++){var j=N[D];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(M,j.key,j)}}return function(){function t(M,N,D,j,I,i,T){var z=this;!function(M,N){if(!(M instanceof N))throw new TypeError("Cannot call a class as a function")}(this,t),this.panelId=M,this.toolsId=N,this.width=D,this.height=j,this.apiEndpoint=I,this.matrix=[],this.mode=1,this.thickness=1,this.color="#00F",this.mouseDown=!1,this.thicknessPanelVisible=!1,this.rgbWrapper=document.getElementById("webup_rgb"),this.canvas=document.getElementById(this.panelId),this.tools=document.getElementById(this.toolsId),this.sendButton=document.getElementById(i),this.clearButton=document.getElementById(T);var g="\n ".concat(this.assetSize(1),"\n ").concat(this.assetSize(2),"\n ").concat(this.assetSize(3),'\n <a>\n <img id="pencil" src="').concat(this.assetPencil(),'" alt="pencil">\n </a>\n <a>\n <img src="').concat(this.assetEraser(),'" alt="eraser" id="eraser">\n </a>\n <span id="colorWrapper">\n <input type="color" id="colorInput" value="#00F">\n <img src="').concat(this.assetColorPalette(),'" id="color">\n </span>\n ');this.tools.insertAdjacentHTML("afterbegin",g),this.messageBox=document.getElementById("message"),this.pencilButton=document.getElementById("pencil"),this.eraserButton=document.getElementById("eraser"),this.colorInput=document.getElementById("colorInput"),this.colorPreview=document.getElementById("color"),this.thicknessSize1=document.getElementById("size1"),this.thicknessSize2=document.getElementById("size2"),this.thicknessSize3=document.getElementById("size3"),this.init(),this.canvas.addEventListener("mousedown",function(){z.mouseDown=!0}),this.canvas.addEventListener("touchstart",function(){z.mouseDown=!0}),this.canvas.addEventListener("mouseup",function(){z.mouseDown=!1}),this.canvas.addEventListener("touchend",function(){z.mouseDown=!1}),this.canvas.addEventListener("mousemove",function(M){if(!0===z.mouseDown){var N=z.canvas.getBoundingClientRect().width,D=13*z.matrix.length/N,j=(M.pageX-z.canvas.offsetLeft)*D,I=(M.pageY-z.canvas.offsetTop)*D;z.drawOnCanvas(j,I,z.color)}}),this.canvas.addEventListener("touchmove",function(M){if(!0===z.mouseDown){M.preventDefault();var N=z.canvas.getBoundingClientRect().width,D=13*z.matrix.length/N,j=(M.pageX-z.canvas.offsetLeft)*D,I=(M.pageY-z.canvas.offsetTop)*D;z.drawOnCanvas(j,I,z.color)}}),this.colorPreview.addEventListener("click",function(){z.colorInput.value=z.color}),this.colorInput.addEventListener("change",function(){z.setColor()}),this.colorInput.addEventListener("input",function(){z.setColor()}),this.thicknessSize1.addEventListener("click",function(){z.setThickness(z.thicknessSize1)}),this.thicknessSize2.addEventListener("click",function(){z.setThickness(z.thicknessSize2)}),this.thicknessSize3.addEventListener("click",function(){z.setThickness(z.thicknessSize3)}),this.pencilButton.addEventListener("click",function(){1!==z.mode&&(z.mode=1,z.eraserButton.classList.contains("toolSelected")&&z.eraserButton.classList.remove("toolSelected"),z.pencilButton.classList.add("toolSelected"))}),this.eraserButton.addEventListener("click",function(){0!==z.mode&&(z.mode=0,z.pencilButton.classList.contains("toolSelected")&&z.pencilButton.classList.remove("toolSelected"),z.eraserButton.classList.add("toolSelected"))}),this.sendButton.addEventListener("click",function(){z.send()}),this.clearButton.addEventListener("click",function(){z.init()})}var M,N,D;return M=t,(N=[{key:"init",value:function(){this.matrix=[];for(var M=[],N=0;N<this.height;N++)M.push("#000");for(var D=0;D<this.width;D++)this.matrix.push(M);this.drawCanvas(),this.pencilButton.classList.add("toolSelected"),document.getElementById("smallFill").setAttribute("fill",this.color),document.getElementById("mediumFill").setAttribute("fill",this.color),document.getElementById("largeFill").setAttribute("fill",this.color)}},{key:"setThickness",value:function(M){switch(this.thicknessSize1.classList.contains("toolSelected")&&this.thicknessSize1.classList.remove("toolSelected"),this.thicknessSize2.classList.contains("toolSelected")&&this.thicknessSize2.classList.remove("toolSelected"),this.thicknessSize3.classList.contains("toolSelected")&&this.thicknessSize3.classList.remove("toolSelected"),M.id){case"size1":this.thickness=1;break;case"size2":this.thickness=2;break;case"size3":this.thickness=3}M.classList.add("toolSelected"),document.getElementById("smallFill").setAttribute("fill",this.color),document.getElementById("mediumFill").setAttribute("fill",this.color),document.getElementById("largeFill").setAttribute("fill",this.color)}},{key:"setColor",value:function(){this.mode=1,this.pencilButton.classList.contains("toolSelected")||this.pencilButton.classList.add("toolSelected"),this.eraserButton.classList.contains("toolSelected")&&this.eraserButton.classList.remove("toolSelected"),this.color=this.colorInput.value,this.colorPreview.style.backgroundColor=this.color,document.getElementById("smallFill").setAttribute("fill",this.color),document.getElementById("mediumFill").setAttribute("fill",this.color),document.getElementById("largeFill").setAttribute("fill",this.color)}},{key:"drawCanvas",value:function(){if(this.canvas.getContext){var M=this.canvas.getContext("2d");M.imageSmoothingEnabled=!1,M.lineWidth=1;for(var N=0,D=0,j=3,I=3,i=0;i<this.matrix.length;i++){for(var T=0;T<this.matrix[i].length;T++)M.strokeStyle="#909090",M.strokeRect(N,D,13,13),M.fillStyle="#777777",M.fillRect(N+1,D+1,12,12),M.fillStyle="#000"==this.matrix[i][T]?"#BABABA":this.matrix[i][T],M.fillRect(j,I,8,8),D+=13,I+=13;N+=13,D=0,j+=13,I=3}}}},{key:"drawOnCanvas",value:function(M,N){var D=Math.abs(Math.floor(M/13)),j=Math.abs(Math.floor(N/13)),I=[],i=[];I.push(D),i.push(j),1<this.thickness&&(0<=j-1&&i.push(j-1),D+1<=this.width-1&&I.push(D+1)),2<this.thickness&&(0<=D-1&&I.push(D-1),j+1<=this.width-1&&i.push(j+1));for(var T=[],z=0;z<this.matrix.length;z++){var g=[];if(g=JSON.parse(JSON.stringify(this.matrix[z])),I.includes(z)){if(1===this.mode)for(var t=0;t<i.length;t++)g[i[t]]=this.color;0===this.mode&&(g[j]="#000")}T.push(JSON.parse(JSON.stringify(g)))}if(this.matrix=T,1===this.thickness){var e=this.canvas.getContext("2d");e.imageSmoothingEnabled=!1,e.fillStyle="#000"===this.matrix[D][j]?"#BABABA":this.matrix[D][j],e.fillRect(13*D+3,13*j+3,8,8)}else this.drawCanvas()}},{key:"sendDrawing",value:function(){for(var M=[],N=0;N<this.matrix.length;N++)for(var D=0;D<this.matrix[N].length;D++)if("#000"!==this.matrix[N][D]){var j=this.hexToRgb(this.matrix[N][D]);M.push({x:+N,y:+D,r:+j.r,g:+j.g,b:+j.b})}var I={drawing:M};if(M.length<1)return alert("Dessinez ou écrivez quelque chose à envoyer !"),!1;var i=new XMLHttpRequest;i.addEventListener("load",this.init()),i.addEventListener("error",this.sendError),i.open("POST","".concat(this.apiEndpoint,"/send/drawing")),i.setRequestHeader("Content-Type","application/json"),i.send(JSON.stringify(I))}},{key:"sendMessage",value:function(){var M=this,N={text:this.messageBox.value},D=new XMLHttpRequest;D.addEventListener("load",function(){M.messageBox.value="",M.init()}),D.addEventListener("error",this.sendError),D.open("POST","".concat(this.apiEndpoint,"/send/message")),D.setRequestHeader("Content-Type","application/json"),D.send(JSON.stringify(N))}},{key:"hexToRgb",value:function(M){M=M.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(M,N,D,j){return N+N+D+D+j+j});var N=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(M);return N?{r:parseInt(N[1],16),g:parseInt(N[2],16),b:parseInt(N[3],16)}:null}},{key:"sendError",value:function(){alert("Une erreur est survenue")}},{key:"send",value:function(){null!==this.messageBox&&0<this.messageBox.value.length?this.sendMessage():this.sendDrawing()}},{key:"assetColorPalette",value:function(){return"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj4KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzEgLTU1MDIpIj4KICAgIDxyZWN0IHdpZHRoPSIxNDQwIiBoZWlnaHQ9IjYwNDciIGZpbGw9IiNGQkZCRkEiLz4KICAgIDxyZWN0IHdpZHRoPSIxNDQwIiBoZWlnaHQ9IjEwNTEiIHg9IjEiIHk9IjQ2MDMiIGZpbGw9IiNGQkZCRkEiLz4KICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIyMSA1MjY3KSI+CiAgICAgIDxyZWN0IHdpZHRoPSI1OSIgaGVpZ2h0PSIyODQiIHg9Ii41IiB5PSIuNSIgZmlsbD0iI0U1RTZFOCIgc3Ryb2tlPSIjNTk2MjcwIiBzdHJva2Utb3BhY2l0eT0iLjM2NyIvPgogICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMCAyMzUpIj4KICAgICAgICA8cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiLz4KICAgICAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHRyY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NzA5NiAxMS4yMDY1LDE4LjcwOTYgQzExLjEwMTUsMTguNzA5NiAxMC45NDA1LDE4Ljc2MzYgMTAuODQ2NSwxOC44NjE2IEw5Ljc0MzUsMjAuMDAzNiBMNC4yNTk1LDIwLjAwMzYgTDEuMzA4NSwxNi45NTE2IEMxLjI5MjUsMTYuOTI3NiAxLjI3NTUsMTYuOTA0NiAxLjI1OTUsMTYuODg3NiBDMS4xNjU1LDE2Ljc4NDYgMS4wMzE1LDE2LjcyNTYgMC44OTE1LDE2LjcyNTYgTDAuODkwNSwxNi43MjU2IEMwLjc0OTUsMTYuNzI1NiAwLjYxNTUsMTYuNzg1NiAwLjUyMTUsMTYuODg5NiBDLTAuMTgzNSwxNy42Njc2IC0wLjE2NzUsMTguODYyNiAwLjU1NjUsMTkuNjExNiBMMy42ODg1LDIyLjg1MDYgQzMuNzgyNSwyMi45NDg2IDMuOTEyNSwyMy4wMDM2IDQuMDQ3NSwyMy4wMDM2IEw5Ljk1NTUsMjMuMDAzNiBDMTAuMDkwNSwyMy4wMDM2IDEwLjIyMDUsMjIuOTQ4NiAxMC4zMTQ1LDIyLjg1MDYgTDEyLjE5OTUsMjAuOTAyNiBDMTIuMzkxNSwyMS4wNDk2IDEyLjY3NDUsMjEuMDM1NiAxMi44NTM1LDIwLjg1NjYgTDI0Ljg1MzUsOC44NTY2IEMyNS4wNDg1LDguNjYxNiAyNS4wNDg1LDguMzQ0NiAyNC44NTM1LDguMTQ5NiBMMjMuODUzNSw3LjE0OTYgWiIgb3BhY2l0eT0iLjEyIi8+CiAgICAgICAgPC9nPgogICAgICA8L2c+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"}},{key:"assetSize",value:function(M){switch(M){case 1:return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" id="size1" class="toolSelected"><g fill="none" fill-rule="evenodd" transform="translate(-231 -5502)"><rect width="1440" height="6047" fill="#FBFBFA"/><rect width="1440" height="1051" x="1" y="4603" fill="#FBFBFA"/><g transform="translate(221 5267)"><rect width="59" height="284" x=".5" y=".5" fill="#E5E6E8" stroke="#596270" stroke-opacity=".367" id="smallStroke"/><rect width="40" height="40" transform="translate(10 235)"/><rect width="7" height="7" x="26" y="252" fill="#596270" id="smallFill"/></g></g></svg>';case 2:return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" id="size2"><g fill="none" fill-rule="evenodd" transform="translate(-231 -5502)"><rect width="1440" height="6047" fill="#FBFBFA"/><rect width="1440" height="1051" x="1" y="4603" fill="#FBFBFA"/><g transform="translate(221 5267)"><rect width="59" height="284" x=".5" y=".5" fill="#E5E6E8" stroke="#596270" stroke-opacity=".367" id="mediumStroke"/><rect width="40" height="40" transform="translate(10 235)"/><rect width="12" height="12" x="24" y="250" fill="#596270" id="mediumFill"/></g></g></svg>';case 3:return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" id="size3"><g fill="none" fill-rule="evenodd" transform="translate(-231 -5502)"><rect width="1440" height="6047" fill="#FBFBFA"/><rect width="1440" height="1051" x="1" y="4603" fill="#FBFBFA"/><g transform="translate(221 5267)"><rect width="59" height="284" x=".5" y=".5" fill="#E5E6E8" stroke="#596270" stroke-opacity=".367" id="largeStroke"/><rect width="40" height="40" transform="translate(10 235)"/><rect width="20" height="20" x="20" y="246" fill="#596270" id="largeFill"/></g></g></svg>';default:return null}}}])&&j(M.prototype,N),D&&j(M,D),t}()}); |
{ | ||
"name": "@agence-webup/rgb-panel-frontend", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Frontend for the RGB Panel project.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113312
1433