@tarojs/plugin-platform-harmony-ets 4.0.0-beta.47 → 4.0.0-beta.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/runtime.js CHANGED
@@ -4883,7 +4883,6 @@ let displayWidth = display.width;
4883
4883
  let ratioCache = false;
4884
4884
  let designWidthFunc;
4885
4885
  let designWidth = defaultDesignWidth;
4886
- let deviceRatio = defaultDesignRatio;
4887
4886
  function getRatio(value) {
4888
4887
  var _a;
4889
4888
  // Note: 提前调用 display 可能无法获取正确值
@@ -4894,10 +4893,6 @@ function getRatio(value) {
4894
4893
  ? config.designWidth
4895
4894
  : () => config.designWidth;
4896
4895
  designWidth = designWidthFunc(value) || defaultDesignWidth;
4897
- deviceRatio = config.deviceRatio || defaultDesignRatio;
4898
- if (!(designWidth in deviceRatio)) {
4899
- throw new Error(`deviceRatio 配置中不存在 ${designWidth} 的设置!`);
4900
- }
4901
4896
  }
4902
4897
  displayWidth = display.width;
4903
4898
  ratioCache = Math.min(display.width, display.height) / designWidth;