@mathstack/viz 2.3.0 → 2.3.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/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mathstack/viz",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "2.3.
|
|
4
|
+
"version": "2.3.1",
|
|
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": "2.3.
|
|
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,6 @@ 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 'html-to-image';
|
|
14
13
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
15
14
|
import * as i1 from '@angular/common';
|
|
16
15
|
|
|
@@ -4711,13 +4710,7 @@ interface ImageDownloadOptions {
|
|
|
4711
4710
|
backgroundColor: string;
|
|
4712
4711
|
containerNode: HTMLElement;
|
|
4713
4712
|
fileName: string;
|
|
4714
|
-
filter: (domNode:
|
|
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;
|
|
4713
|
+
filter: (domNode: Element) => boolean;
|
|
4721
4714
|
imageType: string;
|
|
4722
4715
|
quality: number;
|
|
4723
4716
|
}
|
|
@@ -4726,8 +4719,7 @@ declare class VicJpegImageConfig implements ImageDownloadOptions {
|
|
|
4726
4719
|
backgroundColor: string;
|
|
4727
4720
|
containerNode: HTMLElement;
|
|
4728
4721
|
fileName: string;
|
|
4729
|
-
filter: (domNode:
|
|
4730
|
-
fontEmbedCSS: string;
|
|
4722
|
+
filter: (domNode: Element) => boolean;
|
|
4731
4723
|
imageType: string;
|
|
4732
4724
|
quality: number;
|
|
4733
4725
|
constructor(options?: Partial<ImageDownloadOptions>);
|
|
@@ -4736,8 +4728,7 @@ declare class VicPngImageConfig implements ImageDownloadOptions {
|
|
|
4736
4728
|
backgroundColor: string;
|
|
4737
4729
|
containerNode: HTMLElement;
|
|
4738
4730
|
fileName: string;
|
|
4739
|
-
filter: (domNode:
|
|
4740
|
-
fontEmbedCSS: string;
|
|
4731
|
+
filter: (domNode: Element) => boolean;
|
|
4741
4732
|
imageType: string;
|
|
4742
4733
|
quality: number;
|
|
4743
4734
|
constructor(options?: Partial<ImageDownloadOptions>);
|
|
@@ -4746,8 +4737,7 @@ declare class VicSvgImageConfig implements ImageDownloadOptions {
|
|
|
4746
4737
|
backgroundColor: string;
|
|
4747
4738
|
containerNode: HTMLElement;
|
|
4748
4739
|
fileName: string;
|
|
4749
|
-
filter: (domNode:
|
|
4750
|
-
fontEmbedCSS: string;
|
|
4740
|
+
filter: (domNode: Element) => boolean;
|
|
4751
4741
|
imageType: string;
|
|
4752
4742
|
quality: number;
|
|
4753
4743
|
constructor(options?: Partial<ImageDownloadOptions>);
|
|
@@ -4761,15 +4751,7 @@ declare enum VicImage {
|
|
|
4761
4751
|
}
|
|
4762
4752
|
|
|
4763
4753
|
declare class VicImageDownloadService {
|
|
4764
|
-
|
|
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
|
-
downloadImage(imageConfig: VicJpegImageConfig | VicPngImageConfig | VicSvgImageConfig): Promise<string | void>;
|
|
4772
|
-
createLinkAndClick(dataUrl: string, fileName: string): void;
|
|
4754
|
+
downloadImage(imageConfig: VicJpegImageConfig | VicPngImageConfig | VicSvgImageConfig): Promise<void>;
|
|
4773
4755
|
static ɵfac: i0.ɵɵFactoryDeclaration<VicImageDownloadService, never>;
|
|
4774
4756
|
static ɵprov: i0.ɵɵInjectableDeclaration<VicImageDownloadService>;
|
|
4775
4757
|
}
|