Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ng-web-apis/canvas

Package Overview
Dependencies
Maintainers
0
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ng-web-apis/canvas - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

10

contexts/canvas-2d.d.ts
import * as i0 from "@angular/core";
export declare class Canvas2dDirective {
export declare class WaCanvas2d {
private readonly context;
private readonly method;
constructor(_opaque: string | null, _desynchronized: string | null);
static ɵfac: i0.ɵɵFactoryDeclaration<Canvas2dDirective, [{ attribute: "opaque"; }, { attribute: "desynchronized"; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<Canvas2dDirective, "canvas[waCanvas2d]", never, {}, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvas2d, [{ attribute: "opaque"; }, { attribute: "desynchronized"; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvas2d, "canvas[waCanvas2d]", never, {}, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvas2d}
*/
export declare const Canvas2dDirective: typeof WaCanvas2d;
import { QueryList } from '@angular/core';
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class ClipPathComponent {
export declare class WaCanvasClipPath {
readonly pathSteps: QueryList<CanvasMethod>;
static ɵfac: i0.ɵɵFactoryDeclaration<ClipPathComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ClipPathComponent, "canvas-clip-path", never, {}, {}, ["pathSteps"], ["*"], true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasClipPath, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<WaCanvasClipPath, "canvas-clip-path", never, {}, {}, ["pathSteps"], ["*"], true, never>;
}
/**
* @deprecated: use {@link WaCanvasClipPath}
*/
export declare const ClipPathComponent: typeof WaCanvasClipPath;
import * as i0 from "@angular/core";
export declare class DrawImageDirective {
export declare class WaCanvasDrawImage {
private readonly method;

@@ -14,4 +14,8 @@ image?: CanvasImageSource;

constructor();
static ɵfac: i0.ɵɵFactoryDeclaration<DrawImageDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<DrawImageDirective, "canvas-draw-image", never, { "image": { "alias": "image"; "required": false; }; "dX": { "alias": "dX"; "required": false; }; "dY": { "alias": "dY"; "required": false; }; "dWidth": { "alias": "dWidth"; "required": false; }; "dHeight": { "alias": "dHeight"; "required": false; }; "sX": { "alias": "sX"; "required": false; }; "sY": { "alias": "sY"; "required": false; }; "sWidth": { "alias": "sWidth"; "required": false; }; "sHeight": { "alias": "sHeight"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasDrawImage, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasDrawImage, "canvas-draw-image", never, { "image": { "alias": "image"; "required": false; }; "dX": { "alias": "dX"; "required": false; }; "dY": { "alias": "dY"; "required": false; }; "dWidth": { "alias": "dWidth"; "required": false; }; "dHeight": { "alias": "dHeight"; "required": false; }; "sX": { "alias": "sX"; "required": false; }; "sY": { "alias": "sY"; "required": false; }; "sWidth": { "alias": "sWidth"; "required": false; }; "sHeight": { "alias": "sHeight"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasDrawImage}
*/
export declare const DrawImageDirective: typeof WaCanvasDrawImage;
import * as i0 from "@angular/core";
export declare class Path2dDirective {
export declare class WaCanvasPath2d {
private readonly method;

@@ -7,4 +7,8 @@ path: Path2D;

constructor();
static ɵfac: i0.ɵɵFactoryDeclaration<Path2dDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<Path2dDirective, "canvas-path[path]", never, { "path": { "alias": "path"; "required": false; }; "fillRule": { "alias": "fillRule"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasPath2d, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasPath2d, "canvas-path[path]", never, { "path": { "alias": "path"; "required": false; }; "fillRule": { "alias": "fillRule"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasPath2d}
*/
export declare const Path2dDirective: typeof WaCanvasPath2d;
import * as i0 from "@angular/core";
export declare class PathDirective {
export declare class WaCanvasPath {
private readonly pathSteps;

@@ -8,4 +8,8 @@ private readonly method;

constructor();
static ɵfac: i0.ɵɵFactoryDeclaration<PathDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<PathDirective, "canvas-path:not([path])", never, { "closed": { "alias": "closed"; "required": false; }; "fillRule": { "alias": "fillRule"; "required": false; }; }, {}, ["pathSteps"], never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasPath, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasPath, "canvas-path:not([path])", never, { "closed": { "alias": "closed"; "required": false; }; "fillRule": { "alias": "fillRule"; "required": false; }; }, {}, ["pathSteps"], never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasPath}
*/
export declare const PathDirective: typeof WaCanvasPath;
import * as i0 from "@angular/core";
export declare class TextDirective {
export declare class WaCanvasText {
private readonly method;

@@ -9,4 +9,8 @@ text: string;

constructor();
static ɵfac: i0.ɵɵFactoryDeclaration<TextDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<TextDirective, "canvas-text", never, { "text": { "alias": "text"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasText, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasText, "canvas-text", never, { "text": { "alias": "text"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasText}
*/
export declare const TextDirective: typeof WaCanvasText;

@@ -1,34 +0,24 @@

import * as i0 from "@angular/core";
import * as i1 from "./contexts/canvas-2d";
import * as i2 from "./methods/clip-path";
import * as i3 from "./methods/draw-image";
import * as i4 from "./methods/path";
import * as i5 from "./methods/path-2d";
import * as i6 from "./methods/text";
import * as i7 from "./path/arc";
import * as i8 from "./path/arc-to";
import * as i9 from "./path/bezier-curve-to";
import * as i10 from "./path/ellipse";
import * as i11 from "./path/line-to";
import * as i12 from "./path/move-to";
import * as i13 from "./path/quadratic-curve-to";
import * as i14 from "./path/rect";
import * as i15 from "./properties/clip";
import * as i16 from "./properties/compositing";
import * as i17 from "./properties/fill-stroke-styles";
import * as i18 from "./properties/filter";
import * as i19 from "./properties/image-smoothing";
import * as i20 from "./properties/path-drawing-styles";
import * as i21 from "./properties/shadow-styles";
import * as i22 from "./properties/text-drawing-styles";
import * as i23 from "./properties/transform";
import * as i24 from "./pipes/gradient.pipe";
import * as i25 from "./pipes/path.pipe";
import * as i26 from "./pipes/pattern.pipe";
import * as i27 from "./pipes/rad.pipe";
import * as i28 from "./pipes/transform.pipe";
export declare class CanvasModule {
static ɵfac: i0.ɵɵFactoryDeclaration<CanvasModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<CanvasModule, never, [typeof i1.Canvas2dDirective, typeof i2.ClipPathComponent, typeof i3.DrawImageDirective, typeof i4.PathDirective, typeof i5.Path2dDirective, typeof i6.TextDirective, typeof i7.ArcDirective, typeof i8.ArcToDirective, typeof i9.BezierCurveToDirective, typeof i10.EllipseDirective, typeof i11.LineToDirective, typeof i12.MoveToDirective, typeof i13.QuadraticCurveToDirective, typeof i14.RectDirective, typeof i15.ClipDirective, typeof i16.CompositingDirective, typeof i17.FillStrokeStylesDirective, typeof i18.FilterDirective, typeof i19.ImageSmoothingDirective, typeof i20.PathDrawingStylesDirective, typeof i21.ShadowStylesDirective, typeof i22.TextDrawingStylesDirective, typeof i23.TransformDirective, typeof i24.GradientPipe, typeof i25.PathPipe, typeof i26.PatternPipe, typeof i27.RadPipe, typeof i28.TransformPipe], [typeof i1.Canvas2dDirective, typeof i2.ClipPathComponent, typeof i3.DrawImageDirective, typeof i4.PathDirective, typeof i5.Path2dDirective, typeof i6.TextDirective, typeof i7.ArcDirective, typeof i8.ArcToDirective, typeof i9.BezierCurveToDirective, typeof i10.EllipseDirective, typeof i11.LineToDirective, typeof i12.MoveToDirective, typeof i13.QuadraticCurveToDirective, typeof i14.RectDirective, typeof i15.ClipDirective, typeof i16.CompositingDirective, typeof i17.FillStrokeStylesDirective, typeof i18.FilterDirective, typeof i19.ImageSmoothingDirective, typeof i20.PathDrawingStylesDirective, typeof i21.ShadowStylesDirective, typeof i22.TextDrawingStylesDirective, typeof i24.GradientPipe, typeof i25.PathPipe, typeof i26.PatternPipe, typeof i27.RadPipe, typeof i23.TransformDirective, typeof i28.TransformPipe]>;
static ɵinj: i0.ɵɵInjectorDeclaration<CanvasModule>;
}
import { WaCanvas2d } from './contexts/canvas-2d';
import { WaCanvasClipPath } from './methods/clip-path';
import { WaCanvasDrawImage } from './methods/draw-image';
import { WaCanvasPath } from './methods/path';
import { WaCanvasPath2d } from './methods/path-2d';
import { WaCanvasText } from './methods/text';
import { WaCanvasArcTo } from './path/arc-to';
import { WaCanvasLineTo } from './path/line-to';
import { WaCanvasGradientPipe } from './pipes/gradient.pipe';
import { WaCanvasPathPipe } from './pipes/path.pipe';
import { WaCanvasPatternPipe } from './pipes/pattern.pipe';
import { WaCanvasRadPipe } from './pipes/rad.pipe';
import { WaCanvasTransformPipe } from './pipes/transform.pipe';
import { WaCanvasClip } from './properties/clip';
import { WaCanvasCompositing } from './properties/compositing';
import { WaCanvasFillStrokeStyles } from './properties/fill-stroke-styles';
import { WaCanvasFilter } from './properties/filter';
import { WaCanvasImageSmoothing } from './properties/image-smoothing';
import { WaCanvasPathDrawingStyles } from './properties/path-drawing-styles';
import { WaCanvasShadowStyles } from './properties/shadow-styles';
import { WaCanvasTextDrawingStyles } from './properties/text-drawing-styles';
import { WaCanvasTransform } from './properties/transform';
export declare const WaCanvas: (typeof WaCanvas2d | typeof WaCanvasClipPath | typeof WaCanvasDrawImage | typeof WaCanvasPath | typeof WaCanvasPath2d | typeof WaCanvasText | typeof WaCanvasArcTo | typeof WaCanvasLineTo | typeof WaCanvasGradientPipe | typeof WaCanvasPathPipe | typeof WaCanvasPatternPipe | typeof WaCanvasRadPipe | typeof WaCanvasTransformPipe | typeof WaCanvasClip | typeof WaCanvasCompositing | typeof WaCanvasFillStrokeStyles | typeof WaCanvasFilter | typeof WaCanvasImageSmoothing | typeof WaCanvasPathDrawingStyles | typeof WaCanvasShadowStyles | typeof WaCanvasTextDrawingStyles | typeof WaCanvasTransform)[];
export declare const CanvasModule: (typeof WaCanvas2d | typeof WaCanvasClipPath | typeof WaCanvasDrawImage | typeof WaCanvasPath | typeof WaCanvasPath2d | typeof WaCanvasText | typeof WaCanvasArcTo | typeof WaCanvasLineTo | typeof WaCanvasGradientPipe | typeof WaCanvasPathPipe | typeof WaCanvasPatternPipe | typeof WaCanvasRadPipe | typeof WaCanvasTransformPipe | typeof WaCanvasClip | typeof WaCanvasCompositing | typeof WaCanvasFillStrokeStyles | typeof WaCanvasFilter | typeof WaCanvasImageSmoothing | typeof WaCanvasPathDrawingStyles | typeof WaCanvasShadowStyles | typeof WaCanvasTextDrawingStyles | typeof WaCanvasTransform)[];
{
"name": "@ng-web-apis/canvas",
"version": "4.0.1",
"version": "4.1.0",
"description": "A library for declarative use of Canvas API with Angular",

@@ -5,0 +5,0 @@ "keywords": [

import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class ArcToDirective implements CanvasMethod {
export declare class WaCanvasArcTo implements CanvasMethod {
x1: number;

@@ -10,4 +10,8 @@ y1: number;

call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ArcToDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ArcToDirective, "canvas-arc-to", never, { "x1": { "alias": "x1"; "required": false; }; "y1": { "alias": "y1"; "required": false; }; "x2": { "alias": "x2"; "required": false; }; "y2": { "alias": "y2"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasArcTo, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasArcTo, "canvas-arc-to", never, { "x1": { "alias": "x1"; "required": false; }; "y1": { "alias": "y1"; "required": false; }; "x2": { "alias": "x2"; "required": false; }; "y2": { "alias": "y2"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasArcTo}
*/
export declare const ArcToDirective: typeof WaCanvasArcTo;
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class ArcDirective implements CanvasMethod {
export declare class WaCanvasArc implements CanvasMethod {
x: number;

@@ -11,4 +11,8 @@ y: number;

call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ArcDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ArcDirective, "canvas-arc", never, { "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; "startAngle": { "alias": "startAngle"; "required": false; }; "endAngle": { "alias": "endAngle"; "required": false; }; "anticlockwise": { "alias": "anticlockwise"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasArc, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasArc, "canvas-arc", never, { "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; "startAngle": { "alias": "startAngle"; "required": false; }; "endAngle": { "alias": "endAngle"; "required": false; }; "anticlockwise": { "alias": "anticlockwise"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasArc}
*/
export declare const ArcDirective: typeof WaCanvasArc;
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class BezierCurveToDirective implements CanvasMethod {
export declare class WaCanvasBezierCurveTo implements CanvasMethod {
cp1x: number;

@@ -11,4 +11,8 @@ cp1y: number;

call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<BezierCurveToDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<BezierCurveToDirective, "canvas-bezier-curve-to", never, { "cp1x": { "alias": "cp1x"; "required": false; }; "cp1y": { "alias": "cp1y"; "required": false; }; "cp2x": { "alias": "cp2x"; "required": false; }; "cp2y": { "alias": "cp2y"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasBezierCurveTo, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasBezierCurveTo, "canvas-bezier-curve-to", never, { "cp1x": { "alias": "cp1x"; "required": false; }; "cp1y": { "alias": "cp1y"; "required": false; }; "cp2x": { "alias": "cp2x"; "required": false; }; "cp2y": { "alias": "cp2y"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated use {@link WaCanvasBezierCurveTo}
*/
export declare const BezierCurveToDirective: typeof WaCanvasBezierCurveTo;
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class EllipseDirective implements CanvasMethod {
export declare class WaCanvasEllipse implements CanvasMethod {
x: number;

@@ -13,4 +13,8 @@ y: number;

call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<EllipseDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<EllipseDirective, "canvas-ellipse", never, { "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "radiusX": { "alias": "radiusX"; "required": false; }; "radiusY": { "alias": "radiusY"; "required": false; }; "rotation": { "alias": "rotation"; "required": false; }; "startAngle": { "alias": "startAngle"; "required": false; }; "endAngle": { "alias": "endAngle"; "required": false; }; "anticlockwise": { "alias": "anticlockwise"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasEllipse, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasEllipse, "canvas-ellipse", never, { "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "radiusX": { "alias": "radiusX"; "required": false; }; "radiusY": { "alias": "radiusY"; "required": false; }; "rotation": { "alias": "rotation"; "required": false; }; "startAngle": { "alias": "startAngle"; "required": false; }; "endAngle": { "alias": "endAngle"; "required": false; }; "anticlockwise": { "alias": "anticlockwise"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasEllipse}
*/
export declare const EllipseDirective: typeof WaCanvasEllipse;
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class LineToDirective implements CanvasMethod {
export declare class WaCanvasLineTo implements CanvasMethod {
x: number;
y: number;
call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<LineToDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<LineToDirective, "canvas-line-to", never, { "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasLineTo, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasLineTo, "canvas-line-to", never, { "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasLineTo}
*/
export declare const LineToDirective: typeof WaCanvasLineTo;
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class MoveToDirective implements CanvasMethod {
export declare class WaCanvasMoveTo implements CanvasMethod {
x: number;
y: number;
call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<MoveToDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<MoveToDirective, "canvas-move-to", never, { "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasMoveTo, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasMoveTo, "canvas-move-to", never, { "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasMoveTo}
*/
export declare const MoveToDirective: typeof WaCanvasMoveTo;
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class QuadraticCurveToDirective implements CanvasMethod {
export declare class WaCanvasQuadraticCurveTo implements CanvasMethod {
cpx: number;

@@ -9,4 +9,8 @@ cpy: number;

call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<QuadraticCurveToDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<QuadraticCurveToDirective, "canvas-quadratic-curve-to", never, { "cpx": { "alias": "cpx"; "required": false; }; "cpy": { "alias": "cpy"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasQuadraticCurveTo, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasQuadraticCurveTo, "canvas-quadratic-curve-to", never, { "cpx": { "alias": "cpx"; "required": false; }; "cpy": { "alias": "cpy"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasQuadraticCurveTo}
*/
export declare const QuadraticCurveToDirective: typeof WaCanvasQuadraticCurveTo;
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class RectDirective implements CanvasMethod {
export declare class WaCanvasRect implements CanvasMethod {
x: number;

@@ -9,4 +9,8 @@ y: number;

call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<RectDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<RectDirective, "canvas-rect", never, { "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasRect, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasRect, "canvas-rect", never, { "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasRect}
*/
export declare const RectDirective: typeof WaCanvasRect;
import type { PipeTransform } from '@angular/core';
import * as i0 from "@angular/core";
export declare class GradientPipe implements PipeTransform {
export declare class WaCanvasGradientPipe implements PipeTransform {
private readonly context;
transform(stops: Map<number, string>, x0: number, y0: number, x1: number, y1: number): CanvasGradient;
transform(stops: Map<number, string>, x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
static ɵfac: i0.ɵɵFactoryDeclaration<GradientPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<GradientPipe, "gradient", true>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasGradientPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<WaCanvasGradientPipe, "gradient", true>;
}
/**
* @deprecated: use {@link WaCanvasGradientPipe}
*/
export declare const GradientPipe: typeof WaCanvasGradientPipe;
import type { PipeTransform } from '@angular/core';
import * as i0 from "@angular/core";
export declare class PathPipe implements PipeTransform {
export declare class WaCanvasPathPipe implements PipeTransform {
transform(path: string): Path2D;
static ɵfac: i0.ɵɵFactoryDeclaration<PathPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<PathPipe, "path", true>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasPathPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<WaCanvasPathPipe, "path", true>;
}
/**
* @deprecated: use {@link WaCanvasPathPipe}
*/
export declare const PathPipe: typeof WaCanvasPathPipe;
import type { PipeTransform } from '@angular/core';
import * as i0 from "@angular/core";
export declare class PatternPipe implements PipeTransform {
export declare class WaCanvasPatternPipe implements PipeTransform {
private readonly context;
transform(image: CanvasImageSource, repetition?: string): CanvasPattern;
static ɵfac: i0.ɵɵFactoryDeclaration<PatternPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<PatternPipe, "pattern", true>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasPatternPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<WaCanvasPatternPipe, "pattern", true>;
}
/**
* @deprecated: use {@link WaCanvasPatternPipe}
*/
export declare const PatternPipe: typeof WaCanvasPatternPipe;
import type { PipeTransform } from '@angular/core';
import * as i0 from "@angular/core";
export declare class RadPipe implements PipeTransform {
export declare class WaCanvasRadPipe implements PipeTransform {
transform(input: number): number;
static ɵfac: i0.ɵɵFactoryDeclaration<RadPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<RadPipe, "rad", true>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasRadPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<WaCanvasRadPipe, "rad", true>;
}
/**
* @deprecated: use {@link WaCanvasRadPipe}
*/
export declare const RadPipe: typeof WaCanvasRadPipe;
import type { PipeTransform } from '@angular/core';
import * as i0 from "@angular/core";
export declare class TransformPipe implements PipeTransform {
export declare class WaCanvasTransformPipe implements PipeTransform {
transform(value: string): DOMMatrix;
static ɵfac: i0.ɵɵFactoryDeclaration<TransformPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<TransformPipe, "transform", true>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasTransformPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<WaCanvasTransformPipe, "transform", true>;
}
/**
* @deprecated: use {@link WaCanvasTransformPipe}
*/
export declare const TransformPipe: typeof WaCanvasTransformPipe;
import type { CanvasMethod } from '../interfaces/canvas-method';
import { ClipPathComponent } from '../methods/clip-path';
import { WaCanvasClipPath } from '../methods/clip-path';
import * as i0 from "@angular/core";
export declare class ClipDirective implements CanvasMethod {
clip: ClipPathComponent | Path2D;
export declare class WaCanvasClip implements CanvasMethod {
clip: Path2D | WaCanvasClipPath;
clipFillRule?: CanvasFillRule;
call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ClipDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ClipDirective, "canvas-draw-image[clip],canvas-draw-image[clipFillRule],canvas-path[clip],canvas-path[clipFillRule],canvas-text[clip],canvas-text[clipFillRule]", never, { "clip": { "alias": "clip"; "required": false; }; "clipFillRule": { "alias": "clipFillRule"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasClip, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasClip, "canvas-draw-image[clip],canvas-draw-image[clipFillRule],canvas-path[clip],canvas-path[clipFillRule],canvas-text[clip],canvas-text[clipFillRule]", never, { "clip": { "alias": "clip"; "required": false; }; "clipFillRule": { "alias": "clipFillRule"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasClip}
*/
export declare const ClipDirective: typeof WaCanvasClip;
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class CompositingDirective implements CanvasMethod, CanvasCompositing {
export declare class WaCanvasCompositing implements CanvasMethod, CanvasCompositing {
globalAlpha: number;
globalCompositeOperation: GlobalCompositeOperation;
call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<CompositingDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CompositingDirective, "canvas-draw-image[globalAlpha],canvas-draw-image[globalCompositeOperation],canvas-path[globalAlpha],canvas-path[globalCompositeOperation],canvas-text[globalAlpha],canvas-text[globalCompositeOperation]", never, { "globalAlpha": { "alias": "globalAlpha"; "required": false; }; "globalCompositeOperation": { "alias": "globalCompositeOperation"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasCompositing, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasCompositing, "canvas-draw-image[globalAlpha],canvas-draw-image[globalCompositeOperation],canvas-path[globalAlpha],canvas-path[globalCompositeOperation],canvas-text[globalAlpha],canvas-text[globalCompositeOperation]", never, { "globalAlpha": { "alias": "globalAlpha"; "required": false; }; "globalCompositeOperation": { "alias": "globalCompositeOperation"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasCompositing}
*/
export declare const CompositingDirective: typeof WaCanvasCompositing;
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class FillStrokeStylesDirective implements CanvasMethod {
export declare class WaCanvasFillStrokeStyles implements CanvasMethod {
fillStyle: CanvasGradient | CanvasPattern | string;
strokeStyle: CanvasGradient | CanvasPattern | string;
call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FillStrokeStylesDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<FillStrokeStylesDirective, "canvas-path[fillStyle],canvas-path[strokeStyle],canvas-text[fillStyle],canvas-text[strokeStyle]", never, { "fillStyle": { "alias": "fillStyle"; "required": false; }; "strokeStyle": { "alias": "strokeStyle"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasFillStrokeStyles, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasFillStrokeStyles, "canvas-path[fillStyle],canvas-path[strokeStyle],canvas-text[fillStyle],canvas-text[strokeStyle]", never, { "fillStyle": { "alias": "fillStyle"; "required": false; }; "strokeStyle": { "alias": "strokeStyle"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasFillStrokeStyles}
*/
export declare const FillStrokeStylesDirective: typeof WaCanvasFillStrokeStyles;
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class FilterDirective implements CanvasMethod, CanvasFilters {
export declare class WaCanvasFilter implements CanvasMethod, CanvasFilters {
filter: string;
call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FilterDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<FilterDirective, "canvas-draw-image[filter],canvas-path[filter],canvas-text[filter]", never, { "filter": { "alias": "filter"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasFilter, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasFilter, "canvas-draw-image[filter],canvas-path[filter],canvas-text[filter]", never, { "filter": { "alias": "filter"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasFilter}
*/
export declare const FilterDirective: typeof WaCanvasFilter;
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class ImageSmoothingDirective implements CanvasMethod, CanvasImageSmoothing {
export declare class WaCanvasImageSmoothing implements CanvasMethod, CanvasImageSmoothing {
imageSmoothingEnabled: boolean;
imageSmoothingQuality: ImageSmoothingQuality;
call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ImageSmoothingDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ImageSmoothingDirective, "canvas-draw-image[imageSmoothingEnabled],canvas-draw-image[imageSmoothingQuality],canvas-path[imageSmoothingEnabled],canvas-path[imageSmoothingQuality],canvas-text[imageSmoothingEnabled],canvas-text[imageSmoothingQuality]", never, { "imageSmoothingEnabled": { "alias": "imageSmoothingEnabled"; "required": false; }; "imageSmoothingQuality": { "alias": "imageSmoothingQuality"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasImageSmoothing, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasImageSmoothing, "canvas-draw-image[imageSmoothingEnabled],canvas-draw-image[imageSmoothingQuality],canvas-path[imageSmoothingEnabled],canvas-path[imageSmoothingQuality],canvas-text[imageSmoothingEnabled],canvas-text[imageSmoothingQuality]", never, { "imageSmoothingEnabled": { "alias": "imageSmoothingEnabled"; "required": false; }; "imageSmoothingQuality": { "alias": "imageSmoothingQuality"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasImageSmoothing}
*/
export declare const ImageSmoothingDirective: typeof WaCanvasImageSmoothing;
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class PathDrawingStylesDirective implements CanvasMethod, Omit<CanvasPathDrawingStyles, 'getLineDash' | 'setLineDash'> {
export declare class WaCanvasPathDrawingStyles implements CanvasMethod, Omit<CanvasPathDrawingStyles, 'getLineDash' | 'setLineDash'> {
lineCap: CanvasLineCap;

@@ -11,4 +11,8 @@ lineDashOffset: number;

call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<PathDrawingStylesDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<PathDrawingStylesDirective, "canvas-path[lineCap],canvas-path[lineDashOffset],canvas-path[lineJoin],canvas-path[lineWidth],canvas-path[lineDash],canvas-path[miterLimit],canvas-text[lineCap],canvas-text[lineDashOffset],canvas-text[lineJoin],canvas-text[lineWidth],canvas-text[lineDash],canvas-text[miterLimit]", never, { "lineCap": { "alias": "lineCap"; "required": false; }; "lineDashOffset": { "alias": "lineDashOffset"; "required": false; }; "lineJoin": { "alias": "lineJoin"; "required": false; }; "lineWidth": { "alias": "lineWidth"; "required": false; }; "lineDash": { "alias": "lineDash"; "required": false; }; "miterLimit": { "alias": "miterLimit"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasPathDrawingStyles, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasPathDrawingStyles, "canvas-path[lineCap],canvas-path[lineDashOffset],canvas-path[lineJoin],canvas-path[lineWidth],canvas-path[lineDash],canvas-path[miterLimit],canvas-text[lineCap],canvas-text[lineDashOffset],canvas-text[lineJoin],canvas-text[lineWidth],canvas-text[lineDash],canvas-text[miterLimit]", never, { "lineCap": { "alias": "lineCap"; "required": false; }; "lineDashOffset": { "alias": "lineDashOffset"; "required": false; }; "lineJoin": { "alias": "lineJoin"; "required": false; }; "lineWidth": { "alias": "lineWidth"; "required": false; }; "lineDash": { "alias": "lineDash"; "required": false; }; "miterLimit": { "alias": "miterLimit"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasPathDrawingStyles}
*/
export declare const PathDrawingStylesDirective: typeof WaCanvasPathDrawingStyles;
import * as i0 from "@angular/core";
export declare class ShadowStylesDirective implements CanvasShadowStyles {
export declare class WaCanvasShadowStyles implements CanvasShadowStyles {
shadowBlur: number;

@@ -8,4 +8,8 @@ shadowColor: string;

call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ShadowStylesDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ShadowStylesDirective, "canvas-draw-image[shadowBlur],canvas-draw-image[shadowColor],canvas-draw-image[shadowOffsetX],canvas-draw-image[shadowOffsetY],canvas-path[shadowBlur],canvas-path[shadowColor],canvas-path[shadowOffsetX],canvas-path[shadowOffsetY],canvas-text[shadowBlur],canvas-text[shadowColor],canvas-text[shadowOffsetX],canvas-text[shadowOffsetY]", never, { "shadowBlur": { "alias": "shadowBlur"; "required": false; }; "shadowColor": { "alias": "shadowColor"; "required": false; }; "shadowOffsetX": { "alias": "shadowOffsetX"; "required": false; }; "shadowOffsetY": { "alias": "shadowOffsetY"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasShadowStyles, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasShadowStyles, "canvas-draw-image[shadowBlur],canvas-draw-image[shadowColor],canvas-draw-image[shadowOffsetX],canvas-draw-image[shadowOffsetY],canvas-path[shadowBlur],canvas-path[shadowColor],canvas-path[shadowOffsetX],canvas-path[shadowOffsetY],canvas-text[shadowBlur],canvas-text[shadowColor],canvas-text[shadowOffsetX],canvas-text[shadowOffsetY]", never, { "shadowBlur": { "alias": "shadowBlur"; "required": false; }; "shadowColor": { "alias": "shadowColor"; "required": false; }; "shadowOffsetX": { "alias": "shadowOffsetX"; "required": false; }; "shadowOffsetY": { "alias": "shadowOffsetY"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasShadowStyles}
*/
export declare const ShadowStylesDirective: typeof WaCanvasShadowStyles;
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class TextDrawingStylesDirective implements CanvasMethod, CanvasTextDrawingStyles {
export declare class WaCanvasTextDrawingStyles implements CanvasMethod, CanvasTextDrawingStyles {
direction: CanvasDirection;

@@ -10,4 +10,8 @@ font: string;

call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<TextDrawingStylesDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<TextDrawingStylesDirective, "canvas-text[direction],canvas-text[font],canvas-text[textAlign],canvas-text[textBaseline]", never, { "direction": { "alias": "direction"; "required": false; }; "font": { "alias": "font"; "required": false; }; "textAlign": { "alias": "textAlign"; "required": false; }; "fontKerning": { "alias": "fontKerning"; "required": false; }; "textBaseline": { "alias": "textBaseline"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasTextDrawingStyles, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasTextDrawingStyles, "canvas-text[direction],canvas-text[font],canvas-text[textAlign],canvas-text[textBaseline]", never, { "direction": { "alias": "direction"; "required": false; }; "font": { "alias": "font"; "required": false; }; "textAlign": { "alias": "textAlign"; "required": false; }; "fontKerning": { "alias": "fontKerning"; "required": false; }; "textBaseline": { "alias": "textBaseline"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasTextDrawingStyles}
*/
export declare const TextDrawingStylesDirective: typeof WaCanvasTextDrawingStyles;
import type { CanvasMethod } from '../interfaces/canvas-method';
import * as i0 from "@angular/core";
export declare class TransformDirective implements CanvasMethod {
export declare class WaCanvasTransform implements CanvasMethod {
private readonly parent;
transform: DOMMatrix;
call(context: CanvasRenderingContext2D): void;
static ɵfac: i0.ɵɵFactoryDeclaration<TransformDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<TransformDirective, "canvas[transform],canvas-draw-image[transform],canvas-path[transform],canvas-text[transform]", never, { "transform": { "alias": "transform"; "required": false; }; }, {}, never, never, true, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaCanvasTransform, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<WaCanvasTransform, "canvas[transform],canvas-draw-image[transform],canvas-path[transform],canvas-text[transform]", never, { "transform": { "alias": "transform"; "required": false; }; }, {}, never, never, true, never>;
}
/**
* @deprecated: use {@link WaCanvasTransform}
*/
export declare const TransformDirective: typeof WaCanvasTransform;

@@ -5,3 +5,3 @@ import type { OnDestroy } from '@angular/core';

import * as i0 from "@angular/core";
export declare class DrawService implements OnDestroy, CanvasMethod {
export declare class WaDrawService implements OnDestroy, CanvasMethod {
private readonly subscription;

@@ -11,4 +11,8 @@ constructor();

ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<DrawService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<DrawService>;
static ɵfac: i0.ɵɵFactoryDeclaration<WaDrawService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<WaDrawService>;
}
/**
* @deprecated: use {@link WaDrawService}
*/
export declare const DrawService: typeof WaDrawService;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc