upgrade rw + lint (#521)

* Various linting fixes

* Fix component name

* Upgrade to redwood 0.36.4
This commit was merged in pull request #521.
This commit is contained in:
Kurt Hutten
2021-09-20 19:08:03 +10:00
committed by GitHub
parent 39ce35b219
commit f6df9d1988
16 changed files with 161 additions and 193 deletions

View File

@@ -5,8 +5,6 @@ const setPoints = (points, p, i) => {
}
function CSG2Vertices(csg) {
const idx = 0
let vLen = 0,
iLen = 0
for (const poly of csg.polygons) {
@@ -178,7 +176,6 @@ function parseParams(script) {
let i = 0,
line,
next,
lineNum
while (i < lines.length) {
line = lines[i].code.trim()
@@ -194,7 +191,6 @@ function parseParams(script) {
while (i < lines.length) {
line = lines[i].code
lineNum = lines[i].line
next = lines[i + 1] ? lines[i + 1].code : ''
if (line[0] === '}') break
if (line[0] === '/') {
@@ -593,7 +589,7 @@ const makeRenderWorker = () => {
}
}
const updateAndRender = (timestamp) => {
const updateAndRender = () => {
renderTimer = null
doRotatePanZoom()
@@ -607,7 +603,6 @@ const makeRenderWorker = () => {
state.camera.position = updates.camera.position
perspectiveCamera.update(state.camera)
renderOptions.entities = [gridOptions, axisOptions, ...entities]
const time = Date.now()
renderer(renderOptions)
if (updateRender) {
updateRender = ''