(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesM/comps/canvas/index"],{

/***/ 1847:
/*!***********************************************************************************************************!*\
  !*** F:/CYZH/cyzh-community-cloud/mini-program/mini-community/CommunityApp/pagesM/comps/canvas/index.vue ***!
  \***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _index_vue_vue_type_template_id_a4726524___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=a4726524& */ 1848);
/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ 1850);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.vue?vue&type=style&index=0&lang=scss& */ 1852);
/* harmony import */ var _E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 12);

var renderjs





/* normalize component */

var component = Object(_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _index_vue_vue_type_template_id_a4726524___WEBPACK_IMPORTED_MODULE_0__["render"],
  _index_vue_vue_type_template_id_a4726524___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  null,
  null,
  false,
  _index_vue_vue_type_template_id_a4726524___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

component.options.__file = "pagesM/comps/canvas/index.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 1848:
/*!******************************************************************************************************************************************!*\
  !*** F:/CYZH/cyzh-community-cloud/mini-program/mini-community/CommunityApp/pagesM/comps/canvas/index.vue?vue&type=template&id=a4726524& ***!
  \******************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_a4726524___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=a4726524& */ 1849);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_a4726524___WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_a4726524___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_a4726524___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_a4726524___WEBPACK_IMPORTED_MODULE_0__["components"]; });



/***/ }),

/***/ 1849:
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!F:/CYZH/cyzh-community-cloud/mini-program/mini-community/CommunityApp/pagesM/comps/canvas/index.vue?vue&type=template&id=a4726524& ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true



/***/ }),

/***/ 1850:
/*!************************************************************************************************************************************!*\
  !*** F:/CYZH/cyzh-community-cloud/mini-program/mini-community/CommunityApp/pagesM/comps/canvas/index.vue?vue&type=script&lang=js& ***!
  \************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js& */ 1851);
/* harmony import */ var _E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 1851:
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!F:/CYZH/cyzh-community-cloud/mini-program/mini-community/CommunityApp/pagesM/comps/canvas/index.vue?vue&type=script&lang=js& ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;} //
//
//
//
//
var _default =

{
  data: function data() {
    return {
      ctx: {},
      factor: 0,
      pxHeight: 0,
      pxWidth: 0 };

  },

  methods: {
    /**
               * 计算画布的高度
               * @param {*} config
               */
    getHeight: function getHeight(config) {
      var getTextHeight = function getTextHeight(text) {
        var fontHeight = text.lineHeight || text.fontSize;
        var height = 0;
        if (text.baseLine === "top") {
          height = fontHeight;
        } else if (text.baseLine === "middle") {
          height = fontHeight / 2;
        } else {
          height = 0;
        }
        return height;
      };
      var heightArr = [];
      (config.blocks || []).forEach(function (item) {
        heightArr.push(item.y + item.height);
      });
      (config.texts || []).forEach(function (item) {
        var height;
        if (Object.prototype.toString.call(item.text) === "[object Array]") {
          item.text.forEach(function (i) {
            height = getTextHeight(_objectSpread(_objectSpread({}, i), {}, { baseLine: item.baseLine }));
            heightArr.push(item.y + height);
          });
        } else {
          height = getTextHeight(item);
          heightArr.push(item.y + height);
        }
      });
      (config.images || []).forEach(function (item) {
        heightArr.push(item.y + item.height);
      });
      (config.lines || []).forEach(function (item) {
        heightArr.push(item.startY);
        heightArr.push(item.endY);
      });
      var sortRes = heightArr.sort(function (a, b) {return b - a;});
      var canvasHeight = 0;
      if (sortRes.length > 0) {
        canvasHeight = sortRes[0];
      }
      if (config.height < canvasHeight || !config.height) {
        return canvasHeight;
      } else {
        return config.height;
      }
    },
    create: function create(config) {var _this = this;
      this.ctx = uni.createCanvasContext("canvasid", this);
      var height = this.getHeight(config);
      this.initCanvas(config.width, height, config.debug).
      then(function () {
        // 设置画布底色
        if (config.backgroundColor) {
          _this.ctx.save();
          _this.ctx.setFillStyle(config.backgroundColor);
          _this.ctx.fillRect(
          0,
          0,
          _this.toPx(config.width),
          _this.toPx(height));

          _this.ctx.restore();
        }var _config$texts =
        config.texts,texts = _config$texts === void 0 ? [] : _config$texts,_config$images = config.images,images = _config$images === void 0 ? [] : _config$images,_config$blocks = config.blocks,blocks = _config$blocks === void 0 ? [] : _config$blocks,_config$lines = config.lines,lines = _config$lines === void 0 ? [] : _config$lines;
        var queue = _this.drawArr.
        concat(
        texts.map(function (item) {
          item.type = "text";
          item.zIndex = item.zIndex || 0;
          return item;
        })).

        concat(
        blocks.map(function (item) {
          item.type = "block";
          item.zIndex = item.zIndex || 0;
          return item;
        })).

        concat(
        lines.map(function (item) {
          item.type = "line";
          item.zIndex = item.zIndex || 0;
          return item;
        }));

        // 按照顺序排序
        queue.sort(function (a, b) {return a.zIndex - b.zIndex;});

        queue.forEach(function (item) {
          if (item.type === "image") {
            _this.drawImage(item);
          } else if (item.type === "text") {
            _this.drawText(item);
          } else if (item.type === "block") {
            _this.drawBlock(item);
          } else if (item.type === "line") {
            _this.drawLine(item);
          }
        });

        var res = uni.getSystemInfoSync();
        var platform = res.platform;
        var time = 0;
        if (platform === "android") {
          // 在安卓平台，经测试发现如果海报过于复杂在转换时需要做延时，要不然样式会错乱
          time = 300;
        }
        _this.ctx.draw(false, function () {
          setTimeout(function () {
            uni.canvasToTempFilePath(
            {
              canvasId: "canvasid",
              success: function success(res) {
                _this.$emit("success", res.tempFilePath);
              },
              fail: function fail(err) {
                _this.$emit("fail", err);
              } },

            _this);

          }, time);
        });
      }).
      catch(function (err) {
        uni.showToast({ icon: "none", title: err.errMsg || "生成失败" });
        console.error(err);
      });
    },

    /**  
        * main
        -----------------------*/
    /**
                                   * 渲染块
                                   * @param {Object} params
                                   */
    drawBlock: function drawBlock(_ref) {var text = _ref.text,_ref$width = _ref.width,width = _ref$width === void 0 ? 0 : _ref$width,height = _ref.height,x = _ref.x,y = _ref.y,_ref$paddingLeft = _ref.paddingLeft,paddingLeft = _ref$paddingLeft === void 0 ? 0 : _ref$paddingLeft,_ref$paddingRight = _ref.paddingRight,paddingRight = _ref$paddingRight === void 0 ? 0 : _ref$paddingRight,borderWidth = _ref.borderWidth,backgroundColor = _ref.backgroundColor,borderColor = _ref.borderColor,_ref$borderRadius = _ref.borderRadius,borderRadius = _ref$borderRadius === void 0 ? 0 : _ref$borderRadius,_ref$opacity = _ref.opacity,opacity = _ref$opacity === void 0 ? 1 : _ref$opacity;
      // 判断是否块内有文字
      var blockWidth = 0; // 块的宽度
      var textX = 0;
      var textY = 0;
      if (typeof text !== 'undefined') {
        // 如果有文字并且块的宽度小于文字宽度，块的宽度为 文字的宽度 + 内边距
        var textWidth = this._getTextWidth(typeof text.text === 'string' ? text : text.text);
        blockWidth = textWidth > width ? textWidth : width;
        blockWidth += paddingLeft + paddingLeft;
        x = x - blockWidth / 2;var _text$textAlign =
        text.textAlign,textAlign = _text$textAlign === void 0 ? 'left' : _text$textAlign,textCon = text.text;
        textY = height / 2 + y; // 文字的y轴坐标在块中线
        if (textAlign === 'left') {
          // 如果是右对齐，那x轴在块的最左边
          textX = x + paddingLeft;
        } else if (textAlign === 'center') {
          textX = blockWidth / 2 + x;
        } else {
          textX = x + blockWidth - paddingRight;
        }
      } else {
        blockWidth = width;
      }

      if (backgroundColor) {
        // 画面
        this.ctx.save();
        this.ctx.setGlobalAlpha(opacity);
        this.ctx.setFillStyle(backgroundColor);
        if (borderRadius > 0) {
          // 画圆角矩形
          this._drawRadiusRect(x, y, blockWidth, height, borderRadius);
          this.ctx.fill();
        } else {
          this.ctx.fillRect(this.toPx(x), this.toPx(y), this.toPx(blockWidth), this.toPx(height));
        }
        this.ctx.restore();
      }
      if (borderWidth) {
        // 画线
        this.ctx.save();
        this.ctx.setGlobalAlpha(opacity);
        this.ctx.setStrokeStyle(borderColor);
        this.ctx.setLineWidth(this.toPx(borderWidth));
        if (borderRadius > 0) {
          // 画圆角矩形边框
          this._drawRadiusRect(x, y, blockWidth, height, borderRadius);
          this.ctx.stroke();
        } else {
          this.ctx.strokeRect(this.toPx(x), this.toPx(y), this.toPx(blockWidth), this.toPx(height));
        }
        this.ctx.restore();
      }

      if (text) {
        this.drawText(Object.assign(text, { x: textX, y: textY }));
      }
    },

    /**
        * 渲染文字
        * @param {Object} params
        */
    drawText: function drawText(params) {var _this2 = this;var
      x = params.x,y = params.y,fontSize = params.fontSize,color = params.color,baseLine = params.baseLine,textAlign = params.textAlign,text = params.text,_params$opacity = params.opacity,opacity = _params$opacity === void 0 ? 1 : _params$opacity,width = params.width,lineNum = params.lineNum,lineHeight = params.lineHeight;
      if (Object.prototype.toString.call(text) === '[object Array]') {
        var preText = { x: x, y: y, baseLine: baseLine };
        text.forEach(function (item) {
          preText.x += item.marginLeft || 0;
          var textWidth = _this2._drawSingleText(Object.assign(item, _objectSpread({},
          preText)));

          preText.x += textWidth + (item.marginRight || 0); // 下一段字的x轴为上一段字x + 上一段字宽度
        });
      } else {
        this._drawSingleText(params);
      }
    },

    /**
        * 渲染图片
        */
    drawImage: function drawImage(data) {var
      imgPath = data.imgPath,x = data.x,y = data.y,w = data.w,h = data.h,sx = data.sx,sy = data.sy,sw = data.sw,sh = data.sh,_data$borderRadius = data.borderRadius,borderRadius = _data$borderRadius === void 0 ? 0 : _data$borderRadius,_data$borderWidth = data.borderWidth,borderWidth = _data$borderWidth === void 0 ? 0 : _data$borderWidth,borderColor = data.borderColor;
      this.ctx.save();
      if (borderRadius > 0) {
        this.ctx.setFillStyle("#FFF");
        this._drawRadiusRect(x, y, w, h, borderRadius);
        this.ctx.fill();
        this.ctx.clip();
        this.ctx.drawImage(imgPath, this.toPx(sx), this.toPx(sy), this.toPx(sw), this.toPx(sh), this.toPx(x), this.toPx(y), this.toPx(w), this.toPx(h));
        if (borderWidth > 0) {
          this.ctx.setStrokeStyle(borderColor);
          this.ctx.setLineWidth(this.toPx(borderWidth));
          this.ctx.stroke();
        }
      } else {
        this.ctx.drawImage(imgPath, this.toPx(sx), this.toPx(sy), this.toPx(sw), this.toPx(sh), this.toPx(x), this.toPx(y), this.toPx(w), this.toPx(h));
      }
      this.ctx.restore();
    },
    /**
        * 渲染线
        * @param {*} param0
        */
    drawLine: function drawLine(_ref2) {var startX = _ref2.startX,startY = _ref2.startY,endX = _ref2.endX,endY = _ref2.endY,color = _ref2.color,width = _ref2.width;
      this.ctx.save();
      this.ctx.beginPath();
      this.ctx.setStrokeStyle(color);
      this.ctx.setLineWidth(this.toPx(width));
      this.ctx.moveTo(this.toPx(startX), this.toPx(startY));
      this.ctx.lineTo(this.toPx(endX), this.toPx(endY));
      this.ctx.stroke();
      this.ctx.closePath();
      this.ctx.restore();
    },
    downloadResource: function downloadResource() {var _this3 = this;var images = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
      var drawList = [];
      this.drawArr = [];
      images.forEach(function (image, index) {return drawList.push(_this3._downloadImageAndInfo(image, index));});
      return Promise.all(drawList);
    },
    initCanvas: function initCanvas(w, h, debug) {var _this4 = this;
      return new Promise(function (resolve) {
        _this4.pxWidth = _this4.toPx(w);
        _this4.pxHeight = _this4.toPx(h);
        _this4.debug = debug;
        setTimeout(function () {
          resolve();
        }, 0);
      });
    },

    /**  
        * handle
        -----------------------*/
    /**
                                   * 画圆角矩形
                                   */
    _drawRadiusRect: function _drawRadiusRect(x, y, w, h, r) {
      var br = r / 2;
      this.ctx.beginPath();
      this.ctx.moveTo(this.toPx(x + br), this.toPx(y)); // 移动到左上角的点
      this.ctx.lineTo(this.toPx(x + w - br), this.toPx(y));
      this.ctx.arc(this.toPx(x + w - br), this.toPx(y + br), this.toPx(br), 2 * Math.PI * (3 / 4), 2 * Math.PI * (4 / 4));
      this.ctx.lineTo(this.toPx(x + w), this.toPx(y + h - br));
      this.ctx.arc(this.toPx(x + w - br), this.toPx(y + h - br), this.toPx(br), 0, 2 * Math.PI * (1 / 4));
      this.ctx.lineTo(this.toPx(x + br), this.toPx(y + h));
      this.ctx.arc(this.toPx(x + br), this.toPx(y + h - br), this.toPx(br), 2 * Math.PI * (1 / 4), 2 * Math.PI * (2 / 4));
      this.ctx.lineTo(this.toPx(x), this.toPx(y + br));
      this.ctx.arc(this.toPx(x + br), this.toPx(y + br), this.toPx(br), 2 * Math.PI * (2 / 4), 2 * Math.PI * (3 / 4));
    },
    /**
        * 计算文本长度
        * @param {Array|Object}} text 数组 或者 对象
        */
    _getTextWidth: function _getTextWidth(text) {var _this5 = this;
      var texts = [];
      if (Object.prototype.toString.call(text) === '[object Object]') {
        texts.push(text);
      } else {
        texts = text;
      }
      var width = 0;
      texts.forEach(function (_ref3) {var fontSize = _ref3.fontSize,text = _ref3.text,_ref3$marginLeft = _ref3.marginLeft,marginLeft = _ref3$marginLeft === void 0 ? 0 : _ref3$marginLeft,_ref3$marginRight = _ref3.marginRight,marginRight = _ref3$marginRight === void 0 ? 0 : _ref3$marginRight;
        _this5.ctx.setFontSize(_this5.toPx(fontSize));
        width += _this5.ctx.measureText(text).width + marginLeft + marginRight;
      });

      return this.toRpx(width);
    },
    /**
        * 渲染一段文字
        */
    _drawSingleText: function _drawSingleText(_ref4)
    {var _this6 = this;var x = _ref4.x,y = _ref4.y,fontSize = _ref4.fontSize,color = _ref4.color,baseLine = _ref4.baseLine,_ref4$textAlign = _ref4.textAlign,textAlign = _ref4$textAlign === void 0 ? 'left' : _ref4$textAlign,text = _ref4.text,_ref4$opacity = _ref4.opacity,opacity = _ref4$opacity === void 0 ? 1 : _ref4$opacity,_ref4$textDecoration = _ref4.textDecoration,textDecoration = _ref4$textDecoration === void 0 ? 'none' : _ref4$textDecoration,width = _ref4.width,_ref4$lineNum = _ref4.lineNum,lineNum = _ref4$lineNum === void 0 ? 1 : _ref4$lineNum,_ref4$lineHeight = _ref4.lineHeight,lineHeight = _ref4$lineHeight === void 0 ? 0 : _ref4$lineHeight,_ref4$fontWeight = _ref4.fontWeight,fontWeight = _ref4$fontWeight === void 0 ? 'normal' : _ref4$fontWeight,_ref4$fontStyle = _ref4.fontStyle,fontStyle = _ref4$fontStyle === void 0 ? 'normal' : _ref4$fontStyle,_ref4$fontFamily = _ref4.fontFamily,fontFamily = _ref4$fontFamily === void 0 ? "sans-serif" : _ref4$fontFamily;
      this.ctx.save();
      this.ctx.beginPath();
      this.ctx.font = fontStyle + " " + fontWeight + " " + this.toPx(fontSize, true) + "px " + fontFamily;
      this.ctx.setGlobalAlpha(opacity);
      // this.ctx.setFontSize(this.toPx(fontSize));
      this.ctx.setFillStyle(color);
      this.ctx.setTextBaseline(baseLine);
      this.ctx.setTextAlign(textAlign);
      var textWidth = this.toRpx(this.ctx.measureText(text).width);
      var textArr = [];
      if (textWidth > width) {
        // 文本宽度 大于 渲染宽度
        var fillText = '';
        var line = 1;
        for (var i = 0; i <= text.length - 1; i++) {// 将文字转为数组，一行文字一个元素
          fillText = fillText + text[i];
          if (this.toRpx(this.ctx.measureText(fillText).width) >= width) {
            if (line === lineNum) {
              if (i !== text.length - 1) {
                fillText = fillText.substring(0, fillText.length - 1) + '...';
              }
            }
            if (line <= lineNum) {
              textArr.push(fillText);
            }
            fillText = '';
            line++;
          } else {
            if (line <= lineNum) {
              if (i === text.length - 1) {
                textArr.push(fillText);
              }
            }
          }
        }
        textWidth = width;
      } else {
        textArr.push(text);
      }

      textArr.forEach(function (item, index) {
        _this6.ctx.fillText(item, _this6.toPx(x), _this6.toPx(y + (lineHeight || fontSize) * index));
      });

      this.ctx.restore();

      // textDecoration
      if (textDecoration !== 'none') {
        var lineY = y;
        if (textDecoration === 'line-through') {
          // 目前只支持贯穿线
          lineY = y;
        }
        this.ctx.save();
        this.ctx.moveTo(this.toPx(x), this.toPx(lineY));
        this.ctx.lineTo(this.toPx(x) + this.toPx(textWidth), this.toPx(lineY));
        this.ctx.setStrokeStyle(color);
        this.ctx.stroke();
        this.ctx.restore();
      }

      return textWidth;
    },


    /**  
        * helper
        -----------------------*/
    /**
                                   * 下载图片并获取图片信息
                                   */
    _downloadImageAndInfo: function _downloadImageAndInfo(image, index) {var _this7 = this;
      return new Promise(function (resolve, reject) {var
        x = image.x,y = image.y,url = image.url,zIndex = image.zIndex,type = image.type;
        var imageUrl = url;

        // 下载图片
        _this7._downImage(imageUrl, index, type)
        // 获取图片信息
        .then(function (imgPath) {return _this7._getImageInfo(imgPath, index);}).
        then(function (_ref5) {var imgPath = _ref5.imgPath,imgInfo = _ref5.imgInfo;
          // 根据画布的宽高计算出图片绘制的大小，这里会保证图片绘制不变形
          var sx;
          var sy;
          var borderRadius = image.borderRadius || 0;
          var setWidth = image.width;
          var setHeight = image.height;
          var width = _this7.toRpx(imgInfo.width);
          var height = _this7.toRpx(imgInfo.height);
          if (width / height <= setWidth / setHeight) {
            sx = 0;
            sy = (height - width / setWidth * setHeight) / 2;
          } else {
            sy = 0;
            sx = (width - height / setHeight * setWidth) / 2;
          }
          _this7.drawArr.push({
            type: 'image',
            borderRadius: borderRadius,
            borderWidth: image.borderWidth,
            borderColor: image.borderColor,
            zIndex: typeof zIndex !== 'undefined' ? zIndex : index,
            imgPath: imgPath,
            sx: sx,
            sy: sy,
            sw: width - sx * 2,
            sh: height - sy * 2,
            x: x,
            y: y,
            w: setWidth,
            h: setHeight });

          resolve();
        }).
        catch(function (err) {return reject(err);});
      });
    },
    /**
        * 下载图片资源
        * @param {*} imageUrl
        */
    _downImage: function _downImage(imageUrl, index, type) {var _this8 = this;
      return new Promise(function (resolve, reject) {
        if (/^http/.test(imageUrl)) {
          wx.downloadFile({
            url: _this8._mapHttpToHttps(imageUrl),
            success: function success(res) {
              if (res.statusCode === 200) {
                resolve(res.tempFilePath);
              } else {
                reject(res.errMsg);
              }
            },
            fail: function fail(err) {
              reject(err);
            } });

        } else {
          // 支持本地地址
          resolve(imageUrl);
        }

        // if (/^http/.test(imageUrl) && !new RegExp(wx.env.USER_DATA_PATH).test(imageUrl)&&type!=='qrcode') {
        //   wx.downloadFile({
        //     url: this._mapHttpToHttps(imageUrl),
        //     success: (res) => {
        //       if (res.statusCode === 200) {
        //         resolve(res.tempFilePath);
        //       } else {
        //         reject(res.errMsg);
        //       }
        //     },
        //     fail(err) {
        //       reject(err);
        //     },
        //   });
        // } else {
        //   // 支持本地地址
        //   resolve(imageUrl);
        // }
      });
    },
    /**
        * 获取图片信息
        * @param {*} imgPath
        * @param {*} index
        */
    _getImageInfo: function _getImageInfo(imgPath, index) {
      return new Promise(function (resolve, reject) {
        wx.getImageInfo({
          src: imgPath,
          success: function success(res) {
            resolve({ imgPath: imgPath, imgInfo: res, index: index });
          },
          fail: function fail(err) {
            reject(err);
          } });

      });
    },
    toPx: function toPx(rpx, _int) {
      // console.log('toPx',this.factor)
      if (_int) {
        return parseInt(rpx * this.factor);
      }
      return rpx * this.factor;
    },
    toRpx: function toRpx(px, _int2) {
      // console.log('toRpx',this.factor)

      if (_int2) {
        return parseInt(px / this.factor);
      }
      return px / this.factor;
    },
    /**
        * 将http转为https
        * @param {String}} rawUrl 图片资源url
        */
    _mapHttpToHttps: function _mapHttpToHttps(rawUrl) {
      if (rawUrl.indexOf(':') < 0) {
        return rawUrl;
      }
      var urlComponent = rawUrl.split(':');
      if (urlComponent.length === 2) {
        if (urlComponent[0] === 'http') {
          urlComponent[0] = 'https';
          return "".concat(urlComponent[0], ":").concat(urlComponent[1]);
        }
      }
      return rawUrl;
    } },

  created: function created() {
    var sysInfo = uni.getSystemInfoSync();
    var screenWidth = sysInfo.screenWidth;
    this.factor = screenWidth / 750;
    // console.log('created')
  } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))

/***/ }),

/***/ 1852:
/*!*********************************************************************************************************************************************!*\
  !*** F:/CYZH/cyzh-community-cloud/mini-program/mini-community/CommunityApp/pagesM/comps/canvas/index.vue?vue&type=style&index=0&lang=scss& ***!
  \*********************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=scss& */ 1853);
/* harmony import */ var _E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_2_8_3_20200728_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 1853:
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!F:/CYZH/cyzh-community-cloud/mini-program/mini-community/CommunityApp/pagesM/comps/canvas/index.vue?vue&type=style&index=0&lang=scss& ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  

/***/ })

}]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pagesM/comps/canvas/index.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pagesM/comps/canvas/index-create-component',
    {
        'pagesM/comps/canvas/index-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('1')['createComponent'](__webpack_require__(1847))
        })
    },
    [['pagesM/comps/canvas/index-create-component']]
]);
