Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

@leafer/path

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer/path - npm Package Compare versions

Comparing version
1.0.0-rc.4
to
1.0.0-rc.5
+4
-4
package.json
{
"name": "@leafer/path",
"version": "1.0.0-rc.4",
"version": "1.0.0-rc.5",
"description": "@leafer/path",

@@ -25,8 +25,8 @@ "author": "Chao (Leafer) Wan",

"dependencies": {
"@leafer/math": "1.0.0-rc.4",
"@leafer/debug": "1.0.0-rc.4"
"@leafer/math": "1.0.0-rc.5",
"@leafer/debug": "1.0.0-rc.5"
},
"devDependencies": {
"@leafer/interface": "1.0.0-rc.4"
"@leafer/interface": "1.0.0-rc.5"
}
}
import { IPathCommandData } from '@leafer/interface'
import { OneRadian, PI2 } from '@leafer/math'
import { Platform } from '@leafer/platform'

@@ -7,2 +8,3 @@ import { PathCommandMap } from './PathCommandMap'

const { sin, cos, sqrt, atan2 } = Math

@@ -60,3 +62,3 @@ const { ellipse } = BezierHelper

if (curveMode) {
if (curveMode || Platform.name === 'node') {
ellipse(data, centerX, centerY, radiusX, radiusY, rotation, startRadian / OneRadian, endRadian / OneRadian, anticlockwise as unknown as boolean)

@@ -63,0 +65,0 @@ } else {