@leafer/canvas
Advanced tools
+9
-9
| { | ||
| "name": "@leafer/canvas", | ||
| "version": "1.8.0", | ||
| "version": "1.9.0", | ||
| "description": "@leafer/canvas", | ||
@@ -25,13 +25,13 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/file": "1.8.0", | ||
| "@leafer/list": "1.8.0", | ||
| "@leafer/math": "1.8.0", | ||
| "@leafer/data": "1.8.0", | ||
| "@leafer/path": "1.8.0", | ||
| "@leafer/debug": "1.8.0", | ||
| "@leafer/platform": "1.8.0" | ||
| "@leafer/file": "1.9.0", | ||
| "@leafer/list": "1.9.0", | ||
| "@leafer/math": "1.9.0", | ||
| "@leafer/data": "1.9.0", | ||
| "@leafer/path": "1.9.0", | ||
| "@leafer/debug": "1.9.0", | ||
| "@leafer/platform": "1.9.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.8.0" | ||
| "@leafer/interface": "1.9.0" | ||
| } | ||
| } |
+3
-1
| import { ICanvasAttr, ITextMetrics, ICanvasContext2D, IPath2D, IObject, InnerId, IMatrixData, IFunction, IWindingRule, IBlendMode } from '@leafer/interface' | ||
| import { isObject } from '@leafer/data' | ||
| function contextAttr(realName?: string) { | ||
@@ -158,3 +160,3 @@ return (target: Canvas, key: string) => { | ||
| public transform(a: number | IMatrixData, b?: number, c?: number, d?: number, e?: number, f?: number): void { | ||
| if (typeof a === 'object') { | ||
| if (isObject(a)) { | ||
| this.context.transform(a.a, a.b, a.c, a.d, a.e, a.f) | ||
@@ -161,0 +163,0 @@ } else { |
| import { IBounds, ILeaferCanvas, ICanvasStrokeOptions, ILeaferCanvasConfig, IWindingRuleData, IExportOptions, IMatrixData, IBoundsData, IAutoBounds, IScreenSizeData, IResizeEventListener, IMatrixWithBoundsData, IPointData, InnerId, ICanvasManager, IWindingRule, IBlendMode, IExportImageType, IExportFileType, IBlob, ICursorType, ILeaferCanvasView, IRadiusPointData, IObject, IMatrixWithOptionHalfData } from '@leafer/interface' | ||
| import { Bounds, tempBounds, BoundsHelper, MatrixHelper, IncrementId } from '@leafer/math' | ||
| import { Creator, Platform } from '@leafer/platform' | ||
| import { DataHelper } from '@leafer/data' | ||
| import { DataHelper, isUndefined } from '@leafer/data' | ||
@@ -169,4 +169,4 @@ import { Canvas } from './Canvas' | ||
| if (childOptions.strokeJoin) strokeJoin = childOptions.strokeJoin | ||
| if (childOptions.dashPattern !== undefined) dashPattern = childOptions.dashPattern | ||
| if (childOptions.dashOffset !== undefined) dashOffset = childOptions.dashOffset | ||
| if (!isUndefined(childOptions.dashPattern)) dashPattern = childOptions.dashPattern | ||
| if (!isUndefined(childOptions.dashOffset)) dashOffset = childOptions.dashOffset | ||
| if (childOptions.miterLimit) miterLimit = childOptions.miterLimit | ||
@@ -173,0 +173,0 @@ } |
33989
0.13%668
0.15%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated
Updated