Вклад
4 августа 2023
Translations:SVG-Dashboards/76/en
Новая страница: «Let's use an example to create an animation to change the text color from red to green and vice versa. Since text is filled in SVG, you will need to change the '''fill''' property. 350px|thumb|right| The '''animation''' property is set in the '''Value''' field of the '''Style''' parameter #Let's create a new SVG document in the Inlscape editor and add the Text element to it. #Let's save the file and open it in a text editor....»
SVG-Dashboards/en
Новая страница: «Syntax: <syntaxhighlight lang="javascript"> (CONDITION) ? 'VALUE1' : 'VALUE2' </syntaxhighlight>»
−197
Translations:SVG-Dashboards/75/en
Новая страница: «The '''animation''' property sets the animation action parameters (animation duration, repetition, direction, movement type, steps), and the '''@keyframes''' block sets the animation itself in steps (changes in appearance and position).»
SVG-Dashboards/en
Новая страница: «=== Loading === # Create a new SVG panel following the instructions in the Creating an SVG panel. # In the svg panel editor, click the '''As JSON''' button, copy the link description from the saved file and paste the text into the field # Click the '''Save'' button '' at the bottom of the page.»
−1200
Translations:SVG-Dashboards/74/en
Новая страница: «In order for the animation to work, you need to set the element style to the '''animation''' property.»
Translations:SVG-Dashboards/73/en
Новая страница: «The keyframe name is an identifier by which the rule will be called from the style description.»
Translations:SVG-Dashboards/72/en
Новая страница: «A rule containing two keyframes would look like this: <syntaxhighlight lang="css"> @keyframes <keyframe name> { from: { description of the initial state of the element } to: { description of the final state of the element } } </syntaxhighlight> Here '''from''' and '''to''' keywords denote the start and end points of the animation. Instead, you can use 0% and 100%, as well as add intermediate values.»
Translations:SVG-Dashboards/71/en
Новая страница: «'''@keyframes''', or keyframes, contain information about how the element should look at each point in time.»
Translations:SVG-Dashboards/70/en
Новая страница: «Rendering in CSS is done using the '''animation''' property and the '''@keyframes''' rule.»
Translations:SVG-Dashboards/69/en
Новая страница: «To do this: #Draw an SVG panel in a vector editor like Inkscape. #Open the SVG file in a text editor and add a style block wrapped in tags<style></style> . #Add the '''@keyframes''' rule in the style block. #Save the file and load it into the controller. #Go to the SVG panel editor in the controller's web interface. #Activate the '''Style''' parameter and set the property '''animation''' in the '''Value''' field. You also need to set the condition under whi...»
SVG-Dashboards/en
Новая страница: «=== Conditional expressions === Available operations: * <code>></code> — greater than * <code>>=</code> — greater than or equal to * <code><</code> — less than * <code><=</code> — less than or equal to!N !* <code>==</code> — equals * <code>!=</code> — not equal»
−607
Translations:SVG-Dashboards/68/en
Новая страница: «==Animation of SVG panel elements== 598x|thumb|right| SVG panel element animation example SVG panel elements can be animated using CSS.»
Translations:SVG-Dashboards/67/en
Новая страница: «=== Loading === # Create a new SVG panel following the instructions in the Creating an SVG panel. # In the svg panel editor, click the '''As JSON''' button, copy the link description from the saved file and paste the text into the field # Click the '''Save'' button '' at the bottom of the page.»
Translations:SVG-Dashboards/66/en
Новая страница: «=== Saving === Save the svg file and link description: # Download the file from the controller to your computer. To do this, click on the button with the image of a down arrow. # In the editor of the svg-panel, click the button '''As JSON''', copy and save the lines to a file.»
SVG-Dashboards/en
Новая страница: «=== Read === Display values from the source in a text field.»
−1190
Translations:SVG-Dashboards/65/en
Новая страница: «Please note that the names of the MQTT topics on both controllers must match. If this is not the case, svg elements will need to be attached to new MQTT topics.»
Translations:SVG-Dashboards/64/en
Новая страница: «== Transfer to another controller == Sometimes you need to make a backup copy of the svg-panel, for example, to transfer to another controller. To do this, you need to save the svg file converted by the editor and the description of its links and upload them to another controller.»
Translations:SVG-Dashboards/63/en
Новая страница: «Edit the resulting svg file and upload it to the controller again: # In the edit window, click the '''Select File''' button. # After the '''Change''' button becomes active, click on her.»
Translations:SVG-Dashboards/62/en
Новая страница: «When editing, keep in mind that if a link was assigned to an svg element, then it contains a hidden data-svg-param-id and when it is duplicated, a new element is created with the same data-svg-param-id.»
Translations:SVG-Dashboards/61/en
Новая страница: «# Open the SVG panel for editing. # At the top of the window, click the '''Download''' button, the svg file will be downloaded to your computer. # Edit the file in Inkscape. We do not recommend editing such files in Adobe Illustrator - [https://support.wirenboard.com/t/redaktirovanie-svg-dacsboard bindings are lost], there is no information about other editors.»
Translations:SVG-Dashboards/60/en
Новая страница: «==== Release wb-2304 and older ==== The SVG panel editor assigns data-svg-param-id at the time of binding actions to the element, so to edit the image, you need to load it from the controller to the computer:»
SVG-Dashboards/en
Новая страница: «Events available: single and long press, as well as swipe left and right.»
−1942
Translations:SVG-Dashboards/59/en
Новая страница: «}}»
Translations:SVG-Dashboards/58/en
Новая страница: «Important! If you have made a binding to a group of elements, then do not ungroup this group! If you need to change it, just go to the group in Inkscape and add or remove elements.»
Translations:SVG-Dashboards/57/en
Новая страница: «SVG panels use identifiers embedded in the file (the id tag), so to edit the panel, simply make changes to the drawing and upload the new version to the controller.»
Translations:SVG-Dashboards/56/en
Новая страница: «=== SVG Image === ==== Release wb-2307 and newer ==== {{SupportedSinceRelease | release=wb-2307 |content=»
Translations:SVG-Dashboards/55/en
Новая страница: «=== Panel === To make changes: # Open the SVG panel. # Click on the '''Edit''' button. # Make changes and save them by clicking on the ' button ''Demonstration'''.»
Translations:SVG-Dashboards/54/en
Новая страница: «== Editing ==»
Translations:SVG-Dashboards/53/en
Новая страница: «Let's make it so that when the value is greater than 20, the stroke of the element becomes red, dotted and 2px thick. For values less than or equal to 20, the element style will be left by default: <syntaxhighlight lang="javascript"> (val > 20) ? 'stroke: red; stroke-width:2px; stroke-dasharray:2,1' : '' </syntaxhighlight>»
Translations:SVG-Dashboards/52/en
Новая страница: «Let's change the color of the element depending on the state of the relay, if the value in the topic is <code>1</code> , then paint the object yellow, otherwise - gray: <syntaxhighlight lang="javascript"> (val == 1) ? ';fill: yellow' : ';fill: gray' </syntaxhighlight>»
Translations:SVG-Dashboards/51/en
Новая страница: «Colors can be named <code>black, red, yellow и т.п.</code> or hex values <code>#ffe680ff, #4f4f4dff и т.п.</code> .»
Translations:SVG-Dashboards/50/en
Новая страница: «Element properties available for styling: * fill — fill color; * fill-opacity — fill opacity, values from 0.0 to 1.0 or as a percentage; * stroke — stroke color; * stroke- width — stroke thickness; * stroke-dasharray — dashed stroke type, set in units of length or percentage. * stroke-opacity — stroke opacity, values from 0.0 to 1.0 or percentage.»
Translations:SVG-Dashboards/49/en
Новая страница: «=== Design style === Allows you to change the style of image elements. Can be used to create feedback for actions, notify the user about an event, etc.»
Translations:SVG-Dashboards/48/en
Новая страница: «In the '''Channel''' field, select the MQTT topic that the element will respond to, in the '''Condition''' field, select a condition, and in the '''Value''' field, select a value.»
SVG-Dashboards/en
Новая страница: «For example, if the value of the MQTT topic is equal to <code>1</code> , then print the value <code>ВКЛ</code> , otherwise — <code>ОТКЛ</code> : <syntaxhighlight lang="javascript"> (val == 1) ? 'ON' : 'OFF' </syntaxhighlight>»
−378
Translations:SVG-Dashboards/47/en
Новая страница: «=== Visibility === Here you can specify under what condition to show the image element. By default, the element will be hidden and displayed only while the condition is met.»
Translations:SVG-Dashboards/46/en
Новая страница: «By single and long pressing, the transition to SVG and text panels is available, and by swiping - only SVG. This is an architectural limitation that we are not yet able to fix. }}»
SVG-Dashboards/en
Новая страница: «Using transitions, you can create multi-page interfaces: # Draw a custom picture for each page. # Load these pictures into the controller. # Select a panel for one of the three events to navigate to.»
−673
Translations:SVG-Dashboards/45/en
Новая страница: «Events available: single and long press, as well as swipe left and right.»
Translations:SVG-Dashboards/44/en
Новая страница: «Using transitions, you can create multi-page interfaces: # Draw a custom picture for each page. # Load these pictures into the controller. # Select a panel for one of the three events to navigate to.»
Translations:SVG-Dashboards/43/en
Новая страница: «=== Jump and swipe === {{SupportedSinceRelease | release = wb-2307 |content= 300px|thumb|right| Creating a transition »
Translations:SVG-Dashboards/42/en
Новая страница: «For example, to switch a relay, specify: <syntaxhighlight lang="javascript"> On value = 1 Off value = 0 </syntaxhighlight>»
SVG-Dashboards/en
Новая страница: «To associate an image svg element with values or events, select it with the mouse, after which fields for setting the element's behavior will appear next to the image. {{SupportedSinceRelease | release = wb-2307 |content= In addition to selecting a single element, you can select a group. To do this, hold down the Alt key on your keyboard and click on one of the elements of the group. The group containing the element will be highlighted. Clicking again while...»
−1755
Translations:SVG-Dashboards/41/en
Новая страница: «In the '''Channel''' field, select the MQTT topic for writing values, and in the '''On State Value''' and '''Off State Value''' fields specify which values correspond to the states.»
Translations:SVG-Dashboards/40/en
Новая страница: «There are two states ON and OFF. When a user clicks on an element, the value in the MQTT topic will change to the opposite.»
Translations:SVG-Dashboards/39/en
Новая страница: «=== Write to channel === With this setting you can write a value to the topic when the user clicks on the element.»
Translations:SVG-Dashboards/38/en
Новая страница: «You can also change the received value, for example, replace it with a human-readable status: <syntaxhighlight lang="javascript"> (val == 1) ? 'ON' : 'OFF' </syntaxhighlight>»
Translations:SVG-Dashboards/37/en
Новая страница: «You can add arbitrary text to the value, for example, the unit of measure: <syntaxhighlight lang="javascript"> val + '°C' </syntaxhighlight>»
Translations:SVG-Dashboards/36/en
Новая страница: «To display the value, just specify the variable: <syntaxhighlight lang="javascript"> val </syntaxhighlight>»
Translations:SVG-Dashboards/35/en
Новая страница: «The value from the source selected in the '''Channel''' field is placed in the '''val''' variable, which must be specified in the '''Value''' field.»