Skip to content

Commit

Permalink
Get rid of no-longer-used step.projection
Browse files Browse the repository at this point in the history
  • Loading branch information
kflorence committed Jan 20, 2024
1 parent 256993a commit e1654ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 2 additions & 5 deletions src/components/items/beam.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export class Beam extends Item {
// Can't be done if adding a new step
this.done = false

this.#path.opacity = step.projection ? 0.25 : 1
this.#path.strokeColor = step.color

if (this.path.length === 0) {
Expand All @@ -64,8 +63,7 @@ export class Beam extends Item {
!step.connected || (
previousStep && (
step.color !== previousStep.color ||
step.insertAbove !== previousStep.insertAbove ||
step.projection !== previousStep.projection
step.insertAbove !== previousStep.insertAbove
)
)
) {
Expand Down Expand Up @@ -433,8 +431,7 @@ export class Beam extends Item {
direction,
nextStepPoint,
existingNextStep?.pathIndex || lastPathIndex,
existingNextStep?.segmentIndex || lastSegmentIndex,
existingNextStep?.projection ?? currentStep.projection
existingNextStep?.segmentIndex || lastSegmentIndex
)

const items = uniqueBy(
Expand Down
4 changes: 0 additions & 4 deletions src/components/step.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export class Step {
onRemove
point
pathIndex
projection
segmentIndex
state
tile
Expand All @@ -25,7 +24,6 @@ export class Step {
point,
pathIndex,
segmentIndex,
projection,
connected,
insertAbove,
done,
Expand Down Expand Up @@ -53,7 +51,6 @@ export class Step {
this.onRemove = onRemove ?? (() => {})
this.point = point
this.pathIndex = pathIndex
this.projection = projection ?? false
this.segmentIndex = segmentIndex
this.state = state ?? new StepState()
this.tile = tile
Expand All @@ -68,7 +65,6 @@ export class Step {
settings.point ?? this.point,
settings.pathIndex ?? this.pathIndex,
settings.segmentIndex ?? this.segmentIndex,
settings.projection ?? this.projection,
settings.connected ?? this.connected,
settings.insertAbove ?? this.insertAbove,
settings.done ?? this.done,
Expand Down

0 comments on commit e1654ad

Please sign in to comment.