Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* else the result stream will emit `mapFn(t)`.
*/
checkedFlatMap<u>(checkFn: (t: T) => boolean, mapFn: (t: T) => Stream<u>): Stream<u>
checkedFlatMap<u>(/* checkFn = Boolean */ mapFn: (t: T) => Stream<u>): Stream<u>
}
}
declare module 'd3-zoom' {
interface ZoomTransform {
invertPos(p: Point): Point
applyPos(p: Point): Point
}
}
const { Transform } = require('d3-zoom/src/transform')
Transform.prototype.invertPos = function invertPos(p: Point): Point {
const [x, y] = this.invert([p.x, p.y])
return { x, y }
}
Transform.prototype.applyPos = function applyPos(p: Point): Point {
const [x, y] = this.apply([p.x, p.y])
return { x, y }
}
</u></u></u></u></u></u>
}
}
declare module 'd3-zoom' {
interface ZoomTransform {
invertPos(p: Point): Point
applyPos(p: Point): Point
}
}
const { Transform } = require('d3-zoom/src/transform')
Transform.prototype.invertPos = function invertPos(p: Point): Point {
const [x, y] = this.invert([p.x, p.y])
return { x, y }
}
Transform.prototype.applyPos = function applyPos(p: Point): Point {
const [x, y] = this.apply([p.x, p.y])
return { x, y }
}