From 19717bde8752de5c454a41eb86e8aeb8e35804f7 Mon Sep 17 00:00:00 2001 From: johnwalley Date: Sun, 14 May 2023 11:58:23 +0100 Subject: [PATCH] docs: update source links --- README.md | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index de1a77d..95dabfb 100644 --- a/README.md +++ b/README.md @@ -173,35 +173,35 @@ The orientation of a slider is fixed; to change the orientation, remove the old All sliders may take a [scale](https://github.com/d3/d3-scale) as an argument. If _scale_ is specified, the slider will use the scale to render the slider. This must be either [scaleLinear](https://github.com/d3/d3-scale#scaleLinear) or [scaleTime](https://github.com/d3/d3-scale#scaleTime). The domain will be used to calculate minimum and maximum values. The range will be used to calculate the width or height of the slider. This means you do not need to set these if passing a scale. -# d3.sliderHorizontal([scale]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L827 'Source') +# d3.sliderHorizontal([scale]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L859 'Source') Constructs a new horizontal slider generator. _Note that this is equivalent to [`sliderBottom`](#sliderBottom)._ -# d3.sliderVertical([scale]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L832 'Source') +# d3.sliderVertical([scale]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L863 'Source') Constructs a new vertical slider generator. _Note that this is equivalent to [`sliderLeft`](#sliderLeft)._ -# d3.sliderTop([scale]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L835 'Source') +# d3.sliderTop([scale]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L867 'Source') Constructs a new horizontal slider generator. Ticks on top. -# d3.sliderRight([scale]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L839 'Source') +# d3.sliderRight([scale]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L839 'Source') Constructs a new vertical slider generator. Ticks to the right; -# d3.sliderBottom([scale]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L843 'Source') +# d3.sliderBottom([scale]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L871 'Source') Constructs a new horizontal slider generator. Ticks on the bottom. -# d3.sliderLeft([scale]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L47 'Source') +# d3.sliderLeft([scale]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L879 'Source') Constructs a new vertical slider generator. Ticks to the left; -# slider(context) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L30 'Source') +# slider(context) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L30 'Source') Render the slider to the given _context_, which may be either a [selection](https://github.com/d3/d3-selection) of SVG containers (either SVG or G elements) or a corresponding [transition](https://github.com/d3/d3-transition). -# slider.ticks([count]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L697 'Source') +# slider.ticks([count]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L729 'Source') To generate twenty ticks: @@ -209,7 +209,7 @@ To generate twenty ticks: slider.ticks(20); ``` -# slider.tickValues([values]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L783 'Source') +# slider.tickValues([values]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L815 'Source') If a values array is specified, the specified values are used for ticks rather than using the sliders' automatic tick generator. If values is null, clears any previously-set explicit tick values and reverts back to the sliders' tick generator. If values is not specified, returns the current tick values, which defaults to null. For example, to generate ticks at specific values: @@ -217,11 +217,11 @@ If a values array is specified, the specified values are used for ticks rather t slider.tickValues([1, 2, 3, 5, 8, 13, 21]); ``` -# slider.tickPadding([padding]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L789 'Source') +# slider.tickPadding([padding]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L821 'Source') If _padding_ is specified, sets the padding to the specified value in pixels and returns the axis. If _padding_ is not specified, returns the current padding which defaults to 3 pixels. -# slider.tickFormat([format]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L685 'Source') +# slider.tickFormat([format]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L717 'Source') If _format_ is specified, sets the tick format function and returns the slider. If _format_ is not specified, returns the current format function, which defaults to null. A null format indicates that the slider's default formatter should be used. @@ -231,7 +231,7 @@ See [d3-format](https://github.com/d3/d3-format) and [d3-time-format](https://gi slider.tickFormat(d3.format(',.0f')); ``` -# slider.displayFormat([format]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L691 'Source') +# slider.displayFormat([format]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L723 'Source') If _format_ is specified, sets the function used to format the highlighted value and returns the slider. If _format_ is not specified, returns the current format function, which defaults to null. A null format indicates that the tickFormat should be used. If tickFormat is null then the slider's default formatter should be used. @@ -241,63 +241,63 @@ See [d3-format](https://github.com/d3/d3-format) and [d3-time-format](https://gi slider.displayFormat(d3.format(',.0f')); ``` -# slider.value([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L703 'Source') +# slider.value([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L735 'Source') If _value_ is specified, sets the value of the slider to the specified value and returns the slider. If _value_ is not specified, returns the current value. If _value_ is an array of length two then the values represent a range. -# slider.silentValue([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L730 'Source') +# slider.silentValue([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L762 'Source') If _value_ is specified, sets the value of the slider to the specified value and returns the slider _without_ invoking any listeners. If _value_ is not specified, returns the current value. If _value_ is an array of length two then the values represent a range. -# slider.displayValue([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L807 'Source') +# slider.displayValue([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L839 'Source') If _value_ is specified, sets the whether the highlighted value of the slider should be shown and returns the slider. If _value_ is not specified, returns the current value, which defaults to true. -# slider.handle([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L801 'Source') +# slider.handle([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L833 'Source') If _value_ is specified, sets the [SVG path definition](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d) used to render the slider handle and returns the slider. If _value_ is not specified, returns the current value, which defaults to 'M-5.5,-5.5v10l6,5.5l6,-5.5v-10z'. -# slider.width([size]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L663 'Source') +# slider.width([size]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L695 'Source') If _size_ is specified, sets the width of the slider to the specified value and returns the slider. If _size_ is not specified, returns the current width, which defaults to 100. This property only affects horizontal sliders and is ignored otherwise. -# slider.height([size]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L674 'Source') +# slider.height([size]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L706 'Source') If _size_ is specified, sets the height of the slider to the specified value and returns the slider. If _size_ is not specified, returns the current height, which defaults to 100. This property only affects vertical sliders and is ignored otherwise. -# slider.min([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L630 'Source') +# slider.min([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L662 'Source') If _value_ is specified, sets the minimum value of the slider to the specified value and returns the slider. If _value_ is not specified, returns the current minimum value, which defaults to 0. -# slider.max([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L641 'Source') +# slider.max([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L673 'Source') If _value_ is specified, sets the maximum value of the slider to the specified value and returns the slider. If _value_ is not specified, returns the current maximum value, which defaults to 10. -# slider.domain([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L652 'Source') +# slider.domain([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L684 'Source') If _value_ is specified, an array which sets the minimum and maximum values of the slider and returns the slider. If _value_ is not specified, returns the current maximum value, which defaults to [0, 10]. -# slider.fill([color]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L813 'Source') +# slider.fill([color]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L845 'Source') If _color_ is specified, sets the color of the slider track-fill and returns the slider. If _color_ is not specified, returns the current value, which defaults to null. -# slider.step([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L777 'Source') +# slider.step([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L809 'Source') If _value_ is specified, sets the increment which the slider will move in and returns the slider. If _value_ is not specified, returns the current value, which defaults to null. -# slider.marks([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L795 'Source') +# slider.marks([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L827 'Source') If _value_ is specified, sets the values to which the slider will snap to and returns the slider. If _value_ is not specified, returns the current value, which defaults to null. -# slider.default([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L757 'Source') +# slider.default([value]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L789 'Source') If _value_ is specified, sets the initial value of the slider and returns the slider. If _value_ is not specified, returns the current value, which defaults to null. -# slider.on(typenames, [listener]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/master/src/slider.js#L819 'Source') +# slider.on(typenames, [listener]) [<>](https://github.com/johnwalley/d3-simple-slider/blob/main/src/slider.js#L851 'Source') If _listener_ is specified, sets the event _listener_ for the specified _typenames_ and returns the slider. If an event listener was already registered for the same type and name, the existing listener is removed before the new listener is added. If _listener_ is null, removes the current event listeners for the specified _typenames_, if any. If _listener_ is not specified, returns the first currently-assigned listener matching the specified _typenames_, if any. When a specified event is dispatched, each _listener_ will be invoked with the same context and arguments as [_selection_.on](https://github.com/d3/d3-selection#selection_on) listeners: the current datum `d` and index `i`, with the `this` context as the current DOM element.