@frybynite/image-cloud 0.9.0 → 0.9.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.
package/dist/index.d.ts CHANGED
@@ -131,7 +131,6 @@ declare interface AnimationPerformanceConfig {
131
131
  declare interface AnimationQueueConfig {
132
132
  enabled: boolean;
133
133
  interval: number;
134
- maxConcurrent?: number;
135
134
  }
136
135
 
137
136
  /**
@@ -1058,6 +1057,7 @@ declare interface InteractionConfig {
1058
1057
  focus: FocusInteractionConfig;
1059
1058
  navigation?: NavigationInteractionConfig;
1060
1059
  gestures?: GestureInteractionConfig;
1060
+ disableDragging?: boolean;
1061
1061
  }
1062
1062
 
1063
1063
  export declare type LayoutAlgorithm = 'random' | 'radial' | 'grid' | 'spiral' | 'cluster' | 'wave' | 'honeycomb';
package/dist/react.d.ts CHANGED
@@ -131,7 +131,6 @@ declare interface AnimationPerformanceConfig {
131
131
  declare interface AnimationQueueConfig {
132
132
  enabled: boolean;
133
133
  interval: number;
134
- maxConcurrent?: number;
135
134
  }
136
135
 
137
136
  /**
@@ -1058,6 +1057,7 @@ declare interface InteractionConfig {
1058
1057
  focus: FocusInteractionConfig;
1059
1058
  navigation?: NavigationInteractionConfig;
1060
1059
  gestures?: GestureInteractionConfig;
1060
+ disableDragging?: boolean;
1061
1061
  }
1062
1062
 
1063
1063
  export declare type LayoutAlgorithm = 'random' | 'radial' | 'grid' | 'spiral' | 'cluster' | 'wave' | 'honeycomb';
package/dist/react.js CHANGED
@@ -138,10 +138,8 @@ const mt = Object.freeze({
138
138
  queue: Object.freeze({
139
139
  enabled: !0,
140
140
  // When false, all images display simultaneously
141
- interval: 150,
141
+ interval: 150
142
142
  // ms between processing queue items (when enabled)
143
- maxConcurrent: void 0
144
- // STUB: Not implemented yet
145
143
  }),
146
144
  performance: Object.freeze({
147
145
  useGPU: void 0,
@@ -195,7 +193,8 @@ const mt = Object.freeze({
195
193
  // STUB: Not implemented yet
196
194
  doubleTapToFocus: void 0
197
195
  // STUB: Not implemented yet
198
- })
196
+ }),
197
+ disableDragging: !1
199
198
  }),
200
199
  // Pattern-based rendering configuration
201
200
  rendering: Object.freeze({
@@ -3541,7 +3540,7 @@ let oi = class {
3541
3540
  h.style.left = `${d - 6}px`, h.style.top = `${f - 6}px`, h.title = `Image ${u}: center (${Math.round(d)}, ${Math.round(f)})`, this.containerEl.appendChild(h);
3542
3541
  })), t.forEach((l, u) => {
3543
3542
  const h = document.createElement("img");
3544
- h.referrerPolicy = "no-referrer", h.classList.add("fbn-ic-image"), h.dataset.imageId = String(u), h.dataset.createdFlag = "true";
3543
+ h.referrerPolicy = "no-referrer", h.classList.add("fbn-ic-image"), this.fullConfig.interaction.disableDragging && (h.draggable = !1), h.dataset.imageId = String(u), h.dataset.createdFlag = "true";
3545
3544
  const d = a[u];
3546
3545
  h.style.position = "absolute", h.style.width = "auto", h.style.height = `${i}px`, h.style.left = `${d.x}px`, h.style.top = `${d.y}px`, d.zIndex && (h.style.zIndex = String(d.zIndex)), st(h, this.defaultClassName), h.addEventListener("mouseenter", () => {
3547
3546
  if (this.hoveredImage = { element: h, layout: d }, !this.zoomEngine.isInvolved(h)) {