Philippe Rivière

Results 974 comments of Philippe Rivière

I've now tested tailwind plugins, it just works. For example, ```sh yarn add --dev @tailwindcss/typography ``` then in `docs/tailwind.config.js`: ```js import typography from "@tailwindcss/typography"; export default { plugins: [ typography...

These are the breakpoints of framework, my assumption here is that users are working inside “main” so the reference for sizes is the width of main. Here's a way to...

The reference is here, with an example showing the contorsions you have to do when you have a sidebar. https://v1.tailwindcss.com/docs/breakpoints In our case it's even more complicated, because the space...

It's a lot of packaging work for something that is mostly experimental (and didactic, to show how area preservation distorts angles). My intent is to document it, but not have...

moved to https://github.com/d3/d3-scale/issues/286

This number is initially caused by a floating point error in this code I'm playing with: ```js const data = [0, 2, ...Array.from({ length: 18 }, () => 1)]; //...

Maybe introduce a **clip**: "rect" option that consumes x1, x2, y1, y2 and adds a clip-path: polygon(…)

browser support for [clip-path: polygon](https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path) in SVG is not great… Current best effort notebook: https://observablehq.com/@observablehq/plot-treemap-clip Edit: Jan. 2025 it seems like all three majors browsers now have correct support for...

It happens here https://github.com/d3/d3-selection/blob/d8ea8005f87ca72496d748a91ab6e0ccbe1a2011/src/pointer.js#L10 the pointer receives an `event` that has no `clientX` property, which triggers the error.

Right… currently we need to patch Event like so: `global.Event = jsdom.window.Event;` But in that case you might want to patch document too: ```js import { JSDOM } from "jsdom";...