[svg-developers] dispatchEvent problem

2006-02-01 Thread kanmac1
Hi all,

we've been developing an application that displays complex SVG content
tot he user. We use ASV3.02 embedded in the IE6.
Such an SVG consists of many layers. Each layer may have plenty of
visible objects.

We had a requirement to implement so called Object look up.
The user clicks on SVG and we have to show all objects located at the
clicked point.

In the first approach we implemented it in the very nasty way.
We set pointer-events attribute for all objects to all.
We have a MouseClickListener added to the root of the SVG. Once the
user clicks we get the target and set the pointer-events to none.
Then we fire a Windows mouseclick again - the MouseClickListener
reacts on that. This time the target is different, since the last one
doesn't get a mouseclick anymore. In that way we go deeper and deeper.
At the very bottom of the SVG we have one big rectangle called
BACKGROUND. If our ObjectLookUp reaches this BACKGROUND we stop the
function and we display all found objects.
It works pretty fine until the user wants to switch to another
application during this click-loop. Because we send mouseclick, but it
won't be handled by our MouseClickListener, since svgViewer is not
visible anymore.

So would like to fix this problem.

We came to the idea to use dispatchEvent method.
So what we have is (pseudo code):

MouseClickListener{
   handleEvent(evt){
  if(evt.target == BACKGROUND){
  showObjects(targetCollection);
  exit();
  }
  targetCollection.add(evt.target);
  evt.target.setAttribute(pointer-events, none)

  // what to do here??
  document.root.dispatchEvent(evt);
   }
}

Since evt is already set and its target is set to the first object,
dispatchEvent will cause that handleEvent is called, but evt is not
updated - it is again the evt with target equal to the first object,
although the first opbject has pointer-events set to none.
We have no API for CreateEvent() in ASV3.0. What can we do?
It is hopeless.

Could someone help us?

I searched the whole archive for the answer but I couldn't find a
solution.


thank you in advance

cheers

Maciek





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[svg-developers] how to know when ASV3 finishes rendering?

2005-11-10 Thread kanmac1
Hi all,

I have to show quite a complicated SVG. Rendering may take even a few
seconds. After the SVG is rendered I would like to perform additional
action. But it MUST be after the rendering.
Is there a way or trick how to retrieve this info from ASV3?

Any suggestions are welcome

cheers
Maciek






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] how to detect end of manual panning in ASV?

2005-03-02 Thread kanmac1


Is there any reasonable way to detect the end of panning (left mouse
button goes up while the cursor is a 'hand')?

I ve got some text I have to put into the SVG every time the position
of svg changes. But for performance reasons I don't want to call this
function while panning, but only once every time the user stops
panning (i.e. mouse button goes up and ASV was in panning mode, i.e.
you can see a 'hand' cursor) - then I would call my text-placing function.
I tested with mouse-up and it doesn't work at all. So finally I use
mouseHookEx API function but it makes some troubles in my app, so I
would like to avoid it.
From the other hand I wouldn't like to use my own panning
('mousedown', 'mousemove', 'mouseup' handling and changing translate
of the svg), since we have a strong requirement on how the cursor
should look like.
Using standard ASV panning I've got a warranty I have a 'hand'-cursor.
Is there any way to handle cursors in ASV3.02 (even on the system
level), then it could be an alternative to me to use this cursor
handling with my own panning.

cheers
maciek






-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] ready status

2005-02-28 Thread kanmac1


Folks,

any idea how to be 100% sure ASV has finished processing of SVG?
E.g. I set a transform attribute to the value rotate(45). It is a
very big g element, so the processing takes a few seconds.
Once I get back the control I understand ASV has finished, but I can
see, that the processor is still busy for another amount of time and
pressing Alt or Ctrl doesn't change the cursor to the standard one
(e.g. a hand symbol when alt is pressed). Due to some reasons I
really would like to know when the ASV hs finished its job. I use
WebBrowser activeX to display SVG.
I used readyStatus (it doesn't work properly while loading, so I event
didn't try while manipulating of svg). I also tried some WebBrowser
events but the event was raised before ASV has really finished. I
assume from this bahaviour, ASV has its own thread for rendering. Is
there any chance to get the point in time when it's really finished?

regards
Maciek





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] ASV3 bug??? ASV doesn't refresh very big svgs!!!

2005-02-22 Thread kanmac1


Guys,
You are our hope.
Have You ever tried to show a very big SVG using Adobe SVG Viewer?
We have a chart which is 35m wide and heigh. And ASV has big problems
with it. It shows the SVG correctly up to the 440th centimeter (a.
173rd inch). After that width and height the result are unpredictable.
You can try if you want with easiest possible SVG:

svg width=500cm height=500cm viewBox=0 0 500 500
rect x=0 y=0 width=500 height=500
style=stroke:red;stroke-width:0.5;fill:yellow/
/svg

My question: Is it  a bug in ASV (I guess so) or I'm doing sth wrong.
I checked the datatype defined in the SVG standard, used to store
width and height - it is SVGAnimatedLength, which consist of two
SVGLength fields, and SVGLength stores values as floats (max 1.0*2^37
or 3.4*2^38). If you conver 5m even to twips you get 283464,5twips. It
is still much much less then 2^37.
We use ASV3.02 build 91, but I've tried also with ASV6 but it works same.


regards
Maciek







-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Re: ASV3 bug??? ASV doesn't refresh very big svgs!!!

2005-02-22 Thread kanmac1


You can beleive me or not, but we really need to show so big charts.
My question was whether it is a bug (I don't see nay reason why it
shouldn't work - our requirement is compliant to the SVG1.1
definition) or I'm doing sth wrong.
Your solution works fine but the picture is relatively small. We have
different chart scales and at the largest scale we show very big
chart, and we cannot just squeeze it like You propose.
Nonetheless thank You for Your answer.

maciek

--- In svg-developers@yahoogroups.com, Domenico Strazzullo
[EMAIL PROTECTED] wrote:
 
 Hi Maciek,
 
 With what intent you made a 35x35 m chart? 
 
 If it's for onscreen viewing and you don't set a viewbox then you 
 need to scroll ~972 times across and ~1292 times down to see the end 
 of the document, with a browser setting of 1024x768, and ASV does 
 seem to have a problem there. But not just ASV!
 
 Here you have a 35x10 meters document:
 
 svg width=100% height=100% viewBox=0 0 99212.598 28346.456
 svg x=0 y=0 width=3500cm height=1000cm
 rect x=0 y=0 width=3500cm height=1000cm 
 style=stroke:red;stroke-width:1;fill:yellow/
 text x=300cm y=400cm fill=red font-size=80mm font-
 weight=boldCAN YOU SEE ME?/text
 /svg
 /svg
 
 Playing with the viewbox values will let you see reasonably smaller 
 parcels of the document, if you need it.
 
 If the final destination is for print then maybe svg is not the best 
 solution in your case?
 
 Domenico
 
 
 --- In svg-developers@yahoogroups.com, kanmac1 [EMAIL PROTECTED] 
 wrote:
  
  Guys,
  You are our hope.
  Have You ever tried to show a very big SVG using Adobe SVG Viewer?
  We have a chart which is 35m wide and heigh. And ASV has big 
 problems
  with it. It shows the SVG correctly up to the 440th centimeter (a.
  173rd inch). After that width and height the result are 
 unpredictable.
  You can try if you want with easiest possible SVG:
  
  svg width=500cm height=500cm viewBox=0 0 500 500
  rect x=0 y=0 width=500 height=500
  style=stroke:red;stroke-width:0.5;fill:yellow/
  /svg
  
  My question: Is it  a bug in ASV (I guess so) or I'm doing sth 
 wrong.
  I checked the datatype defined in the SVG standard, used to store
  width and height - it is SVGAnimatedLength, which consist of two
  SVGLength fields, and SVGLength stores values as floats (max 
 1.0*2^37
  or 3.4*2^38). If you conver 5m even to twips you get 
 283464,5twips. It
  is still much much less then 2^37.
  We use ASV3.02 build 91, but I've tried also with ASV6 but it 
 works same.
  
  
  regards
  Maciek





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] real world unit vs screen resolution or display device

2005-02-07 Thread kanmac1


Hi all,

PLS HELP!!!

we've got a major problem with SVGs. It may have an absolutely
distroying impact on our application. We use Adobe SVG Viewer 3.0 in
the IE6.0.
Our charts have fixed width and height given in real world units (like
mm or px, - whatever) and they must be displayed exactly so on the
screen - independent of the screen resolution or the display device
parameters. Look at this.

svg width=200mm height=200mm viewBox=0 0 200 200
rect x=50 y=50 width=100 height=100 style=fill:red/
/svg

I expected the ASV to show me always!!! a rectangle which is 10cm wide
and 10 cm high and which starts exactly 5cm (on x-axis and y-axis)
from the (0,0) point of the SVG coordinate system.

If I display it on my monitor in the 1280x1024 resolution it looks
pretty well. But if I change the resolution to 800x600 I see my rect
has nothing to do with the dimensions I expected :( It's been a BIG
surprise to us for last few days. I went through the SVG1.1. spec but
I can't really get how to make my rect look always same (independent
of the resolution and display device).
I hope it is just a matter of proper setting of width, height and
viewBox attributes on the outer-most svg element. Any help is welcome.
And we need it ASAP.
cheers
Maciek





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] different look in ie6 and vb6. Why?

2004-12-06 Thread kanmac1


Hi folks,

I've got very simple SVG:
svg width=400mm height=400mm viewBox=-100 -100 800 800
 rect x=-100 y=-100 width=100 height=100 style=fill:red/
 rect x=0 y=0 width=100 height=100 style=fill:blue/
 rect x=100 y=100 width=100 height=100 style=fill:green/
 rect x=200 y=200 width=100 height=100 style=fill:yellow/
 rect x=-100 y=-100 width=800 height=800
style=fill:black;fill-opacity:0.5/
/svg

If i let the ie6 display this SVG, I get a correct look of it. This
SVG is really 400mm long and wide independent of the display device.
But if I load this SVG in VB6 (using SVG ActiveX) my svg is centered
in the activeX and its height is aligned to the height of the viewport.
Any idea why?

thanx in advance

Maciek





 Yahoo! Groups Sponsor ~-- 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/1U_rlB/TM
~- 

-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[svg-developers] Re: different look in ie6 and vb6. Why?

2004-12-06 Thread kanmac1


Thanks Mario for Your suggestion.
But then how such a small web server should like. How do you
comunicate embedded SVG object from VB? Maybe You can give me a few
hints, since I've got no clue how it should look like.
Thank You
Maciek
--- In [EMAIL PROTECTED], Mario Vernari [EMAIL PROTECTED]
wrote:
 Hi,
 I unsuggest to use SVG via ActiveX hosting in VB6.
 I have a long experience in this field and finally I switched to
embed a small 
 web server in the VB app, then show all the SVG content by a Internet 
 Explorer ActiveX.
 Believe me: this way is the most sure and stable.
 Comparing the convenience between code complexity and 
 debugging/stability/result, the web server choice is better.
 Cheers
 Mario
 
 





 Yahoo! Groups Sponsor ~-- 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/1U_rlB/TM
~- 

-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/