@streamscloud/embeddable 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,20 +36,20 @@ export const generateAnnotationStyles = (styles, placement) => {
36
36
  const values = [`height: ${transformNumericValue(styles.size)};`, 'position: absolute;'];
37
37
  switch (placement) {
38
38
  case AnnotationStreamElementPlacement.TopLeft:
39
- values.push(`top: ${transformNumericValue(styles.verticalIndent)};`);
40
- values.push(`left: ${transformNumericValue(styles.horizontalIndent)};`);
39
+ values.push(`top: ${transformNumericValue(styles.offsetY)};`);
40
+ values.push(`left: ${transformNumericValue(styles.offsetX)};`);
41
41
  break;
42
42
  case AnnotationStreamElementPlacement.TopRight:
43
- values.push(`top: ${transformNumericValue(styles.verticalIndent)};`);
44
- values.push(`right: ${transformNumericValue(styles.horizontalIndent)}`);
43
+ values.push(`top: ${transformNumericValue(styles.offsetY)};`);
44
+ values.push(`right: ${transformNumericValue(styles.offsetX)}`);
45
45
  break;
46
46
  case AnnotationStreamElementPlacement.BottomLeft:
47
- values.push(`bottom: ${transformNumericValue(styles.verticalIndent)};`);
48
- values.push(`left: ${transformNumericValue(styles.horizontalIndent)};`);
47
+ values.push(`bottom: ${transformNumericValue(styles.offsetY)};`);
48
+ values.push(`left: ${transformNumericValue(styles.offsetX)};`);
49
49
  break;
50
50
  case AnnotationStreamElementPlacement.BottomRight:
51
- values.push(`bottom: ${transformNumericValue(styles.verticalIndent)};`);
52
- values.push(`right: ${transformNumericValue(styles.horizontalIndent)};`);
51
+ values.push(`bottom: ${transformNumericValue(styles.offsetY)};`);
52
+ values.push(`right: ${transformNumericValue(styles.offsetX)};`);
53
53
  break;
54
54
  default:
55
55
  Utils.assertUnreachable(placement);
@@ -6,8 +6,8 @@ export type StreamLayoutStyles = {
6
6
  };
7
7
  export type AnnotationStreamElementStyles = {
8
8
  size: number;
9
- horizontalIndent: number;
10
- verticalIndent: number;
9
+ offsetX: number;
10
+ offsetY: number;
11
11
  };
12
12
  export type ContainerStreamElementStyles = {
13
13
  width?: StreamCssValue | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/embeddable",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "author": "StreamsCloud",
5
5
  "repository": "https://github.com/StreamsCloud/streamscloud-frontend-packages.git",
6
6
  "type": "module",