Browse Source

优化图表显示

release/10.0
fay 5 years ago
parent
commit
1b98ff51da
  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> <id>com.finebi.plugin.screenadaptive</id>
<name><![CDATA[BI模板屏幕自适应]]></name> <name><![CDATA[BI模板屏幕自适应]]></name>
<active>yes</active> <active>yes</active>
<version>1.1.34</version> <version>1.1.35</version>
<env-version>10.0</env-version> <env-version>10.0</env-version>
<jartime>2019-08-16</jartime> <jartime>2019-08-16</jartime>
<vendor>fay</vendor> <vendor>fay</vendor>
<description><![CDATA[预览BI模板时,根据屏幕的宽度自适应显示模板]]></description> <description><![CDATA[预览BI模板时,根据屏幕的宽度自适应显示模板]]></description>
<change-notes><![CDATA[ <change-notes><![CDATA[
[2020-05-21]解决部分情况下图表模糊的情况<br/>
[2020-05-09]修复IE中有空白部分的情况<br/> [2020-05-09]修复IE中有空白部分的情况<br/>
[2019-10-24]修复IE中有空白部分的情况<br/> [2019-10-24]修复IE中有空白部分的情况<br/>
[2019-08-28]为BI模板添加模板自适应功能。<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"; 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%"; fixedWrapper.style.height = "100%";
scale = 1; 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"; 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%"; fixedWrapper.style.height = "100%";
scale = 1; scale = 1;
window.scale = window.devicePixelRatio / scale; window.scale = window.devicePixelRatio;
} }
// 获取缩放倍数,原模板宽高 // 获取缩放倍数,原模板宽高

Loading…
Cancel
Save