简体   繁体   English

GWTCanvas在IE8中不起作用

[英]GWTCanvas doesn't work in IE8

We heavily use GWTCanvas in our project and it work excellent. 我们在项目中大量使用了GWTCanvas,它的效果非常好。

Except for IE8 in its standard document mode. 标准格式的IE8除外。

To solve this we have tried: 为了解决这个问题,我们尝试了:

  1. Update gwt-incubator to the latest version (2.1.0) 将gwt-incubator更新到最新版本(2.1.0)
  2. Patch GWTCanvas.java according to this link 根据此链接修补GWTCanvas.java

But this didn't help. 但这没有帮助。 Has anybody make it works on IE8? 有人让它可以在IE8上运行吗? Working and reliable solution/approach would be much appreciated. 工作和可靠的解决方案/方法将不胜感激。

UPDATE UPDATE

It has been solved in this way: 它已通过以下方式解决:

  • patch excanvas.js and inject it into your GWT class 修补 excanvas.js并将其注入您的GWT类
  • replace GWTCanvasImpl with your class via deffered binding in proper gwt.xml file 通过适当的gwt.xml文件中的延迟绑定将GWTCanvasImpl替换为您的类

Hope this helps someone. 希望这对某人有帮助。

GWTCanvas uses the SVG specification to implement the vector objects on a given GWT site. GWTCanvas使用SVG规范在给定的GWT站点上实现矢量对象。

Although almost every other browser (Firefox, chrome and Opera and I am sure many others) have implemented the SVG one way or another, Ms does not support svg on a sufficient level yet. 尽管几乎所有其他浏览器(Firefox,Chrome和Opera,我相信还有很多其他浏览器)都以一种或另一种方式实现了SVG,但Ms尚不支持SVG。

Maybe including http://code.google.com/p/svgweb/ google javascript library implementation of SVG will solve your problems but then again it might not (have not tested it personally). 也许包括SVG的http://code.google.com/p/svgweb/ google javascript库实现可以解决您的问题,但是还是有可能(您尚未亲自测试)。

A different implementation of Vector Graphics fro GWT - gwt-graphics is another solution but again, if your vector objects are many, the emulation on IE gwt-graphics does make the applications not-responsive and just plain slow (personal experience). GWT的矢量图形的另一种实现方式-gwt-graphics是另一种解决方案,但是,如果您的矢量对象很多,则在IE gwt-graphics上进行的仿真确实会使应用程序无响应,并且速度很慢(个人经验)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM