we-cropper.wxml 567 B

1234567891011121314151617
  1. <template name="we-cropper">
  2. <canvas
  3. class="cropper"
  4. disable-scroll="true"
  5. bindtouchstart="touchStart"
  6. bindtouchmove="touchMove"
  7. bindtouchend="touchEnd"
  8. style="width:{{width}}px;height:{{height}}px;background-color: rgba(0, 0, 0, 0.8)"
  9. canvas-id="{{id}}">
  10. </canvas>
  11. <canvas
  12. class="cropper"
  13. disable-scroll="true"
  14. style="position: fixed; top: -{{width * pixelRatio}}px; left: -{{height * pixelRatio}}px; width:{{width * pixelRatio}}px;height:{{height * pixelRatio}}px;"
  15. canvas-id="{{targetId}}">
  16. </canvas>
  17. </template>