Українська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
Сообщения: 3750
"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
Сообщения: 3750
"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.



5890