Huge News!Announcing our $40M Series B led by Abstract Ventures.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.43 to 1.3.44

3

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

@@ -27,2 +27,3 @@ "author": "Kitware, Inc.",

"antd": "2.13.11",
"paraviewweb": "^3.2.0",
"react": "16.1.1",

@@ -29,0 +30,0 @@ "react-dom": "16.1.1",

import React from 'react';
import PropTypes from 'prop-types';
import EditableList from 'paraviewweb/src/React/Widgets/EditableListWidget';
import ViewerWidget from '../widgets/ViewerWidget';
import EditableList from '../widgets/EditableList';
import ThreeDToolbar from '../widgets/ThreeDToolbar';

@@ -88,3 +89,3 @@ import VisibilityToolbar from '../widgets/VisibilityToolbar';

addRadius(afterIdx) {
addRadius(idx) {
const { data } = this.props;

@@ -95,3 +96,2 @@ const viz = this.props.ui.domain;

const cell = data.value[0];
const idx = afterIdx + 1;
const length = cell.mats.length;

@@ -116,3 +116,3 @@ const pitch = this.props.viewData.cell.pitch.value[0];

deleteEntry(idx) {
deleteEntry(key) {
const { data } = this.props;

@@ -122,4 +122,5 @@ if (data.value && data.value.length) {

cell.mats.splice(idx, 1);
cell.radii.splice(idx, 1);
// key is index (from the render() method)
cell.mats.splice(key, 1);
cell.radii.splice(key, 1);

@@ -126,0 +127,0 @@ this.props.onChange(data);

import React from 'react';
import PropTypes from 'prop-types';
import EditableList from 'paraviewweb/src/React/Widgets/EditableListWidget';
import Rod2DPreview from '../widgets/Rod2DPreview';
import EditableList from '../widgets/EditableList';
import ViewerWidget from '../widgets/ViewerWidget';

@@ -27,2 +28,3 @@ import ThreeDToolbar from '../widgets/ThreeDToolbar';

this.delLayer = this.delLayer.bind(this);
this.moveLayer = this.moveLayer.bind(this);

@@ -70,7 +72,8 @@ this.rodViewer = vtkRodVTKViewer.newInstance();

delLayer(idx) {
delLayer(key) {
const data = this.props.data;
if (data.value && data.value.length) {
const stack = data.value[0].stack;
stack.splice(idx, 1);
// key is index (from the render() method)
stack.splice(key, 1);

@@ -81,2 +84,12 @@ this.props.onChange(data);

moveLayer(srcIdx, dstIdx) {
const data = this.props.data;
if (data.value && data.value.length) {
const stack = data.value[0].stack;
stack.splice(dstIdx, 0, ...stack.splice(srcIdx, 1));
this.props.onChange(data);
}
}
render() {

@@ -209,2 +222,3 @@ const viz = this.props.ui.domain;

<EditableList
sortable
columns={columns}

@@ -214,2 +228,3 @@ data={items}

onDelete={this.delLayer}
onSortChange={this.moveLayer}
/>

@@ -216,0 +231,0 @@ </div>

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

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