The class binding expression in your template is invalid JavaScript syntax.
Did you mean to bind an array like this:
:class="[position, direction]"
So if position is 'right' and direction is 'rtl' then the element will have the classes right and rtl applied to it.
Binding an object is usually used when you have static class names that you want to apply conditionally based on some condition. Looking at your code, it doesn't seem like this is what you want to do.
For example, if you want to conditionally apply the static classes pressed and active based on some conditions, you can do this:
:class="{ pressed: pressedElement === el, active: !hidden }"
If pressedElement === el is true then the element will get the pressed class applied to it, likewise for active (I just made up some arbitrary expressions).
:class="{ position, direction }", orv-bind:class="[(position)?position:'', (direction)?direction:'']"([]instead of{})