intelica-library-components 1.1.123 → 1.1.124
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.
|
@@ -8532,6 +8532,24 @@ class Shared {
|
|
|
8532
8532
|
...(options?.width && { width: options.width }),
|
|
8533
8533
|
});
|
|
8534
8534
|
}
|
|
8535
|
+
async createEmbedVisualContext(embedUrl, container, options) {
|
|
8536
|
+
const embeddingContext = await createEmbeddingContext();
|
|
8537
|
+
await embeddingContext.embedVisual({
|
|
8538
|
+
url: embedUrl,
|
|
8539
|
+
container,
|
|
8540
|
+
...(options?.height && { height: options.height }),
|
|
8541
|
+
...(options?.width && { width: options.width }),
|
|
8542
|
+
}, { scaleToContainer: true, fitToIframeWidth: false });
|
|
8543
|
+
}
|
|
8544
|
+
async createEmbedVisualsContext(items) {
|
|
8545
|
+
const embeddingContext = await createEmbeddingContext();
|
|
8546
|
+
await Promise.all(items.map(item => embeddingContext.embedVisual({
|
|
8547
|
+
url: item.url,
|
|
8548
|
+
container: item.container,
|
|
8549
|
+
...(item.height && { height: item.height }),
|
|
8550
|
+
...(item.width && { width: item.width }),
|
|
8551
|
+
}, { scaleToContainer: true, fitToIframeWidth: false })));
|
|
8552
|
+
}
|
|
8535
8553
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: Shared, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8536
8554
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: Shared, providedIn: 'root' });
|
|
8537
8555
|
}
|