You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2018/04/28 15:22:36 UTC

[incubator-echarts] branch master updated: Add 3rd party license to each file.

This is an automated email from the ASF dual-hosted git repository.

sushuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git


The following commit(s) were added to refs/heads/master by this push:
     new 34ff4c7  Add 3rd party license to each file.
34ff4c7 is described below

commit 34ff4c7f9bfc15c136a30571fb24af966edebd24
Author: sushuang <su...@gmail.com>
AuthorDate: Sat Apr 28 23:22:13 2018 +0800

    Add 3rd party license to each file.
---
 LICENSE                            |  2 +-
 src/chart/graph/forceHelper.js     |  7 +++++++
 src/chart/tree/layoutHelper.js     |  7 +++++++
 src/chart/treemap/treemapLayout.js | 11 ++++++++++-
 src/scale/Time.js                  |  8 +++++++-
 src/util/array/nest.js             |  7 +++++++
 6 files changed, 39 insertions(+), 3 deletions(-)

diff --git a/LICENSE b/LICENSE
index 799d776..5ace7d3 100644
--- a/LICENSE
+++ b/LICENSE
@@ -209,7 +209,7 @@
 Apache ECharts Subcomponents:
 
 The Apache ECharts project contains subcomponents with separate copyright
-notices and license terms. Your use of the source code for the these
+notices and license terms. Your use of the source code for these
 subcomponents is subject to the terms and conditions of the following
 licenses.
 
diff --git a/src/chart/graph/forceHelper.js b/src/chart/graph/forceHelper.js
index 60a56ab..baa6f4e 100644
--- a/src/chart/graph/forceHelper.js
+++ b/src/chart/graph/forceHelper.js
@@ -17,6 +17,13 @@
 * under the License.
 */
 
+/*
+* The layout implementation references to d3.js. The use of
+* the source code of this file is also subject to the terms
+* and consitions of its license (BSD-3Clause, see
+* <echarts/src/licenses/LICENSE-d3>).
+*/
+
 import * as vec2 from 'zrender/src/core/vector';
 
 var scaleAndAdd = vec2.scaleAndAdd;
diff --git a/src/chart/tree/layoutHelper.js b/src/chart/tree/layoutHelper.js
index ec84a0d..a223953 100644
--- a/src/chart/tree/layoutHelper.js
+++ b/src/chart/tree/layoutHelper.js
@@ -17,6 +17,13 @@
 * under the License.
 */
 
+/*
+* The tree layout implementation references to d3.js
+* (https://github.com/d3/d3-hierarchy). The use of the source
+* code of this file is also subject to the terms and consitions
+* of its license (BSD-3Clause, see <echarts/src/licenses/LICENSE-d3>).
+*/
+
 /**
  * @file The layout algorithm of node-link tree diagrams. Here we using Reingold-Tilford algorithm to drawing
  *       the tree.
diff --git a/src/chart/treemap/treemapLayout.js b/src/chart/treemap/treemapLayout.js
index bc80622..5fb3940 100644
--- a/src/chart/treemap/treemapLayout.js
+++ b/src/chart/treemap/treemapLayout.js
@@ -17,6 +17,14 @@
 * under the License.
 */
 
+/*
+* The treemap layout implementation references to the treemap
+* layout of d3.js (d3/src/layout/treemap.js in v3). The use of
+* the source code of this file is also subject to the terms
+* and consitions of its license (BSD-3Clause, see
+* <echarts/src/licenses/LICENSE-d3>).
+*/
+
 import * as zrUtil from 'zrender/src/core/util';
 import BoundingRect from 'zrender/src/core/BoundingRect';
 import {parsePercent, MAX_SAFE_INTEGER} from '../../util/number';
@@ -144,7 +152,8 @@ export default {
 /**
  * Layout treemap with squarify algorithm.
  * @see https://graphics.ethz.ch/teaching/scivis_common/Literature/squarifiedTreeMaps.pdf
- * @see https://github.com/mbostock/d3/blob/master/src/layout/treemap.js
+ * The implementation references to the treemap layout of d3.js.
+ * See the license statement at the head of this file.
  *
  * @protected
  * @param {module:echarts/data/Tree~TreeNode} node
diff --git a/src/scale/Time.js b/src/scale/Time.js
index a936b67..689581a 100644
--- a/src/scale/Time.js
+++ b/src/scale/Time.js
@@ -17,6 +17,12 @@
 * under the License.
 */
 
+/*
+* The `scaleLevels` references to d3.js. The use of the source
+* code of this file is also subject to the terms and consitions
+* of its license (BSD-3Clause, see <echarts/src/licenses/LICENSE-d3>).
+*/
+
 // [About UTC and local time zone]:
 // In most cases, `number.parseDate` will treat input data string as local time
 // (except time zone is specified in time string). And `format.formateTime` returns
@@ -165,7 +171,7 @@ zrUtil.each(['contain', 'normalize'], function (methodName) {
     };
 });
 
-// Steps from d3
+// Steps from d3, see the license statement at the top of this file.
 var scaleLevels = [
     // Format              interval
     ['hh:mm:ss', ONE_SECOND],          // 1s
diff --git a/src/util/array/nest.js b/src/util/array/nest.js
index 4926f8d..ff4c9ba 100644
--- a/src/util/array/nest.js
+++ b/src/util/array/nest.js
@@ -17,6 +17,13 @@
 * under the License.
 */
 
+/*
+* The implementation references to d3.js. The use of the source
+* code of this file is also subject to the terms and consitions
+* of its license (BSD-3Clause, see <echarts/src/licenses/LICENSE-d3>).
+*/
+
+
 import * as zrUtil from 'zrender/src/core/util';
 
 /**

-- 
To stop receiving notification emails like this one, please contact
sushuang@apache.org.

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org