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

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

commit fe6b6a2cd8426d57bd208661109537a87682f03d
Author: 100pah <sushuang0...@gmail.com>
AuthorDate: Sat Aug 1 00:32:44 2020 +0800

    fix: remove unnecessary files.
---
 extension-src/dataTool/boxplotTransform.ts | 70 ------------------------------
 extension-src/dataTool/index.ts            |  6 +--
 2 files changed, 3 insertions(+), 73 deletions(-)

diff --git a/extension-src/dataTool/boxplotTransform.ts 
b/extension-src/dataTool/boxplotTransform.ts
deleted file mode 100644
index 4a51370..0000000
--- a/extension-src/dataTool/boxplotTransform.ts
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one
-* or more contributor license agreements.  See the NOTICE file
-* distributed with this work for additional information
-* regarding copyright ownership.  The ASF licenses this file
-* to you under the Apache License, Version 2.0 (the
-* "License"); you may not use this file except in compliance
-* with the License.  You may obtain a copy of the License at
-*
-*   http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an
-* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-* KIND, either express or implied.  See the License for the
-* specific language governing permissions and limitations
-* under the License.
-*/
-
-import { DataTransformOption, ExternalDataTransform } from 
'../../src/data/helper/transform';
-import prepareBoxplotData from './prepareBoxplotData';
-import { isArray, each } from 'zrender/src/core/util';
-// import { throwError, makePrintable } from '../../src/util/log';
-
-
-export interface BoxplotTransformOption extends DataTransformOption {
-    type: 'echarts-extension:boxplot';
-    config: {
-        boundIQR?: number | 'none',
-        layout?: 'horizontal' | 'vertical'
-    }
-}
-
-export const boxplotTransform: ExternalDataTransform<BoxplotTransformOption> = 
{
-
-    type: 'echarts-extension:boxplot',
-
-    // PEDING: enhance to filter by index rather than create new data
-    transform: function transform(params) {
-        const source = params.source;
-        const config = params.config || {};
-
-        const sourceData = source.data;
-        if (
-            !isArray(sourceData)
-            || (sourceData[0] && !isArray(sourceData[0]))
-        ) {
-            throw new Error(
-                'source data is not applicable for this boxplot transform. 
Expect number[][].'
-            );
-        }
-
-        const result = prepareBoxplotData(
-            source.data as number[][],
-            config
-        );
-
-        const boxData = result.boxData as (number | string)[][];
-        each(boxData, function (item, dataIdx) {
-            item.unshift(result.axisData[dataIdx]);
-        });
-
-        return [{
-            data: boxData
-        }, {
-            data: result.outliers
-        }];
-    }
-};
-
diff --git a/extension-src/dataTool/index.ts b/extension-src/dataTool/index.ts
index c4cc447..3acc302 100644
--- a/extension-src/dataTool/index.ts
+++ b/extension-src/dataTool/index.ts
@@ -21,14 +21,14 @@
 import * as echarts from 'echarts';
 import * as gexf from './gexf';
 import prepareBoxplotData from './prepareBoxplotData';
-import { boxplotTransform } from './boxplotTransform';
+// import { boxplotTransform } from './boxplotTransform';
 
 export const version = '1.0.0';
 
 export {gexf};
 
 export {prepareBoxplotData};
-export {boxplotTransform};
+// export {boxplotTransform};
 
 // For backward compatibility, where the namespace `dataTool` will
 // be mounted on `echarts` is the extension `dataTool` is imported.
@@ -38,5 +38,5 @@ if (echarts.dataTool) {
     echarts.dataTool.version = version;
     echarts.dataTool.gexf = gexf;
     echarts.dataTool.prepareBoxplotData = prepareBoxplotData;
-    echarts.dataTool.boxplotTransform = boxplotTransform;
+    // echarts.dataTool.boxplotTransform = boxplotTransform;
 }


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

Reply via email to