문제

I wrote a processing sketch for depicting the parallel coordinates visualization. The problem is that though it works fine in Java mode but shows a blank screen in JavaScript Mode. Can someone tell me what the problem is? I am using Processing 2.0. The error I receive in Firefox is as follows:

Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. @ chrome://smarterwiki/content/jquery.js:3527
Error in parsing value for 'image-rendering'.  Declaration dropped. @ http://127.0.0.1:56763/
ReferenceError: Float is not defined @ http://127.0.0.1:56763/processing.js:10175

I cannot provide the code because it's part of a homework I still need to submit. Also, seeing the last line, I tried to replace all the instances of the float type with var type in the JavaScript mode but it didn't help.

도움이 되었습니까?

해결책

My problem was that I was using Float.isNaN() and Float.MAX_VALUE in parts of my code where I couldn't do without them.

I got this answer in the Processing forum which worked like a charm.

For MAX_VALUE: http://docs.oracle.com/javase/6/docs/api/constant-values.html#java.lang.Float.MAX_VALUE And see also https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity

For NaN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top