mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Update D3 to the current version
Summary: Ref T13279. Old D3 seems perfectly fine, but most of the good references seem to have been written by people who update D3 more than once every 10 years (???). This requires some minor API changes, see next diff. Test Plan: See next diff. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13279 Differential Revision: https://secure.phabricator.com/D20497
This commit is contained in:
parent
5c1b91ab45
commit
0776b5ca2c
4 changed files with 73 additions and 27 deletions
|
@ -183,7 +183,7 @@ return array(
|
||||||
'rsrc/css/sprite-login.css' => '18b368a6',
|
'rsrc/css/sprite-login.css' => '18b368a6',
|
||||||
'rsrc/css/sprite-tokens.css' => 'f1896dc5',
|
'rsrc/css/sprite-tokens.css' => 'f1896dc5',
|
||||||
'rsrc/css/syntax/syntax-default.css' => '055fc231',
|
'rsrc/css/syntax/syntax-default.css' => '055fc231',
|
||||||
'rsrc/externals/d3/d3.min.js' => 'd67475f5',
|
'rsrc/externals/d3/d3.min.js' => '9d068042',
|
||||||
'rsrc/externals/font/fontawesome/fontawesome-webfont.eot' => '23f8c698',
|
'rsrc/externals/font/fontawesome/fontawesome-webfont.eot' => '23f8c698',
|
||||||
'rsrc/externals/font/fontawesome/fontawesome-webfont.ttf' => '70983df0',
|
'rsrc/externals/font/fontawesome/fontawesome-webfont.ttf' => '70983df0',
|
||||||
'rsrc/externals/font/fontawesome/fontawesome-webfont.woff' => 'cd02f93b',
|
'rsrc/externals/font/fontawesome/fontawesome-webfont.woff' => 'cd02f93b',
|
||||||
|
@ -550,7 +550,7 @@ return array(
|
||||||
'conpherence-participant-pane-css' => '69e0058a',
|
'conpherence-participant-pane-css' => '69e0058a',
|
||||||
'conpherence-thread-manager' => 'aec8e38c',
|
'conpherence-thread-manager' => 'aec8e38c',
|
||||||
'conpherence-transaction-css' => '3a3f5e7e',
|
'conpherence-transaction-css' => '3a3f5e7e',
|
||||||
'd3' => 'd67475f5',
|
'd3' => '9d068042',
|
||||||
'differential-changeset-view-css' => 'bde53589',
|
'differential-changeset-view-css' => 'bde53589',
|
||||||
'differential-core-view-css' => '7300a73e',
|
'differential-core-view-css' => '7300a73e',
|
||||||
'differential-revision-add-comment-css' => '7e5900d9',
|
'differential-revision-add-comment-css' => '7e5900d9',
|
||||||
|
|
31
webroot/rsrc/externals/d3/LICENSE
vendored
31
webroot/rsrc/externals/d3/LICENSE
vendored
|
@ -1,8 +1,8 @@
|
||||||
Copyright (c) 2010-2014, Michael Bostock
|
Copyright 2010-2017 Mike Bostock
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
modification, are permitted provided that the following conditions are met:
|
are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright notice, this
|
* Redistributions of source code must retain the above copyright notice, this
|
||||||
list of conditions and the following disclaimer.
|
list of conditions and the following disclaimer.
|
||||||
|
@ -11,16 +11,17 @@ modification, are permitted provided that the following conditions are met:
|
||||||
this list of conditions and the following disclaimer in the documentation
|
this list of conditions and the following disclaimer in the documentation
|
||||||
and/or other materials provided with the distribution.
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
* The name Michael Bostock may not be used to endorse or promote products
|
* Neither the name of the author nor the names of contributors may be used to
|
||||||
derived from this software without specific prior written permission.
|
endorse or promote products derived from this software without specific prior
|
||||||
|
written permission.
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT,
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
58
webroot/rsrc/externals/d3/README.md
vendored
58
webroot/rsrc/externals/d3/README.md
vendored
|
@ -1,9 +1,57 @@
|
||||||
# Data-Driven Documents
|
# D3: Data-Driven Documents
|
||||||
|
|
||||||
<a href="http://d3js.org"><img src="http://d3js.org/logo.svg" align="left" hspace="10" vspace="6"></a>
|
<a href="https://d3js.org"><img src="https://d3js.org/logo.svg" align="left" hspace="10" vspace="6"></a>
|
||||||
|
|
||||||
**D3.js** is a JavaScript library for manipulating documents based on data. **D3** helps you bring data to life using HTML, SVG and CSS. D3’s emphasis on web standards gives you the full capabilities of modern browsers without tying yourself to a proprietary framework, combining powerful visualization components and a data-driven approach to DOM manipulation.
|
**D3** (or **D3.js**) is a JavaScript library for visualizing data using web standards. D3 helps you bring data to life using SVG, Canvas and HTML. D3 combines powerful visualization and interaction techniques with a data-driven approach to DOM manipulation, giving you the full capabilities of modern browsers and the freedom to design the right visual interface for your data.
|
||||||
|
|
||||||
Want to learn more? [See the wiki.](https://github.com/mbostock/d3/wiki)
|
## Resources
|
||||||
|
|
||||||
For examples, [see the gallery](https://github.com/mbostock/d3/wiki/Gallery) and [mbostock’s bl.ocks](http://bl.ocks.org/mbostock).
|
* [API Reference](https://github.com/d3/d3/blob/master/API.md)
|
||||||
|
* [Release Notes](https://github.com/d3/d3/releases)
|
||||||
|
* [Gallery](https://github.com/d3/d3/wiki/Gallery)
|
||||||
|
* [Examples](https://bl.ocks.org/mbostock)
|
||||||
|
* [Wiki](https://github.com/d3/d3/wiki)
|
||||||
|
|
||||||
|
## Installing
|
||||||
|
|
||||||
|
If you use npm, `npm install d3`. Otherwise, download the [latest release](https://github.com/d3/d3/releases/latest). The released bundle supports anonymous AMD, CommonJS, and vanilla environments. You can load directly from [d3js.org](https://d3js.org), [CDNJS](https://cdnjs.com/libraries/d3), or [unpkg](https://unpkg.com/d3/). For example:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="https://d3js.org/d3.v5.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
For the minified version:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="https://d3js.org/d3.v5.min.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also use the standalone D3 microlibraries. For example, [d3-selection](https://github.com/d3/d3-selection):
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="https://d3js.org/d3-selection.v1.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
D3 is written using [ES2015 modules](http://www.2ality.com/2014/09/es6-modules-final.html). Create a [custom bundle using Rollup](https://bl.ocks.org/mbostock/bb09af4c39c79cffcde4), Webpack, or your preferred bundler. To import D3 into an ES2015 application, either import specific symbols from specific D3 modules:
|
||||||
|
|
||||||
|
```js
|
||||||
|
import {scaleLinear} from "d3-scale";
|
||||||
|
```
|
||||||
|
|
||||||
|
Or import everything into a namespace (here, `d3`):
|
||||||
|
|
||||||
|
```js
|
||||||
|
import * as d3 from "d3";
|
||||||
|
```
|
||||||
|
|
||||||
|
In Node:
|
||||||
|
|
||||||
|
```js
|
||||||
|
var d3 = require("d3");
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also require individual modules and combine them into a `d3` object using [Object.assign](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign):
|
||||||
|
|
||||||
|
```js
|
||||||
|
var d3 = Object.assign({}, require("d3-format"), require("d3-geo"), require("d3-geo-projection"));
|
||||||
|
```
|
||||||
|
|
7
webroot/rsrc/externals/d3/d3.min.js
vendored
7
webroot/rsrc/externals/d3/d3.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue