Skip to content

Commit

Permalink
Lessen restriction on Scale.target_range
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpap committed Aug 15, 2023
1 parent b6435ab commit 55ac6bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bokehjs/src/lib/models/scales/scale.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {Transform} from "../transforms/transform"
import {Range} from "../ranges/range"
import {Range1d} from "../ranges/range1d"
import type {Arrayable, FloatArray} from "core/types"
import {ScreenArray} from "core/types"
import type * as p from "core/properties"
Expand All @@ -10,7 +9,7 @@ export namespace Scale {

export type Props = Transform.Props & {
source_range: p.Property<Range>
target_range: p.Property<Range1d>
target_range: p.Property<Range>
}
}

Expand All @@ -26,7 +25,7 @@ export abstract class Scale<T = number> extends Transform<T, number> {
static {
this.internal<Scale.Props>(({Ref}) => ({
source_range: [ Ref(Range) ],
target_range: [ Ref(Range1d) ],
target_range: [ Ref(Range) ],
}))
}

Expand Down

0 comments on commit 55ac6bc

Please sign in to comment.