Вклад участника A.Degtyarev
- 12:55, 4 августа 2023 разн. история +1372 Н 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....» текущая
- 12:54, 4 августа 2023 разн. история −197 SVG-Dashboards/en Новая страница: «Syntax: <syntaxhighlight lang="javascript"> (CONDITION) ? 'VALUE1' : 'VALUE2' </syntaxhighlight>»
- 12:54, 4 августа 2023 разн. история +236 Н 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).» текущая
- 12:54, 4 августа 2023 разн. история −1200 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.»
- 12:54, 4 августа 2023 разн. история +102 Н Translations:SVG-Dashboards/74/en Новая страница: «In order for the animation to work, you need to set the element style to the '''animation''' property.» текущая
- 12:54, 4 августа 2023 разн. история +95 Н Translations:SVG-Dashboards/73/en Новая страница: «The keyframe name is an identifier by which the rule will be called from the style description.» текущая
- 12:54, 4 августа 2023 разн. история +404 Н 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.» текущая
- 12:54, 4 августа 2023 разн. история +108 Н Translations:SVG-Dashboards/71/en Новая страница: «'''@keyframes''', or keyframes, contain information about how the element should look at each point in time.» текущая
- 12:54, 4 августа 2023 разн. история +90 Н Translations:SVG-Dashboards/70/en Новая страница: «Rendering in CSS is done using the '''animation''' property and the '''@keyframes''' rule.» текущая
- 12:54, 4 августа 2023 разн. история +489 Н 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...» текущая
- 12:54, 4 августа 2023 разн. история −607 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»
- 12:54, 4 августа 2023 разн. история +162 Н 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.» текущая
- 12:54, 4 августа 2023 разн. история +323 Н 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.» текущая
- 12:54, 4 августа 2023 разн. история +277 Н 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.» текущая
- 12:54, 4 августа 2023 разн. история −1190 SVG-Dashboards/en Новая страница: «=== Read === Display values from the source in a text field.»
- 12:54, 4 августа 2023 разн. история +160 Н 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.» текущая
- 12:54, 4 августа 2023 разн. история +281 Н 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.» текущая
- 12:54, 4 августа 2023 разн. история +186 Н 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.» текущая
- 12:54, 4 августа 2023 разн. история +202 Н 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.» текущая
- 12:54, 4 августа 2023 разн. история +363 Н 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.» текущая
- 12:54, 4 августа 2023 разн. история +208 Н 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:» текущая
- 12:54, 4 августа 2023 разн. история −1942 SVG-Dashboards/en Новая страница: «Events available: single and long press, as well as swipe left and right.» Метки: правка с мобильного устройства правка из мобильной версии
- 12:54, 4 августа 2023 разн. история +2 Н Translations:SVG-Dashboards/59/en Новая страница: «}}» текущая
- 12:54, 4 августа 2023 разн. история +180 Н 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.» текущая
- 12:54, 4 августа 2023 разн. история +164 Н 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.» текущая
- 12:54, 4 августа 2023 разн. история +105 Н Translations:SVG-Dashboards/56/en Новая страница: «=== SVG Image === ==== Release wb-2307 and newer ==== {{SupportedSinceRelease | release=wb-2307 |content=» текущая
- 12:54, 4 августа 2023 разн. история +163 Н 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'''.» текущая
- 12:54, 4 августа 2023 разн. история +13 Н Translations:SVG-Dashboards/54/en Новая страница: «== Editing ==» текущая
- 12:54, 4 августа 2023 разн. история +325 Н 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>» текущая
- 12:54, 4 августа 2023 разн. история +269 Н 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>» текущая
- 12:53, 4 августа 2023 разн. история +121 Н Translations:SVG-Dashboards/51/en Новая страница: «Colors can be named <code>black, red, yellow и т.п.</code> or hex values <code>#ffe680ff, #4f4f4dff и т.п.</code> .» текущая
- 12:53, 4 августа 2023 разн. история +361 Н 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.» текущая
- 12:53, 4 августа 2023 разн. история +151 Н 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.» текущая
- 12:53, 4 августа 2023 разн. история +179 Н 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.» текущая
- 12:53, 4 августа 2023 разн. история −378 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>»
- 12:53, 4 августа 2023 разн. история +173 Н 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.» текущая
- 12:53, 4 августа 2023 разн. история +179 Н 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. }}» текущая
- 12:53, 4 августа 2023 разн. история −673 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.»
- 12:53, 4 августа 2023 разн. история +73 Н Translations:SVG-Dashboards/45/en Новая страница: «Events available: single and long press, as well as swipe left and right.» текущая
- 12:53, 4 августа 2023 разн. история +199 Н 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.» текущая
- 12:53, 4 августа 2023 разн. история +142 Н Translations:SVG-Dashboards/43/en Новая страница: «=== Jump and swipe === {{SupportedSinceRelease | release = wb-2307 |content= 300px|thumb|right| Creating a transition » текущая
- 12:53, 4 августа 2023 разн. история +123 Н Translations:SVG-Dashboards/42/en Новая страница: «For example, to switch a relay, specify: <syntaxhighlight lang="javascript"> On value = 1 Off value = 0 </syntaxhighlight>» текущая
- 12:53, 4 августа 2023 разн. история −1755 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...»
- 12:53, 4 августа 2023 разн. история +181 Н 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.» текущая
- 12:53, 4 августа 2023 разн. история +123 Н 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.» текущая
- 12:53, 4 августа 2023 разн. история +114 Н 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.» текущая
- 12:53, 4 августа 2023 разн. история +175 Н 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>» текущая
- 12:53, 4 августа 2023 разн. история +142 Н 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>» текущая
- 12:53, 4 августа 2023 разн. история +108 Н Translations:SVG-Dashboards/36/en Новая страница: «To display the value, just specify the variable: <syntaxhighlight lang="javascript"> val </syntaxhighlight>» текущая
- 12:53, 4 августа 2023 разн. история +148 Н 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.» текущая