Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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,
},
},
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,
},
{
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',