New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@doe-casl/verain-view

Package Overview
Dependencies
Maintainers
3
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@doe-casl/verain-view - npm Package Compare versions

Comparing version 1.3.17 to 1.3.18

2

package.json
{
"name": "@doe-casl/verain-view",
"version": "1.3.17",
"version": "1.3.18",
"description": "VeraInView is a standalone HTML file that can act as an application to visualize your VERAin XML files.",

@@ -5,0 +5,0 @@ "author": "Kitware, Inc.",

@@ -114,7 +114,17 @@ import React from 'react';

const materialOptions = Object.keys(materials).map((id) => (
<option key={id} value={id}>
{materials[id].name[0]}
</option>
));
const materialOptions = Object.keys(materials).map((id) => {
// adds on opaque alpha channel
const color = ColorManager.toRGBA(materials[id].color.concat([1]));
return (
<option
key={id}
value={id}
style={{
background: color,
}}
>
{materials[id].name[0]}
</option>
);
});

@@ -121,0 +131,0 @@ const columns = [

@@ -96,7 +96,10 @@ import React from 'react';

>
{Object.keys(cells).map((id) => (
<option key={id} value={id}>
{cells[id].name[0]}
</option>
))}
{Object.keys(cells).map((id) => {
const bg = ColorManager.toRGBA(cells[id].color.concat([1]));
return (
<option key={id} value={id} style={{ background: bg }}>
{cells[id].name[0]}
</option>
);
})}
</select>

@@ -103,0 +106,0 @@ );

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