@everymatrix/casino-engagement-suite-container 1.77.3 → 1.77.5

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.
@@ -5169,12 +5169,10 @@ class SvgCalc {
5169
5169
  getPropsForPartitionInfo(index, offset, baseRadius, contentDirection, size) {
5170
5170
  const { point, transformOrigin } = this.getPartitionPositions(index, baseRadius, offset);
5171
5171
  const isSmallSize = this.options.length >= 12;
5172
- const isMiddleSize = this.options.length > 8 && this.options.length < 12;
5173
- const withImage = this.options[index].Image;
5174
- const xTranslate = contentDirection === 0 ? -7 + (isSmallSize ? -2 : 0) : -(size === null || size === void 0 ? void 0 : size.width) / 2 || -30;
5172
+ const xTranslate = contentDirection === 0 ? -7 + (isSmallSize ? -2 : 0) : point.x - 32;
5175
5173
  const yTranslate = contentDirection === 0
5176
5174
  ? (this.center === 170 ? 70 : 76.5)
5177
- : withImage ? (isSmallSize ? -10 : 0) : (isSmallSize ? 10 : isMiddleSize ? 20 : 30);
5175
+ : point.y;
5178
5176
  const getTransformOriginString = (vector) => Object.keys(vector)
5179
5177
  .map((axis) => `${vector[axis]}px`)
5180
5178
  .join(' ');
@@ -5165,12 +5165,10 @@ class SvgCalc {
5165
5165
  getPropsForPartitionInfo(index, offset, baseRadius, contentDirection, size) {
5166
5166
  const { point, transformOrigin } = this.getPartitionPositions(index, baseRadius, offset);
5167
5167
  const isSmallSize = this.options.length >= 12;
5168
- const isMiddleSize = this.options.length > 8 && this.options.length < 12;
5169
- const withImage = this.options[index].Image;
5170
- const xTranslate = contentDirection === 0 ? -7 + (isSmallSize ? -2 : 0) : -(size === null || size === void 0 ? void 0 : size.width) / 2 || -30;
5168
+ const xTranslate = contentDirection === 0 ? -7 + (isSmallSize ? -2 : 0) : point.x - 32;
5171
5169
  const yTranslate = contentDirection === 0
5172
5170
  ? (this.center === 170 ? 70 : 76.5)
5173
- : withImage ? (isSmallSize ? -10 : 0) : (isSmallSize ? 10 : isMiddleSize ? 20 : 30);
5171
+ : point.y;
5174
5172
  const getTransformOriginString = (vector) => Object.keys(vector)
5175
5173
  .map((axis) => `${vector[axis]}px`)
5176
5174
  .join(' ');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-engagement-suite-container",
3
- "version": "1.77.3",
3
+ "version": "1.77.5",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",