Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "hmp-primer", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Code for HMP", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -16,2 +16,3 @@ import interact from 'interactjs' | ||
setPlantPositions(baseline, delta); | ||
setParentWidth(); | ||
setDrag(restriction, className); | ||
@@ -22,3 +23,2 @@ | ||
const generateGates = () => { | ||
@@ -45,2 +45,11 @@ const base = []; | ||
const setParentWidth = () => { | ||
plants.forEach((plant) => { | ||
const parent = plant.node.parentNode; | ||
const width = plant.node.offsetWidth; | ||
parent.style.width = width + 'px'; | ||
}); | ||
}; | ||
const setDrag = (restriction, className) => { | ||
@@ -47,0 +56,0 @@ const plant = interact(className).styleCursor(false); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3375580
6765