УкраїнськаEnglishmRussian
Вхід/Новий
У темі немає нових постів

SVG images adaptation.


Автор Повідомлення
Повідомлення створено: 28. 09. 2016 [11:17]
wunker
Kamil Piecha
Автор теми
Зареєстрован(а) с: 28.09.2016
Повідомлення: 8
Hello,

I'm using OpenSCADA version; 0.9+r2423.
I'm experiencing some problems with simple SVG graphics. Here's the example code:

<svg xmlns="http://www.w3.org/2000/svg" width="800" height="480">

<radialGradient id="radial" cx="50%" cy="50%" r="150%" fx="50%" fy="50%">

<stop stop-color="#222222" offset="0"/>

<stop stop-color="#000000" offset="0.3"/>

<stop stop-color="#000000" offset="1"/>

</radialGradient>

<rect x="0" y="0" width="800" height="480" fill="url(#radial)" />

</svg>


Opening this file in Firefox will result in black background with white radial gradient. But if I use this file in Widget/Attributes/Background/image, then gradient is not generated. Is SVG not fully implemented in OpenSCADA? Or I'm making some simple mistake?
Повідомлення створено: 28. 09. 2016 [13:10]
roman
Roman Savochenko
Moderator
Contributor
Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 3742
"wunker" wrote:

Opening this file in Firefox will result in black background with white radial gradient. But if I use this file in Widget/Attributes/Background/image, then gradient is not generated. Is SVG not fully implemented in OpenSCADA? Or I'm making some simple mistake?

SVG isn't implemented by OpenSCADA at all!
The Web-browser implements SVG, in your case but the browsers don't understand direct SVG into tag <IMG/>.
Then the SVG including/transmission to the result XHTML only planed for OpenSCADA, but it isn't too fast. To acceleration you can do funding the task!

Learn, learn and learn better than work, work and work.
Повідомлення створено: 28. 09. 2016 [13:36]
wunker
Kamil Piecha
Автор теми
Зареєстрован(а) с: 28.09.2016
Повідомлення: 8
I'm suprised a bit, but that's my fault, I should't run briefly through the documentation.
In Vision module SVG is working perfectly if I change dimensions from % to pixels. Now I see that in WebVision all of my SVG doesn't work.
Thank you for your answer.
Повідомлення створено: 08. 05. 2017 [17:02]
roman
Roman Savochenko
Moderator
Contributor
Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 3742
"roman" wrote:

SVG isn't implemented by OpenSCADA at all!

2016-12-25 Roman (stable)
- !!!!:FIX:UI.WebVision: adapted to asynchronous calls for all regular updatings by servGet() and makeEl() adapting to it.
For primitive "Text" set "line-height" for prevent upper font's padding.
View "Button" of primitive "FormEl": fixed for next line processing, fixed for true text and image represent.
Generic views of primitive FormEl set for padding to "0".
SVG images show fixed by correct mime processing into UI.VCAEngine and TUIS::mimeGet() using.


Learn, learn and learn better than work, work and work.



4019