import{r as t,c as s,h as i,g as o}from"./p-78e3ebb9.js";const e="taro-canvas-core{display:block;position:relative;width:300px;height:150px}";const h=500;const a=class{constructor(i){t(this,i);this.onLongTap=s(this,"longtap",7);this.onTouchStart=()=>{this.timer=setTimeout((()=>{this.onLongTap.emit()}),h)};this.onTouchMove=()=>{clearTimeout(this.timer)};this.onTouchEnd=()=>{clearTimeout(this.timer)};this.canvasId=undefined;this.nativeProps={}}render(){const{canvasId:t,nativeProps:s}=this;return i("canvas",Object.assign({"canvas-id":t,style:{width:"100%",height:"100%"},onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd},s))}get el(){return o(this)}};a.style=e;export{a as taro_canvas_core};
//# sourceMappingURL=p-828bd091.entry.js.map