Skip to content

Commit

Permalink
feat(core): remove license headers from props utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Dec 18, 2020
1 parent 37cb3d1 commit b05913d
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 65 deletions.
8 changes: 0 additions & 8 deletions packages/core/src/props/colors.js
@@ -1,11 +1,3 @@
/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import PropTypes from 'prop-types'
import { quantizeColorScalesKeys } from '../lib/colors'

Expand Down
8 changes: 0 additions & 8 deletions packages/core/src/props/curve.js
@@ -1,11 +1,3 @@
/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import PropTypes from 'prop-types'
import without from 'lodash/without'
import {
Expand Down
8 changes: 0 additions & 8 deletions packages/core/src/props/defs.js
@@ -1,11 +1,3 @@
/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import PropTypes from 'prop-types'

export const defsPropTypes = {
Expand Down
8 changes: 0 additions & 8 deletions packages/core/src/props/index.js
@@ -1,11 +1,3 @@
/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import PropTypes from 'prop-types'

export const marginPropType = PropTypes.shape({
Expand Down
8 changes: 0 additions & 8 deletions packages/core/src/props/stack.js
@@ -1,11 +1,3 @@
/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import PropTypes from 'prop-types'
import {
// order
Expand Down
8 changes: 0 additions & 8 deletions packages/core/src/props/treeMap.js
@@ -1,11 +1,3 @@
/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import PropTypes from 'prop-types'
import {
treemapBinary,
Expand Down
30 changes: 15 additions & 15 deletions website/src/pages/pie/api.js
Expand Up @@ -64,22 +64,22 @@ const PieApi = () => {
modifiers: [['darker', 0.2]],
},

enableRadialLabels: true,
radialLabel: 'id',
radialLabelsSkipAngle: 10,
radialLabelsTextXOffset: 6,
radialLabelsTextColor: '#333333',
radialLabelsLinkOffset: 0,
radialLabelsLinkDiagonalLength: 16,
radialLabelsLinkHorizontalLength: 24,
radialLabelsLinkStrokeWidth: 1,
radialLabelsLinkColor: { from: 'color' },
enableArcLinkLabels: true,
arcLinkLabel: 'id',
arcLinkLabelsSkipAngle: 10,
arcLinkLabelsTextOffset: 6,
arcLinkLabelsTextColor: '#333333',
arcLinkLabelsOffset: 0,
arcLinkLabelsDiagonalLength: 16,
arcLinkLabelsStraightLength: 24,
arcLinkLabelsThickness: 1,
arcLinkLabelsColor: { from: 'color' },

enableSliceLabels: true,
sliceLabel: 'value',
sliceLabelsRadiusOffset: 0.5,
sliceLabelsSkipAngle: 10,
sliceLabelsTextColor: '#333333',
enableArcLabels: true,
arcLabel: 'value',
arcLabelsRadiusOffset: 0.5,
arcLabelsSkipAngle: 10,
arcLabelsTextColor: '#333333',

data: JSON.stringify(data, null, ' '),
}}
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/pie/canvas.js
Expand Up @@ -60,7 +60,7 @@ const initialProperties = {
arcLinkLabelsOffset: 0,
arcLinkLabelsDiagonalLength: 16,
arcLinkLabelsStraightLength: 24,
arcLinkLabelsThickness: 1,
arcLinkLabelsThickness: 2,
arcLinkLabelsColor: { from: 'color' },

enableArcLabels: true,
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/pie/index.js
Expand Up @@ -49,7 +49,7 @@ const initialProperties = {
arcLinkLabelsOffset: 0,
arcLinkLabelsDiagonalLength: 16,
arcLinkLabelsStraightLength: 24,
arcLinkLabelsThickness: 1,
arcLinkLabelsThickness: 2,
arcLinkLabelsColor: { from: 'color' },

enableArcLabels: true,
Expand Down

0 comments on commit b05913d

Please sign in to comment.