This project is mirrored from https://*****@github.com/iqb-berlin/verona-modules-aspect.git.
Pull mirroring updated .
- Nov 29, 2021
-
-
rhenck authored
-
rhenck authored
This is the same hack used in the editor for overlay elements. Here applied to the actual dnd elements seen in the player. Explanation: The cursor can not be applied to the dragged elements as it is not positioned (at least that is my understanding). The workaround is to style the body (cursor) while anything is being dragged.
-
jojohoch authored
If the virtual keyboard with numbers (or with numbers and operators) is used, input via the normal keyboard is also restricted to these characters.
-
rhenck authored
-
rhenck authored
-
rhenck authored
-
rhenck authored
It is meant to be used as inline positioned (sub) element. Therefore it has not postioning information and less property options than the normal drop list. Similar to the simple text field.
-
rhenck authored
-
rhenck authored
-
jojohoch authored
MatButtonModule is used in all projects!
-
jojohoch authored
-
- Nov 26, 2021
-
-
jojohoch authored
-
jojohoch authored
The interaction can now be turned off without hiding the button.
-
jojohoch authored
If maxRuns at minRuns had the same value, the valid state of an audio could not be set. Therefore no event was sent to other audios and videos
-
jojohoch authored
The latest changes to the events for the control bar have so far been implemented only for the audio component
-
jojohoch authored
-
jojohoch authored
This helps to find the asset path for images when they are imported from the js context
-
jojohoch authored
-
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
-