@frybynite/image-cloud 0.7.7 → 0.8.0
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/image-cloud-auto-init.js +665 -572
- package/dist/image-cloud-auto-init.js.map +1 -1
- package/dist/image-cloud.js +693 -600
- package/dist/image-cloud.js.map +1 -1
- package/dist/image-cloud.umd.js +3 -3
- package/dist/image-cloud.umd.js.map +1 -1
- package/dist/index.d.ts +12 -8
- package/dist/react.d.ts +12 -8
- package/dist/react.js +673 -580
- package/dist/react.js.map +1 -1
- package/dist/vue.d.ts +12 -8
- package/dist/vue.js +665 -572
- package/dist/vue.js.map +1 -1
- package/dist/web-component.d.ts +12 -8
- package/dist/web-component.js +639 -546
- package/dist/web-component.js.map +1 -1
- package/package.json +2 -2
package/dist/vue.d.ts
CHANGED
|
@@ -717,6 +717,10 @@ export declare class GridPlacementLayout implements PlacementLayout {
|
|
|
717
717
|
private random;
|
|
718
718
|
}
|
|
719
719
|
|
|
720
|
+
declare interface HoneycombAlgorithmConfig {
|
|
721
|
+
spacing?: number;
|
|
722
|
+
}
|
|
723
|
+
|
|
720
724
|
/**
|
|
721
725
|
* ImageFilter interface for filtering images by extension
|
|
722
726
|
* Implemented by the ImageFilter class in loaders/ImageFilter.ts
|
|
@@ -1008,7 +1012,7 @@ declare interface InteractionConfig {
|
|
|
1008
1012
|
gestures?: GestureInteractionConfig;
|
|
1009
1013
|
}
|
|
1010
1014
|
|
|
1011
|
-
export declare type LayoutAlgorithm = 'random' | 'radial' | 'grid' | 'spiral' | 'cluster' | 'wave';
|
|
1015
|
+
export declare type LayoutAlgorithm = 'random' | 'radial' | 'grid' | 'spiral' | 'cluster' | 'wave' | 'honeycomb';
|
|
1012
1016
|
|
|
1013
1017
|
export declare interface LayoutConfig {
|
|
1014
1018
|
algorithm: LayoutAlgorithm;
|
|
@@ -1021,6 +1025,7 @@ export declare interface LayoutConfig {
|
|
|
1021
1025
|
spiral?: SpiralAlgorithmConfig;
|
|
1022
1026
|
cluster?: ClusterAlgorithmConfig;
|
|
1023
1027
|
wave?: WaveAlgorithmConfig;
|
|
1028
|
+
honeycomb?: HoneycombAlgorithmConfig;
|
|
1024
1029
|
}
|
|
1025
1030
|
|
|
1026
1031
|
export declare class LayoutEngine {
|
|
@@ -1080,6 +1085,12 @@ export declare class LayoutEngine {
|
|
|
1080
1085
|
* @returns Calculated sizing result with height
|
|
1081
1086
|
*/
|
|
1082
1087
|
calculateAdaptiveSize(containerBounds: ContainerBounds, imageCount: number, maxHeight: number, viewportWidth: number): AdaptiveSizingResult;
|
|
1088
|
+
/**
|
|
1089
|
+
* Returns the largest image height at which all honeycomb rings fit within the container.
|
|
1090
|
+
* Spacing is 0 for this calculation (user spacing is additive on top of the image height;
|
|
1091
|
+
* any non-zero spacing only makes the constraint tighter).
|
|
1092
|
+
*/
|
|
1093
|
+
private honeycombMaxImageHeight;
|
|
1083
1094
|
/**
|
|
1084
1095
|
* Utility: Clamp a value between min and max
|
|
1085
1096
|
*/
|
|
@@ -1128,12 +1139,6 @@ declare interface PathAnimationOptions {
|
|
|
1128
1139
|
startScale?: number;
|
|
1129
1140
|
}
|
|
1130
1141
|
|
|
1131
|
-
declare interface PerformanceRenderingConfig {
|
|
1132
|
-
lazyLoad?: boolean;
|
|
1133
|
-
preloadCount?: number;
|
|
1134
|
-
imageQuality?: 'auto' | 'high' | 'medium' | 'low';
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
1142
|
export declare interface PlacementLayout {
|
|
1138
1143
|
generate(imageCount: number, containerBounds: ContainerBounds, options?: Partial<LayoutConfig>): ImageLayout[];
|
|
1139
1144
|
}
|
|
@@ -1203,7 +1208,6 @@ export declare class RandomPlacementLayout implements PlacementLayout {
|
|
|
1203
1208
|
declare interface RenderingConfig {
|
|
1204
1209
|
responsive: ResponsiveRenderingConfig;
|
|
1205
1210
|
ui: UIRenderingConfig;
|
|
1206
|
-
performance?: PerformanceRenderingConfig;
|
|
1207
1211
|
}
|
|
1208
1212
|
|
|
1209
1213
|
/**
|