[现象]
近期发现使用Chrome(版本v.48)浏览器访问dmap.xxx.com的时候发现异常情况,表现为图形界面报错,不能正常使用。
Chrome的报错信息如下:
Uncaught TypeError: this.node.getTransformToElement is not a function
[原因]
经过CDC RD同学的定位,发现Chrome v.48的版本进行大幅度的更新。其中一条更新内容如下:
原文如下:SVGGraphicsElement.getTransformToElement has been removed to match the SVG spec.
译文如下:移除了 SVGGraphicsElement.getTransformToElement,以符合 SVG 规范。
地址如下:http://blog.chromium.org/2015/12/chrome-48-beta-present-to-cast-devices_91.html
dmap.xxx.com依赖的开源SVG框架jointjs依赖于该方法的实现,所以引起程序异常,无法查看图形功能模块。
[临时解决方案]
方法1:请大家使用Chrome v.47或更低的版本来访问dmap.xxx.com
方法2:请大家使用百度浏览器来访问dmap.xxx.com
[终极解决方案]
会对jointjs框架进行升级,支持Chrome浏览器全部版本。
[终极解决方案时间]
近期对该问题进行修复,进度会在HI群中进行及时更新通知。
官网解决问题: http://jointjs.com/blog/get-transform-to-element-polyfill.html
谢谢!
=========== [ http://jointjs.com/blog/get-transform-to-element-polyfill.html ] ====================
Announcement: getTransformToElement() polyfill Nov 12th, 2015
Unfortunately, a new version of Chrome (48) removes a feature that is core to JointJS/Rappid. This feature is theSVGGraphicsElement.getTransformToElement() function. The motivation behind removing the method is - according to the Chrome team - open issues about how this method is supposed to behave.
To overcome compatibility issues with future versions of Chrome, we prepared a polyfill that makes sure this method exists. Before a new version of JointJS/Rappid is released (or if you, for any reason, don't want to upgrade), include the following code before you load your application JavaScript:
SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(toElement) { return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM()); };
David Durman
===========================================================
相关推荐
主要介绍了JQuery报错"Uncaught TypeError: Illegal invocation"的处理方法,需要的朋友可以参考下
Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>' 点开错误的文件,标注错误的地方是这样的一段代码: import {normalTime} from './timeFormat'; module....
主要介绍了Ajax方式上传文件报错"Uncaught TypeError: Illegal invocation",非常不错,具有一定的参考借鉴价值,需要的朋友可以参考下
主要介绍了Vue 报错TypeError: this.$set is not a function 的解决方法,分享给大家,需要的朋友们下面随着小编来一起学习学习吧
F12看到后台报了个错误:Uncaught TypeError: Illegal invocation,百度了一下,找到了解决方法。 解决方法:在ajax请求的参数中添加如下两个参数: $.ajax({ ..., processData: false, contentType: false, .....
为大家分享了一个解决jquery插件:TypeError:$.browser is undefined报错的方法,解决报错问题的方法也很简单,需要解决此类问题的朋友不要错过这篇文章。
今天把最近一直在开发的小程序放安卓手机上测试一下,结果某个页面就一直报错: Uncaught TypeError: Converting circular structure to JSON 先说一下基本的环境: 系统:Android 6.0.1 手机:小米4 微信版本:...
e.a=a},function(t,e){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function a(t){return"number"==typeof t}function n...
压缩包中包括videojs-contrib-hls.js videojs-contrib-hls.min.js两个js文件,可以播放hls直播流
因为openlayer只支持EPSG:4326和EPSG:3857,如果需要用自定义坐标系的话需要转换,proj4js是坐标转换需要的js文件
bootstrap-table-export.js bootstrap-table表格导出js
主要给大家介绍了关于Vue报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>' 的解决方法,文中介绍的非常详细,需要的朋友们下面来一起看看吧。
主要介绍了Vue项目报错:Uncaught SyntaxError: Unexpected token <,在引入第三方依赖的 JS 文件时,遇到的一个问题,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
Vue打包Cannot read property 'tapPromise' of undefined报错处理.docx
做了个动画的封装 但是在执行第一个清除定时器是一直报错 Uncaught TypeError: Cannot read property 'times' of null 一直报这个内容 function animate(obj,target){ clearInterval(obj.times); obj....
NULL 博文链接:https://fanshuyao.iteye.com/blog/2434686
同一相站点,有些页面的客户端验证能工作,而有些死活不行。打开页面就出现Uncaught TypeError: Cannot set property __MVC_FormValidation of null错误
编译程序时候老是报module "src/utils/utils.js" is not defined的错,狂问度娘也没结果 后来静下来想才尝试弄正确: 我本来的页面地址是:"src/main/welcome/welcome" 在这个页面的基础上要加载utils.js,所以按照...
今天做一个 VUE 的项目,在引入第三方依赖的 JS 文件时,遇到了一个问题: 控制台的提示:Uncaught SyntaxError: Unexpected token < 按照提示进入文件,再看如下图: 仔细看了看 index.html 文件,发现原本我...