Mike Bostock

Results 751 comments of Mike Bostock

What I see in this PR is the intended behavior…

@Fil I don’t think that’s quite enough; if there’s a selection, the selection should appear sorted, too. But currently it looks like the selection is ordered by the order in...

Thanks for the references and feedback! It feels unfair (to me) to say that one of these approaches “hews to JavaScript” while the other doesn’t. Named cells are not assignment...

I realized that both of these proposals ```js (foo) = body ``` ```js (foo = body) ``` are potentially not backwards-compatible with mutable assignments, though my guess there are few...

If we do this, I suspect it should be an opt-in behavior rather than the default behavior.

I’ve adopted CSS custom properties in eb1e7c5659cdef9d83711598db95d706ee8fbd55 (and fixed a related bug in Hypertext Literal https://github.com/observablehq/htl/issues/28). So, you can now redefine the --input-width or --label-width custom properties to change the...

> Maybe the documentation should mention that the format function also needs to (more or less) faithfully represent the value? Yes, or we should deprecate the option or even remove...

I don’t think there’s a way to do this with the number input because the steps are not regularly spaced (e.g., clicking up should jump from 4 to 8, not...

@tophtucker The standards way of doing that would be to add a datalist option, but it’s not super useful without labels or snapping. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range#adding_hash_marks_and_labels

There’s a dispatchInput(*event*) method used internally: https://github.com/observablehq/inputs/blob/5af6c656e38bc7cf10dbeee0bff5dfd3d41f77a9/src/event.js#L7-L9 I’m not sure how best to expose this, though.