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

@pixi/canvas-graphics

Package Overview
Dependencies
Maintainers
2
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/canvas-graphics - npm Package Compare versions

Comparing version 7.1.2 to 7.2.0-beta

10

lib/CanvasGraphicsRenderer.js

@@ -39,5 +39,3 @@ 'use strict';

let contextStrokeStyle;
const tintR = (graphics.tint >> 16 & 255) / 255;
const tintG = (graphics.tint >> 8 & 255) / 255;
const tintB = (graphics.tint & 255) / 255;
const tint = core.Color.shared.setValue(graphics.tint).toArray();
for (let i = 0; i < graphicsData.length; i++) {

@@ -54,8 +52,6 @@ const data = graphicsData[i];

if (fillStyle.visible) {
const fillTint = ((fillColor >> 16 & 255) / 255 * tintR * 255 << 16) + ((fillColor >> 8 & 255) / 255 * tintG * 255 << 8) + (fillColor & 255) / 255 * tintB * 255;
contextFillStyle = this._calcCanvasStyle(fillStyle, fillTint);
contextFillStyle = this._calcCanvasStyle(fillStyle, core.Color.shared.setValue(fillColor).multiply(tint).toNumber());
}
if (lineStyle.visible) {
const lineTint = ((lineColor >> 16 & 255) / 255 * tintR * 255 << 16) + ((lineColor >> 8 & 255) / 255 * tintG * 255 << 8) + (lineColor & 255) / 255 * tintB * 255;
contextStrokeStyle = this._calcCanvasStyle(lineStyle, lineTint);
contextStrokeStyle = this._calcCanvasStyle(lineStyle, core.Color.shared.setValue(lineColor).multiply(tint).toNumber());
}

@@ -62,0 +58,0 @@ context.lineWidth = lineStyle.width;

{
"name": "@pixi/canvas-graphics",
"version": "7.1.2",
"version": "7.2.0-beta",
"main": "lib/index.js",

@@ -43,4 +43,3 @@ "module": "lib/index.mjs",

"@pixi/graphics"
],
"gitHead": "27e65c73bb36a06fd00d6da5bf460bbee9f6c984"
]
}

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