How to use the @nivo/geo.GeoMapDefaultProps.projectionRotation function in @nivo/geo

To help you get started, we’ve selected a few @nivo/geo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github plouc / nivo / website / src / components / charts / geo / props.js View on Github external
},
    {
        key: 'projectionRotation',
        type: '{[lambda: number, phi: number, gamma: number]}',
        scopes: '*',
        description: 'Projection rotation.',
        required: false,
        default: GeoMapDefaultProps.projectionRotation,
    },
    {
        key: 'projectionRotation[0]',
        excludeFromDoc: true,
        scopes: '*',
        description: 'Projection rotation lambda (λ).',
        required: false,
        default: GeoMapDefaultProps.projectionRotation[0],
        controlType: 'range',
        controlGroup: 'Base',
        controlOptions: {
            min: -400,
            max: 400,
        },
    },
    {
        key: 'projectionRotation[1]',
        excludeFromDoc: true,
        scopes: '*',
        description: 'Projection rotation phi (φ).',
        required: false,
        default: GeoMapDefaultProps.projectionRotation[1],
        controlType: 'range',
        controlGroup: 'Base',
github plouc / nivo / website / src / components / charts / geo / props.js View on Github external
default: GeoMapDefaultProps.projectionTranslation[1],
        controlType: 'range',
        controlGroup: 'Base',
        controlOptions: {
            min: -1,
            max: 1,
            step: 0.05,
        },
    },
    {
        key: 'projectionRotation',
        type: '{[lambda: number, phi: number, gamma: number]}',
        scopes: '*',
        description: 'Projection rotation.',
        required: false,
        default: GeoMapDefaultProps.projectionRotation,
    },
    {
        key: 'projectionRotation[0]',
        excludeFromDoc: true,
        scopes: '*',
        description: 'Projection rotation lambda (λ).',
        required: false,
        default: GeoMapDefaultProps.projectionRotation[0],
        controlType: 'range',
        controlGroup: 'Base',
        controlOptions: {
            min: -400,
            max: 400,
        },
    },
    {
github plouc / nivo / website / src / data / components / geo / props.js View on Github external
},
                {
                    label: 'y',
                    min: -1,
                    max: 1,
                    step: 0.05,
                },
            ],
        },
    },
    {
        key: 'projectionRotation',
        type: '[number, number, number]',
        help: 'Projection rotation.',
        required: false,
        defaultValue: GeoMapDefaultProps.projectionRotation,
        controlType: 'numberArray',
        group: 'Projection',
        controlOptions: {
            items: [
                {
                    label: 'lambda (λ)',
                    min: -360,
                    max: 360,
                },
                {
                    label: 'phi (φ)',
                    min: -360,
                    max: 360,
                },
                {
                    label: 'gamma (γ)',