"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[103],{20669:(e,l,t)=>{t.r(l),t.d(l,{default:()=>d});var i=t(47962),n=t(77707),c=t(5176),a=t(70241),s=t(71869);const d=(0,i.Pi)((e=>{let{slideId:l}=e;const t=(0,a.m)(),{viewStore:i}=t,d=t.paintStore,o=(0,n.useRef)(null);(0,n.useLayoutEffect)((()=>{if(!d.enabled)return;const e=o.current;return d.init(e),()=>{d.save(l,e),d.unmount()}}),[d,d.enabled,l]);const{sketchStorage:r,selectedColor:u,widthSelected:h}=d,f=i.findSlideById(l),w=i.calculateSlideScaleToFit(f);return(0,s.jsx)("div",{className:"genially-view-sketch-field-container",children:(0,s.jsx)(c.SketchField,{style:{transform:"scale(".concat(w,")")},ref:o,height:f.Height,width:f.Width,tool:c.Tools.Pencil,lineColor:u,lineWidth:h,defaultValue:r[l],className:"genially-view-sketch-field"})})}))}}]);
//# sourceMappingURL=https://statics-view.genially.com/view/static/js/sketch.63e6552c.chunk.js.map