Browse Source

优化图表显示

persist/10.0
fay 5 years ago
parent
commit
88047c885d
  1. 3
      plugin.xml
  2. 4
      src/main/resources/com/finebi/plugin/web/plugin.screen_adaptive.js
  3. 4
      src/main/resources/com/finebi/plugin/web/scripts/entry.js

3
plugin.xml

@ -3,12 +3,13 @@
<id>com.finebi.plugin.screenadaptive</id>
<name><![CDATA[BI模板屏幕自适应(v5.1.2)]]></name>
<active>yes</active>
<version>1.1.34</version>
<version>1.1.35</version>
<env-version>10.0</env-version>
<jartime>2019-08-16</jartime>
<vendor>fay</vendor>
<description><![CDATA[预览BI模板时,根据屏幕的宽度自适应显示模板]]></description>
<change-notes><![CDATA[
[2020-05-21]解决部分情况下图表模糊的情况<br/>
[2020-05-09]修复IE中有空白部分的情况<br/>
[2019-10-24]修复IE中有空白部分的情况<br/>
[2019-08-28]为BI模板添加模板自适应功能。<br/>

4
src/main/resources/com/finebi/plugin/web/plugin.screen_adaptive.js

@ -74,7 +74,7 @@
fixedWrapper.style.height = bounds.height * scale + "px";
}
window.scale = window.devicePixelRatio * scale;
window.scale = Math.max(window.devicePixelRatio * scale, 1);
}
// 取消缩放
@ -98,7 +98,7 @@
fixedWrapper.style.height = "100%";
scale = 1;
window.scale = window.devicePixelRatio / scale;
window.scale = window.devicePixelRatio;
}
// 获取缩放倍数,原模板宽高

4
src/main/resources/com/finebi/plugin/web/scripts/entry.js

@ -74,7 +74,7 @@
fixedWrapper.style.height = bounds.height * scale + "px";
}
window.scale = window.devicePixelRatio * scale;
window.scale = Math.max(window.devicePixelRatio * scale, 1);
}
// 取消缩放
@ -98,7 +98,7 @@
fixedWrapper.style.height = "100%";
scale = 1;
window.scale = window.devicePixelRatio / scale;
window.scale = window.devicePixelRatio;
}
// 获取缩放倍数,原模板宽高

Loading…
Cancel
Save