@meta2d/core
Advanced tools
Comparing version 1.0.41 to 1.0.42
{ | ||
"name": "@meta2d/core", | ||
"version": "1.0.41", | ||
"version": "1.0.42", | ||
"description": "@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,1 +5,2 @@ export * from './line'; | ||
export * from './smooth'; | ||
export * from './arrow'; |
@@ -5,2 +5,3 @@ export * from './line'; | ||
export * from './smooth'; | ||
export * from './arrow'; | ||
//# sourceMappingURL=index.js.map |
@@ -37,3 +37,3 @@ var __read = (this && this.__read) || function (o, n) { | ||
}; | ||
import { deleteTempAnchor, getFromAnchor, getToAnchor } from '../../pen'; | ||
import { deleteTempAnchor, getFromAnchor, getGradientAnimatePath, getToAnchor } from '../../pen'; | ||
import { hitPoint } from '../../point'; | ||
@@ -44,2 +44,10 @@ import { getRectOfPoints, pointInSimpleRect } from '../../rect'; | ||
var path = !ctx ? new Path2D() : ctx; | ||
if (pen.lineName === 'line' || pen.lineName === 'polyline') { | ||
if (pen.calculative.lineSmooth) { | ||
var _path = getGradientAnimatePath(pen); | ||
path.addPath(_path); | ||
if (path instanceof Path2D) | ||
return path; | ||
} | ||
} | ||
var worldAnchors = pen.calculative.worldAnchors; | ||
@@ -46,0 +54,0 @@ if (worldAnchors.length > 1) { |
@@ -52,3 +52,4 @@ import { Point } from '../point'; | ||
Beads = 1, | ||
Dot = 2 | ||
Dot = 2, | ||
Arrow = 3 | ||
} | ||
@@ -195,2 +196,6 @@ export interface ColorStop { | ||
animateList?: Pen[][]; | ||
animateInterval?: number; | ||
animateShadow?: boolean; | ||
animateShadowColor?: string; | ||
animateShadowBlur?: number; | ||
input?: boolean; | ||
@@ -226,2 +231,3 @@ dropdownList?: Dropdown[]; | ||
animateLineWidth?: number; | ||
lineSmooth?: number; | ||
gradientSmooth?: number; | ||
@@ -398,2 +404,3 @@ scrolling?: string; | ||
animateLineWidth?: number; | ||
lineSmooth?: number; | ||
gradientSmooth?: number; | ||
@@ -400,0 +407,0 @@ gradientAnimatePath?: Path2D; |
@@ -77,2 +77,3 @@ export var PenType; | ||
LineAnimateType[LineAnimateType["Dot"] = 2] = "Dot"; | ||
LineAnimateType[LineAnimateType["Arrow"] = 3] = "Arrow"; | ||
})(LineAnimateType || (LineAnimateType = {})); | ||
@@ -164,2 +165,3 @@ /** | ||
'gradientSmooth', | ||
'lineSmooth', | ||
]); | ||
@@ -166,0 +168,0 @@ /** |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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 too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1735249
232
24642