How to use the @nivo/geo.GeoMapDefaultProps.projectionTranslation 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
required: false,
        default: GeoMapDefaultProps.projectionScale,
        controlType: 'range',
        controlGroup: 'Base',
        controlOptions: {
            min: 0,
            max: 200,
        },
    },
    {
        key: 'projectionTranslation',
        type: '{[x: number, y: number]}',
        scopes: '*',
        description: 'Projection x/y translation.',
        required: false,
        default: GeoMapDefaultProps.projectionTranslation,
    },
    {
        key: 'projectionTranslation[0]',
        excludeFromDoc: true,
        scopes: '*',
        description: 'Projection x translation.',
        required: false,
        default: GeoMapDefaultProps.projectionTranslation[0],
        controlType: 'range',
        controlGroup: 'Base',
        controlOptions: {
            min: -1,
            max: 1,
            step: 0.05,
        },
    },
github plouc / nivo / website / src / data / components / geo / props.js View on Github external
required: false,
        defaultValue: GeoMapDefaultProps.projectionScale,
        type: 'number',
        controlType: 'range',
        group: 'Projection',
        controlOptions: {
            min: 0,
            max: 400,
        },
    },
    {
        key: 'projectionTranslation',
        type: '[number, number]',
        help: 'Projection x/y translation.',
        required: false,
        defaultValue: GeoMapDefaultProps.projectionTranslation,
        controlType: 'numberArray',
        group: 'Projection',
        controlOptions: {
            unit: 'px',
            items: [
                {
                    label: 'x',
                    min: -1,
                    max: 1,
                    step: 0.05,
                },
                {
                    label: 'y',
                    min: -1,
                    max: 1,
                    step: 0.05,
github plouc / nivo / website / src / components / charts / geo / props.js View on Github external
},
    {
        key: 'projectionTranslation',
        type: '{[x: number, y: number]}',
        scopes: '*',
        description: 'Projection x/y translation.',
        required: false,
        default: GeoMapDefaultProps.projectionTranslation,
    },
    {
        key: 'projectionTranslation[0]',
        excludeFromDoc: true,
        scopes: '*',
        description: 'Projection x translation.',
        required: false,
        default: GeoMapDefaultProps.projectionTranslation[0],
        controlType: 'range',
        controlGroup: 'Base',
        controlOptions: {
            min: -1,
            max: 1,
            step: 0.05,
        },
    },
    {
        key: 'projectionTranslation[1]',
        excludeFromDoc: true,
        scopes: '*',
        description: 'Projection y translation.',
        required: false,
        default: GeoMapDefaultProps.projectionTranslation[1],
        controlType: 'range',