Skip to content

Commit

Permalink
Update bokeh's examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpap committed May 3, 2024
1 parent 11804cd commit cf8dc3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/advanced/extensions/gears/gear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class GearView extends XYGlyphView {
this.smodule = this.sdist(this.renderer.xscale, this.x, this.module, "edge")
}

_render(ctx: Context2d, indices: number[], data?: Partial<Gear.Data>): void {
protected _paint(ctx: Context2d, indices: number[], data?: Partial<Gear.Data>): void {
const {sx, sy, smodule, angle, teeth, pressure_angle, shaft_size, internal} = {...this, ...data}

for (const i of indices) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export class ParallelSelectionView extends BoxSelectToolView {
this.selection_indices.splice(0, nelems)
this._emit_cds_changes(this.cds_select)
}
this.plot_view.request_render()
this.plot_view.request_paint()
}
}

Expand Down

0 comments on commit cf8dc3e

Please sign in to comment.