Tag: fabricjs

面料js自定义旋转图标只在iPhone的谷歌浏览器中不可见

我创build了一个面料js编辑器。 我正在使用自定义图标旋转,这是不可见的只有在iPhone的谷歌浏览器。 请给我解决scheme。 这个代码我用于自定义图标 isVML = function() { return typeof G_vmlCanvasManager !== 'undefined'; }; // overriding _drawControl method fabric.util.object.extend(fabric.Object.prototype, { hasRotatingPoint: true, cornerSize: 25, _drawControl: function(control, ctx, methodName, left, top) { if (!this.isControlVisible(control)) { return; } var size = this.cornerSize; isVML() || this.transparentCorners || ctx.clearRect(left, top, size, size); if(control !== 'mtr') ctx['fillRect'](left, top, size, size); […]