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

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


The following commit(s) were added to refs/heads/master by this push:
     new 98437fb  chore: removing VictoryTheme.js (#10445)
98437fb is described below

commit 98437fb3c9b731a5914c716c014ff487c5262945
Author: Evan Rusackas <e...@preset.io>
AuthorDate: Mon Jul 27 21:12:45 2020 -0700

    chore: removing VictoryTheme.js (#10445)
---
 superset-frontend/src/components/VictoryTheme.js | 184 -----------------------
 1 file changed, 184 deletions(-)

diff --git a/superset-frontend/src/components/VictoryTheme.js 
b/superset-frontend/src/components/VictoryTheme.js
deleted file mode 100644
index ad2469c..0000000
--- a/superset-frontend/src/components/VictoryTheme.js
+++ /dev/null
@@ -1,184 +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.
- */
-const A11Y_BABU = '#00A699';
-const AXIS_LINE_GRAY = '#484848';
-
-// Colors
-const colors = [
-  '#ffffff',
-  '#f0f0f0',
-  '#d9d9d9',
-  '#bdbdbd',
-  '#969696',
-  '#737373',
-  '#525252',
-  '#252525',
-  '#000000',
-];
-
-const charcoal = '#484848';
-
-// Typography
-const sansSerif = '"Roboto", sans-serif';
-const letterSpacing = 'normal';
-const fontSize = 8;
-
-// Layout
-const baseProps = {
-  width: 450,
-  height: 300,
-  padding: 50,
-  colorScale: colors,
-};
-
-// Labels
-const baseLabelStyles = {
-  fontFamily: sansSerif,
-  fontSize,
-  letterSpacing,
-  padding: 10,
-  fill: charcoal,
-  stroke: 'transparent',
-};
-
-// Strokes
-const strokeLinecap = 'round';
-const strokeLinejoin = 'round';
-
-// Create the theme
-const theme = {
-  area: {
-    style: {
-      data: {
-        fill: charcoal,
-      },
-      labels: baseLabelStyles,
-    },
-    ...baseProps,
-  },
-  axis: {
-    style: {
-      axis: {
-        fill: 'none',
-        stroke: AXIS_LINE_GRAY,
-        strokeWidth: 1,
-        strokeLinecap,
-        strokeLinejoin,
-      },
-      axisLabel: { ...baseLabelStyles, padding: 25 },
-      grid: {
-        fill: 'none',
-        stroke: 'transparent',
-      },
-      ticks: {
-        fill: 'none',
-        padding: 10,
-        size: 1,
-        stroke: 'transparent',
-      },
-      tickLabels: baseLabelStyles,
-    },
-    ...baseProps,
-  },
-  bar: {
-    style: {
-      data: {
-        fill: A11Y_BABU,
-        padding: 10,
-        stroke: 'transparent',
-        strokeWidth: 0,
-        width: 8,
-      },
-      labels: baseLabelStyles,
-    },
-    ...baseProps,
-  },
-  candlestick: {
-    style: {
-      data: {
-        stroke: A11Y_BABU,
-        strokeWidth: 1,
-      },
-      labels: { ...baseLabelStyles, padding: 25, textAnchor: 'end' },
-    },
-    candleColors: {
-      positive: '#ffffff',
-      negative: charcoal,
-    },
-    ...baseProps,
-  },
-  chart: baseProps,
-  errorbar: {
-    style: {
-      data: {
-        fill: 'none',
-        stroke: charcoal,
-        strokeWidth: 2,
-      },
-      labels: { ...baseLabelStyles, textAnchor: 'start' },
-    },
-    ...baseProps,
-  },
-  group: {
-    colorScale: colors,
-    ...baseProps,
-  },
-  line: {
-    style: {
-      data: {
-        fill: 'none',
-        stroke: A11Y_BABU,
-        strokeWidth: 2,
-      },
-      labels: { ...baseLabelStyles, textAnchor: 'start' },
-    },
-    ...baseProps,
-  },
-  pie: {
-    style: {
-      data: {
-        padding: 10,
-        stroke: 'none',
-        strokeWidth: 1,
-      },
-      labels: { ...baseLabelStyles, padding: 200, textAnchor: 'middle' },
-    },
-    colorScale: colors,
-    width: 400,
-    height: 400,
-    padding: 50,
-  },
-  scatter: {
-    style: {
-      data: {
-        fill: charcoal,
-        stroke: 'transparent',
-        strokeWidth: 0,
-      },
-      labels: { ...baseLabelStyles, textAnchor: 'middle' },
-    },
-    ...baseProps,
-  },
-  stack: {
-    colorScale: colors,
-    ...baseProps,
-  },
-};
-
-export default theme;

Reply via email to