Giter Club home page Giter Club logo

explorercanvas's Introduction

ExplorerCanvas
Copyright 2006 Google Inc.

-------------------------------------------------------------------------------
DESCRIPTION

Firefox, Safari and Opera 9 support the canvas tag to allow 2D command-based 
drawing operations. ExplorerCanvas brings the same functionality to Internet 
Explorer; web developers only need to include a single script tag in their 
existing canvas webpages to enable this support.


-------------------------------------------------------------------------------
INSTALLATION

Include the ExplorerCanvas tag in the same directory as your HTML files, and 
add the following code to your page, preferably in the <head> tag.

<!--[if lte IE 8]><script type="text/javascript" src="excanvas.js"></script><![endif]-->

If you run into trouble, please look at the included example code to see how
to best implement this

explorercanvas's People

Contributors

arv avatar mattbrundage avatar nmoinvaz avatar ugurk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

explorercanvas's Issues

creat a canvas by javascript

when I create a canvas by javascript , it show me 'object unsupport“getContext” ' on IE8

my code like that
var canvas = document.createElement("canvas"); var ctx = canvas.getContext("2d");

Add bower.json file

Hi!

Just wanted to know if it could be possible to add a bower.json file, then adding ignore rules to it.

This way, it will be possible to fetch only the JS file without getting tests, HTML files, etc.

What do you think @arv?

canvas.toDataURL is not can work

i want to use make a image and append in my dom, but not work in IE8. what's the problem?
...
var image = canvas.toDataURL("image/png");
var img = document.createElement("img");
img.src = image;
img.width = canvas.width;
img.height = canvas.height;
$("#id").append(img);
...

Trident support

It appears that the script fails to load when using Trident/IE web browser control. The errors occurs at

var IE_VERSION = +navigator.userAgent.match(/MSIE ([\d.]+)?/)[1];

In Trident, MSIE is not defined in the user agent and the return value for the match function is null. I'm not sure the IE_VERSION variable is used anywhere and maybe it can be removed.

Create a tag version

It would be nice to add a tag with the version to fix in the bower.json file.

Get the Canvas object is [object DispHTMLUnknownElement] type

Why get the Canvas object is [object DispHTMLUnknownElement] type, the following code:

var els = doc.getElementsByTagName('canvas');
      for (var i = 0; i < els.length; i++) {
        this.initElement(els[i]); //[object DispHTMLUnknownElement]
      }
}

initElement: function(el) {
     //...
     el.innerHTML = '';//throws an exception under IE8
     //...
}

In the right circumstances, it should be [ object DispHTMLGenericElement ].

Why is this so?TKS

text flicker in ie8

I use this excanvas in IE8 for Chart.js ployfill, but the text flicker and sometimes display when i moverover the canvas as below.
Why?
How to fix it?
demo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.