This project is mirrored from https://*****@github.com/iqb-berlin/verona-modules-aspect.git.
Pull mirroring updated .
- Nov 26, 2021
-
-
rhenck authored
The problem being solved is that compound-sub-elements must not have all the properties other elements have. For exampe positioning info. Sub-Elements are positioned inline. To avoid having similar class inheritance structures for positioned and inline elements, we use interface. Positioning is done via interface and is therefore optional. Those optional properties are kept in an object in a variable. This allows to hide specifics from element classes and removes the need to initialize all the fields in every class using the interface. The elements mostly care about their own specific properties anyway. The same technique is used for font and surface elements. Here we also don't want to initialize all the styles in every class. Changing values of element properties works like before. Just set the property as if it would be a direkt prop of the element. The element itself puts the value in the currect sub-object (positioningProps, fontProps etc). For reading the values there is a similar method, but it is not used anywhere by now. Since the properties panel operates on the raw values anyway (refer CombinedProperties) and for element components this would mean calling a function in the template, which caused change detection to run the function very often and is therefore bad practice. Additional notes and refactorings: - Restructure all files in common. UIElements in the same folder etc. - Move all interfaces to the UIElement file. This avoids circular imports, which would be needed to allow PositionedElement to extend UIElement. - Interface initializers also handle reading values in the old form. - Add PositionedElement for use in canvas overlays. This is a UIElement with guaranteed postionProps. - Don't export all Material packages from common, only the ones used in player and editor. The rest is only used in common and does not need to be exported.
-
- Nov 25, 2021
-
-
rhenck authored
This is a native input element which is used in cloze elements. Here (sub)elements need to be positioned inline, which is hard to do with material components. Also add a method to all form elements to set their form value, which is now only used by the simple text field but may be useful for other elements, which don't integrate in material form fields.
-
rhenck authored
Highlighted (background colored) text is done with mark elements which don't have a color and make the contained text lose the styling of the parent span, which has the text-color property. To solve it we simply inherit the color of the parent span.
-
rhenck authored
When using borders deselecting would remove the borders of the (text)element as well.
-
jojohoch authored
-
jojohoch authored
-
jojohoch authored
Hint and autostart functionality of videos and audios is initialized only after dependencies to other audios and videos have been resolved. This prevents the hint of an audio and video from starting, although the audio is not yet enabled.
-
- Nov 24, 2021
-
-
rhenck authored
-
jojohoch authored
-
jojohoch authored
-
jojohoch authored
The control bar is shown only when at least one control is selected in the editor.
-
rhenck authored
The tooltip declarations does not need escaped text. Was shawing one to many backslashes.
-
rhenck authored
The issue here is the alignment if dropLists and text fields. They are supposed to be exactly in line with the text which is very complicated with Material components, which are heavily nested and contain several sub-elements which need to be changed - removing margins, paddings and other position related styles.
-
rhenck authored
Min-height should be optional for dynamically positioned elements, as you usually don't need it and it causes more problems than it solves. Elements with min-height have cause unexpected margins between elements.
-
- Nov 23, 2021
-
-
jojohoch authored
This avoids duplicate scrollbars in TestStudio
-
jojohoch authored
-
jojohoch authored
- Don't use height 100%. The image is not centered but positioned in the upper left corner
-
rhenck authored
As requested by product owner.
-
rhenck authored
Now scales, taking up all available space.
-
rhenck authored
No unused space around images and image an text below each each other.
-
jojohoch authored
-
rhenck authored
Extend the parsing to inludes h-Elements.
-
- Nov 22, 2021
-
-
jojohoch authored
The explicit check for undefined ensures that the value 0 of a number property is taken from serialized elements.
-
jojohoch authored
-
jojohoch authored
Start could be a restart, so lists containing references to elements are cleared.
-
jojohoch authored
If no audios and videos are available, the query status is 'complete'
-
jojohoch authored
-
jojohoch authored
Setting on type button avoids that click events are evaluated from the surrounding form
-
jojohoch authored
-
jojohoch authored
-
jojohoch authored
This allows to set the background color without limiting the content
-
jojohoch authored
The presentation will not be completed until all audios with the minRun property have been played.
-
rhenck authored
-
rhenck authored
Before the parent elements (span, div...) were catching the drop event which is not intended.
-
rhenck authored
The player is supposed to take all the elements already defined and generated in the editor. Therefore the call to generate all elements from the text is not a general thing but specialized for the editor. Right now the editor does no longer generate the cloze parts on load but only when the text prop has been touched.
-
rhenck authored
Also all elements now take the parentForm as input. Allowing it to use them with template binding and not only setting the value directly (in the controller).
-
- Nov 20, 2021