@mathstack/viz 0.0.1-beta.13 → 0.0.1-beta.14
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/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mathstack/viz",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.0.1-beta.
|
|
4
|
+
"version": "0.0.1-beta.14",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/cdk": ">=19.0.0 <23.0.0",
|
|
7
7
|
"@angular/common": ">=19.0.0 <23.0.0",
|
|
8
8
|
"@angular/core": ">=19.0.0 <23.0.0",
|
|
9
|
-
"@mathstack/app-kit": "
|
|
9
|
+
"@mathstack/app-kit": "2.3.1",
|
|
10
10
|
"csstype": "^3.1.3",
|
|
11
11
|
"d3": "^7.6.1",
|
|
12
12
|
"file-saver": "^2.0.5",
|
package/types/mathstack-viz.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import * as i2 from '@angular/cdk/overlay';
|
|
|
10
10
|
import { ConnectedPosition, OverlayPositionBuilder, FlexibleConnectedPositionStrategy, OverlayRef, GlobalPositionStrategy } from '@angular/cdk/overlay';
|
|
11
11
|
import * as CSSType from 'csstype';
|
|
12
12
|
import { GeoJsonProperties, Geometry, MultiPolygon, Polygon, Feature, GeometryObject } from 'geojson';
|
|
13
|
-
import * as domToImage from '
|
|
13
|
+
import * as domToImage from '@zumer/snapdom';
|
|
14
14
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
15
15
|
import * as i1 from '@angular/common';
|
|
16
16
|
|
|
@@ -4712,12 +4712,6 @@ interface ImageDownloadOptions {
|
|
|
4712
4712
|
containerNode: HTMLElement;
|
|
4713
4713
|
fileName: string;
|
|
4714
4714
|
filter: (domNode: HTMLElement) => boolean;
|
|
4715
|
-
/**
|
|
4716
|
-
* Disables external fonts from being read in
|
|
4717
|
-
* Supply with custom css fallback; or set to undefined to read external fonts
|
|
4718
|
-
* (will oftentimes get security errors)
|
|
4719
|
-
*/
|
|
4720
|
-
fontEmbedCSS: string;
|
|
4721
4715
|
imageType: string;
|
|
4722
4716
|
quality: number;
|
|
4723
4717
|
}
|
|
@@ -4727,7 +4721,6 @@ declare class VicJpegImageConfig implements ImageDownloadOptions {
|
|
|
4727
4721
|
containerNode: HTMLElement;
|
|
4728
4722
|
fileName: string;
|
|
4729
4723
|
filter: (domNode: HTMLElement) => boolean;
|
|
4730
|
-
fontEmbedCSS: string;
|
|
4731
4724
|
imageType: string;
|
|
4732
4725
|
quality: number;
|
|
4733
4726
|
constructor(options?: Partial<ImageDownloadOptions>);
|
|
@@ -4737,7 +4730,6 @@ declare class VicPngImageConfig implements ImageDownloadOptions {
|
|
|
4737
4730
|
containerNode: HTMLElement;
|
|
4738
4731
|
fileName: string;
|
|
4739
4732
|
filter: (domNode: HTMLElement) => boolean;
|
|
4740
|
-
fontEmbedCSS: string;
|
|
4741
4733
|
imageType: string;
|
|
4742
4734
|
quality: number;
|
|
4743
4735
|
constructor(options?: Partial<ImageDownloadOptions>);
|
|
@@ -4747,7 +4739,6 @@ declare class VicSvgImageConfig implements ImageDownloadOptions {
|
|
|
4747
4739
|
containerNode: HTMLElement;
|
|
4748
4740
|
fileName: string;
|
|
4749
4741
|
filter: (domNode: HTMLElement) => boolean;
|
|
4750
|
-
fontEmbedCSS: string;
|
|
4751
4742
|
imageType: string;
|
|
4752
4743
|
quality: number;
|
|
4753
4744
|
constructor(options?: Partial<ImageDownloadOptions>);
|
|
@@ -4762,14 +4753,7 @@ declare enum VicImage {
|
|
|
4762
4753
|
|
|
4763
4754
|
declare class VicImageDownloadService {
|
|
4764
4755
|
domToImage: typeof domToImage;
|
|
4765
|
-
/**
|
|
4766
|
-
* @param imageConfig
|
|
4767
|
-
* @returns fontEmbedCSS -- scans stylesheets for font files and base64 encodes them,
|
|
4768
|
-
* reuse this value in imageConfig for subsequent downloads to avoid
|
|
4769
|
-
* re-encoding fonts (slight performance boost)
|
|
4770
|
-
*/
|
|
4771
4756
|
downloadImage(imageConfig: VicJpegImageConfig | VicPngImageConfig | VicSvgImageConfig): Promise<string | void>;
|
|
4772
|
-
createLinkAndClick(dataUrl: string, fileName: string): void;
|
|
4773
4757
|
static ɵfac: i0.ɵɵFactoryDeclaration<VicImageDownloadService, never>;
|
|
4774
4758
|
static ɵprov: i0.ɵɵInjectableDeclaration<VicImageDownloadService>;
|
|
4775
4759
|
}
|