canvas problem

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
Andreas2000
Posts: 12
Joined: Sun Jan 03, 2016 2:19 pm
Location: Berlin, Germany

canvas problem

Postby Andreas2000 » Sat Jun 11, 2016 11:12 pm

Hello,

I try to convert and show a xaml canvas (only paths, but with ca. 60 paths) as html5-canvas. In my Visual Studio is to see the complete picture of paths (see the attachment). In the browser I see only some paths not all. But in the created .js file (my project js-file TestToHTML5-2.js) I can see that all paths where created. Where is the problem?

best regards
Andreas Moeller, Berlin, Germany
(sorry for my english. I hope you can understand me)
Attachments
11-06-_2016_07-59-50.gif
11-06-_2016_07-59-50.gif (12.96 KiB) Viewed 5710 times
11-06-_2016_07-55-33.gif
11-06-_2016_07-55-33.gif (80.01 KiB) Viewed 5710 times
11-06-_2016_07-59-04.gif
11-06-_2016_07-59-04.gif (30.45 KiB) Viewed 5710 times

JS-Support @Userware
Site Admin
Posts: 1093
Joined: Tue Apr 08, 2014 3:42 pm

Re: canvas problem

Postby JS-Support @Userware » Mon Jun 13, 2016 12:08 am

Hi,

Can you please try with Beta 8.2 ? It is supposed to improve accuracy of <Path/> control:

http://forums.cshtml5.com/viewforum.php?f=6

Thanks.
Regards,
JS-Support

Andreas2000
Posts: 12
Joined: Sun Jan 03, 2016 2:19 pm
Location: Berlin, Germany

Re: canvas problem

Postby Andreas2000 » Mon Jun 13, 2016 8:11 pm

Hi,
thank you very much. Now it is ok. the mistake seems to be remove.
Now I try to convert the next elements of my drawing. And the next problem is to convert a textblock-element when it has a rendertransform attribute. I get an exception. You can see it in my attachment screens. Of course I can remove it and then it works well. But the xaml code is created automatically and I don't want to do that every time.

best regards
Andreas
Attachments
14-06-_2016_05-59-46.gif
14-06-_2016_05-59-46.gif (85.83 KiB) Viewed 5697 times
14-06-_2016_05-58-03.gif
14-06-_2016_05-58-03.gif (20.73 KiB) Viewed 5697 times
14-06-_2016_05-58-54.gif
14-06-_2016_05-58-54.gif (21.98 KiB) Viewed 5697 times

JS-Support @Userware
Site Admin
Posts: 1093
Joined: Tue Apr 08, 2014 3:42 pm

Re: canvas problem

Postby JS-Support @Userware » Mon Jun 13, 2016 11:49 pm

Hi,

Glad to know that the issue with lines is now fixed.

For RenderTransform, you can fix it by using the expanded form in XAML, like this:

Code: Select all

<TextBlock ................>
    <TextBlock.RenderTransform>
        <CompositeTransform ................/>
    </TextBlock.RenderTransform>
</TextBlock>


Where you need to replace "................" with the appropriate stuff.

Thanks.
Regards,
JS-Support

Andreas2000
Posts: 12
Joined: Sun Jan 03, 2016 2:19 pm
Location: Berlin, Germany

Re: canvas problem

Postby Andreas2000 » Sun Jun 26, 2016 3:06 am

Hi,
unfortunatly it doesn't work in my program. I get few mistakes (one for each attribute). Then the canvas will show but without to do the transform. Do you have any idea?

best regards

Andreas
Attachments
26-06-_2016_12-47-50.gif
26-06-_2016_12-47-50.gif (41.15 KiB) Viewed 5671 times
26-06-_2016_12-57-44.gif
26-06-_2016_12-57-44.gif (42.89 KiB) Viewed 5671 times

JS-Support @Userware
Site Admin
Posts: 1093
Joined: Tue Apr 08, 2014 3:42 pm

Re: canvas problem

Postby JS-Support @Userware » Sun Jun 26, 2016 8:01 am

Hi,

We were able to reproduce the problem. It will be fixed in the upcoming Beta 8.3, in a few days.

Thanks.
Regards,
JS-Support

JS-Support @Userware
Site Admin
Posts: 1093
Joined: Tue Apr 08, 2014 3:42 pm

Re: canvas problem

Postby JS-Support @Userware » Fri Jul 01, 2016 2:28 am

Hi,

The issue is supposed to have fixed in Beta 8.3, available from:

http://forums.cshtml5.com/viewforum.php?f=6

Can you please confirm that it works fine?

Thank you.
Regards
JS-Support

Andreas2000
Posts: 12
Joined: Sun Jan 03, 2016 2:19 pm
Location: Berlin, Germany

Re: canvas problem

Postby Andreas2000 » Sat Jul 02, 2016 12:21 am

Hello,

thank you for your fast reaction. I checked the new version. I changed some of the values of the attributes. It seems not all works fine.
First I changed only the value of rotation. It works correctly, but the position of my letter is not quite the same. Then I changed also the values of ScaleX/ScaleY and TranslateX/TranslateY. The result is not correct. You can see it in my attachment. Skew I didn't tested it because it seems not so important for my. Perhaps you can check and change it again, when you have the same effect.

best regards
Andreas Moeller
Attachments
02-07-_2016_09-55-39.gif
02-07-_2016_09-55-39.gif (11.14 KiB) Viewed 5653 times
02-07-_2016_09-49-53.gif
02-07-_2016_09-49-53.gif (12.13 KiB) Viewed 5653 times
02-07-_2016_09-50-29.gif
02-07-_2016_09-50-29.gif (34.72 KiB) Viewed 5653 times

JS-Support @Userware
Site Admin
Posts: 1093
Joined: Tue Apr 08, 2014 3:42 pm

Re: canvas problem

Postby JS-Support @Userware » Sat Jul 02, 2016 8:17 am

Thanks Andreas.

Can you please post your XAML as text so that we can copy/paste it into a test project?

Regards,
JS-Support

Andreas2000
Posts: 12
Joined: Sun Jan 03, 2016 2:19 pm
Location: Berlin, Germany

Re: canvas problem

Postby Andreas2000 » Sat Jul 02, 2016 9:33 am

Hello,

is it ok so?

<TextBlock Foreground="red" Canvas.Left="272.687" Canvas.Top="2.210" FontSize="37.45">N
<TextBlock.RenderTransform>
<CompositeTransform ScaleX="1" ScaleY="1" SkewX="0" ScaleY="0" Rotation="-14" TranslateX="0" TranslateY="0" />
</TextBlock.RenderTransform>
</TextBlock>

best regards
Andreas

Andreas2000
Posts: 12
Joined: Sun Jan 03, 2016 2:19 pm
Location: Berlin, Germany

Re: canvas problem

Postby Andreas2000 » Sat Jul 02, 2016 9:40 am

<TextBlock Foreground="red" Canvas.Left="272.687" Canvas.Top="2.210" FontSize="37.45">N
<TextBlock.RenderTransform>
<CompositeTransform ScaleX="1" ScaleY="1" SkewX="0" SkewY="0" Rotation="-14" TranslateX="0" TranslateY="0" />
</TextBlock.RenderTransform>
</TextBlock>

There was 1 mistsake (at SkewY).
If you need the arrow also, please write me. But the arrow has many paths...

JS-Support @Userware
Site Admin
Posts: 1093
Joined: Tue Apr 08, 2014 3:42 pm

Re: canvas problem

Postby JS-Support @Userware » Tue Jul 05, 2016 12:28 am

Thank you. I will keep you updated asap.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest

 

 

cron