@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.
@@ -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';
@@ -136,10 +136,8 @@ const mt = Object.freeze({
136
136
  queue: Object.freeze({
137
137
  enabled: !0,
138
138
  // When false, all images display simultaneously
139
- interval: 150,
139
+ interval: 150
140
140
  // ms between processing queue items (when enabled)
141
- maxConcurrent: void 0
142
- // STUB: Not implemented yet
143
141
  }),
144
142
  performance: Object.freeze({
145
143
  useGPU: void 0,
@@ -193,7 +191,8 @@ const mt = Object.freeze({
193
191
  // STUB: Not implemented yet
194
192
  doubleTapToFocus: void 0
195
193
  // STUB: Not implemented yet
196
- })
194
+ }),
195
+ disableDragging: !1
197
196
  }),
198
197
  // Pattern-based rendering configuration
199
198
  rendering: Object.freeze({
@@ -3539,7 +3538,7 @@ class ei {
3539
3538
  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);
3540
3539
  })), t.forEach((l, u) => {
3541
3540
  const h = document.createElement("img");
3542
- h.referrerPolicy = "no-referrer", h.classList.add("fbn-ic-image"), h.dataset.imageId = String(u), h.dataset.createdFlag = "true";
3541
+ 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";
3543
3542
  const d = a[u];
3544
3543
  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", () => {
3545
3544
  if (this.hoveredImage = { element: h, layout: d }, !this.zoomEngine.isInvolved(h)) {