Thomas DeWeese wrote:

Jamie Browning wrote:

Jamie Browning wrote:

I am attaching a test file to demonstrate this post.

I am attempting to implement getScreenCTM in ECMAScript (due to lack of Adobe support :-().


See samples/solitaire/script/util.js

   There is a function 'screenCTM(elem)' which should
work with all UA's I am aware of.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Thomas,

Thanks for the pointer! This code certainly seems cleaner than mine ;-) However it doesn't seem to have fully solved the problem. Perhaps I am missing something above just the implementation of this function.

Again I have included my test file to show what I mean. Notice how it works fine when preserveAspectRatio abuts the margins to the window minimum, but is offset slightly when the document is scaled to be centered (or right aligned) on the window.

In my file I attempted to implement a function getGlobalTransform - is this required? (Why did Adobe not implement this function, Grrrr....)

Thanks for your help

Jamie Browning

<<inline: NewTest.svg>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to