pixi-extended-graphics
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -6,7 +6,3 @@ import { Graphics } from 'pixi.js'; | ||
/** | ||
* Adds a variety of utility functions to the base pixi.js graphics class. | ||
* @remarks | ||
* | ||
* Enables support for dotted lines and more. | ||
* | ||
* Extends the pixi.js `Graphics` class with support for dotted lines. | ||
* @example | ||
@@ -33,4 +29,2 @@ * ```typescript | ||
* ``` | ||
* | ||
* @public | ||
*/ | ||
@@ -51,6 +45,12 @@ export declare class ExtendedGraphics extends Graphics { | ||
* | ||
* @param @see PIXI.Geometry | ||
* @param geometry - {@link https://pixijs.download/release/docs/PIXI.GraphicsGeometry.html | PIXI.GraphicsGeometry} | ||
* @returns type and meaning of return value | ||
*/ | ||
constructor(geometry?: GraphicsGeometry); | ||
/** | ||
* Same as `PIXI.Graphics.endFill()`, except when `this.dashedFill` is set to true. Otherwise, | ||
* it is neccessary to call `endFill()` in order to make fills drawn with dashed lines appear. | ||
* | ||
* @returns This ExtendedGraphics object. Good for chaining method calls | ||
*/ | ||
endFill(): this; | ||
@@ -103,5 +103,9 @@ /** | ||
/** | ||
* Controls whether lines drawn with dashedLineTo are treated as solid with respect to fills **Only applies to dashed lines drawn while `dashedFill` is set to `true`. | ||
* Controls whether lines drawn with dashedLineTo are treated as solid with respect to fills. | ||
* Only applies to dashed lines drawn while `dashedFill` is set to `true`. **Fills made with | ||
* dashed lines do not take effect until `ExtendedGraphics.endFill()` is called.** | ||
* | ||
* @remarks Internally, this is done by storing the instruction to draw each dashed line, and then drawing solid transparent lines underneath them all at once. May cause performance bottlenecks if drawing many dashed lines. Ensure your rendering environment supports transparency. | ||
* @remarks Internally, this is done by storing the instruction to draw each dashed line, | ||
* and then drawing solid transparent lines underneath them all at once. May cause performance bottlenecks | ||
* if drawing many dashed lines. Ensure your rendering environment supports transparency. | ||
* | ||
@@ -108,0 +112,0 @@ */ |
{ | ||
"name": "pixi-extended-graphics", | ||
"private": false, | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"type": "module", | ||
@@ -28,3 +28,4 @@ "main": "dist/extendedGraphics.js", | ||
"pixi.js": "^7.2.4" | ||
} | ||
}, | ||
"files": ["dist"] | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
9029
536726
5
15