text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```javascript import React from 'react' import { Row, Col, Card, Button } from 'antd' import * as d3 from 'd3-shape' import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip } from 'recharts' import Container from './Container' const data = [ { name: 'Page A', uv: 4000, pv: 2400, amt: 2400, }, { name: 'Page B', uv: 3000, pv: 1398, amt: 2210, }, { name: 'Page C', uv: 2000, pv: 9800, amt: 2290, }, { name: 'Page D', uv: 2780, pv: 3908, amt: 2000, }, { name: 'Page E', uv: 1890, pv: 4800, amt: 2181, }, { name: 'Page F', uv: 2390, pv: 3800, amt: 2500, }, { name: 'Page G', uv: 3490, pv: 4300, amt: 2100, }, ] const mixData = [ { name: 'Page A', uv: 4000, pv: 2400, amt: 2400, }, { name: 'Page B', uv: 3000, pv: 1398, amt: 2210, }, { name: 'Page C', uv: 2000, pv: 9800, amt: 2290, }, { name: 'Page D', uv: 2780, pv: 3908, amt: 2000, }, { name: 'Page E', uv: 1890, pv: 4800, amt: 2181, }, { name: 'Page F', uv: 2390, pv: 3800, amt: 2500, }, { name: 'Page G', uv: 3490, pv: 4300, amt: 2100, }, ] const percentData = [ { month: '2015.01', a: 4000, b: 2400, c: 2400, }, { month: '2015.02', a: 3000, b: 1398, c: 2210, }, { month: '2015.03', a: 2000, b: 9800, c: 2290, }, { month: '2015.04', a: 2780, b: 3908, c: 2000, }, { month: '2015.05', a: 1890, b: 4800, c: 2181, }, { month: '2015.06', a: 2390, b: 3800, c: 2500, }, { month: '2015.07', a: 3490, b: 4300, c: 2100, }, ] const colProps = { lg: 12, md: 24, } const SimpleAreaChart = () => ( <Container> <AreaChart data={data} margin={{ top: 10, right: 30, left: 0, bottom: 0, }} > <XAxis dataKey="name" /> <YAxis /> <CartesianGrid strokeDasharray="3 3" /> <Tooltip /> <Area type="monotone" dataKey="uv" stroke="#8884d8" fill="#8884d8" /> </AreaChart> </Container> ) const StackedAreaChart = () => ( <Container> <AreaChart data={mixData} margin={{ top: 10, right: 30, left: 0, bottom: 0, }} > <XAxis dataKey="name" /> <YAxis /> <CartesianGrid strokeDasharray="3 3" /> <Tooltip /> <Area type="monotone" dataKey="uv" stackId="1" stroke="#8884d8" fill="#8884d8" /> <Area type="monotone" dataKey="pv" stackId="1" stroke="#82ca9d" fill="#82ca9d" /> <Area type="monotone" dataKey="amt" stackId="1" stroke="#ffc658" fill="#ffc658" /> </AreaChart> </Container> ) // StackedAreaChart const toPercent = (decimal, fixed = 0) => { return `${(decimal * 100).toFixed(fixed)}%` } const getPercent = (value, total) => { const ratio = total > 0 ? value / total : 0 return toPercent(ratio, 2) } const renderTooltipContent = o => { const { payload, label } = o const total = payload.reduce((result, entry) => result + entry.value, 0) return ( <div className="customized-tooltip-content"> <p className="total">{`${label} (Total: ${total})`}</p> <ul className="list"> {payload.map((entry, index) => ( <li key={`item-${index}`} style={{ color: entry.color, }} > {`${entry.name}: ${entry.value}(${getPercent(entry.value, total)})`} </li> ))} </ul> </div> ) } const PercentAreaChart = () => ( <Container> <AreaChart data={percentData} stackOffset="expand" margin={{ top: 10, right: 30, left: 0, bottom: 0, }} > <XAxis dataKey="month" /> <YAxis tickFormatter={toPercent} /> <CartesianGrid strokeDasharray="3 3" /> <Tooltip content={renderTooltipContent} /> <Area type="monotone" dataKey="a" stackId="1" stroke="#8884d8" fill="#8884d8" /> <Area type="monotone" dataKey="b" stackId="1" stroke="#82ca9d" fill="#82ca9d" /> <Area type="monotone" dataKey="c" stackId="1" stroke="#ffc658" fill="#ffc658" /> </AreaChart> </Container> ) // CardinalAreaChart const cardinal = d3.curveCardinal.tension(0.2) const CardinalAreaChart = () => ( <Container> <AreaChart data={mixData} margin={{ top: 10, right: 30, left: 0, bottom: 0, }} > <XAxis dataKey="name" /> <YAxis /> <CartesianGrid strokeDasharray="3 3" /> <Tooltip /> <Area type="monotone" dataKey="uv" stroke="#8884d8" fill="#8884d8" fillOpacity={0.3} /> <Area type={cardinal} dataKey="pv" stroke="#82ca9d" fill="#82ca9d" fillOpacity={0.3} /> </AreaChart> </Container> ) const AreaChartPage = () => ( <div className="content-inner"> <Button type="primary" style={{ position: 'absolute', right: 0, top: -48, }} > <a href="path_to_url#/en-US/examples/TinyBarChart" target="blank" > Show More </a> </Button> <Row gutter={32}> <Col {...colProps}> <Card title="SimpleAreaChart"> <SimpleAreaChart /> </Card> </Col> <Col {...colProps}> <Card title="StackedAreaChart"> <StackedAreaChart /> </Card> </Col> <Col {...colProps}> <Card title="PercentAreaChart"> <PercentAreaChart /> </Card> </Col> <Col {...colProps}> <Card title="CardinalAreaChart"> <CardinalAreaChart /> </Card> </Col> </Row> </div> ) export default AreaChartPage ```
/content/code_sandbox/src/pages/chart/Recharts/AreaChartComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
2,018
```javascript import React from 'react' import PropTypes from 'prop-types' import { ResponsiveContainer } from 'recharts' import styles from './Container.less' const Container = ({ children, ratio = 5 / 2, minHeight = 250, maxHeight = 350, }) => ( <div className={styles.container} style={{ minHeight, maxHeight }}> <div style={{ marginTop: `${100 / ratio}%` || '100%' }} /> <div className={styles.content} style={{ minHeight, maxHeight }}> <ResponsiveContainer>{children}</ResponsiveContainer> </div> </div> ) Container.propTypes = { children: PropTypes.element.isRequired, ratio: PropTypes.number, minHeight: PropTypes.number, maxHeight: PropTypes.number, } export default Container ```
/content/code_sandbox/src/pages/chart/Recharts/Container.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
162
```javascript import React from 'react' import PropTypes from 'prop-types' import { Row, Col, Card, Button } from 'antd' import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, } from 'recharts' import Container from './Container' const data = [ { name: 'Page A', uv: 4000, pv: 2400, amt: 2400, }, { name: 'Page B', uv: 3000, pv: 1398, amt: 2210, }, { name: 'Page C', uv: 2000, pv: 9800, amt: 2290, }, { name: 'Page D', uv: 2780, pv: 3908, amt: 2000, }, { name: 'Page E', uv: 1890, pv: 4800, amt: 2181, }, { name: 'Page F', uv: 2390, pv: 3800, amt: 2500, }, { name: 'Page G', uv: 3490, pv: 4300, amt: 2100, }, ] const mixData = [ { name: 'Page A', uv: 4000, female: 2400, male: 2400, }, { name: 'Page B', uv: 3000, female: 1398, male: 2210, }, { name: 'Page C', uv: 2000, female: 9800, male: 2290, }, { name: 'Page D', uv: 2780, female: 3908, male: 2000, }, { name: 'Page E', uv: 1890, female: 4800, male: 2181, }, { name: 'Page F', uv: 2390, female: 3800, male: 2500, }, { name: 'Page G', uv: 3490, female: 4300, male: 2100, }, ] const colProps = { lg: 12, md: 24, } const SimpleBarChart = () => ( <Container> <BarChart data={data} margin={{ top: 5, right: 30, left: 20, bottom: 5, }} > <XAxis dataKey="name" /> <YAxis /> <CartesianGrid strokeDasharray="3 3" /> <Tooltip /> <Legend /> <Bar dataKey="pv" fill="#8884d8" /> <Bar dataKey="uv" fill="#82ca9d" /> </BarChart> </Container> ) const StackedBarChart = () => ( <Container> <BarChart data={data} margin={{ top: 20, right: 30, left: 20, bottom: 5, }} > <XAxis dataKey="name" /> <YAxis /> <CartesianGrid strokeDasharray="3 3" /> <Tooltip /> <Legend /> <Bar dataKey="pv" stackId="a" fill="#8884d8" /> <Bar dataKey="uv" stackId="a" fill="#82ca9d" /> </BarChart> </Container> ) const MixBarChart = () => ( <Container> <BarChart data={mixData} margin={{ top: 20, right: 30, left: 20, bottom: 5, }} > <XAxis dataKey="name" /> <YAxis /> <CartesianGrid strokeDasharray="3 3" /> <Tooltip /> <Legend /> <Bar dataKey="female" stackId="a" fill="#8884d8" /> <Bar dataKey="male" stackId="a" fill="#82ca9d" /> <Bar dataKey="uv" fill="#ffc658" /> </BarChart> </Container> ) // CustomShapeBarChart const getPath = (x, y, width, height) => { return `M${x},${y + height} C${x + width / 3},${y + height} ${x + width / 2},${y + height / 3} ${x + width / 2}, ${y} C${x + width / 2},${y + height / 3} ${x + (2 * width) / 3},${y + height} ${x + width}, ${y + height} Z` } const TriangleBar = props => { const { fill, x, y, width, height } = props return <path d={getPath(x, y, width, height)} stroke="none" fill={fill} /> } TriangleBar.propTypes = { fill: PropTypes.string, x: PropTypes.number, y: PropTypes.number, width: PropTypes.number, height: PropTypes.number, } const CustomShapeBarChart = () => ( <Container> <BarChart data={mixData} margin={{ top: 20, right: 30, left: 20, bottom: 5, }} > <XAxis dataKey="name" /> <YAxis /> <CartesianGrid strokeDasharray="3 3" /> <Bar dataKey="female" fill="#8884d8" shape={<TriangleBar />} label /> </BarChart> </Container> ) const BarChartPage = () => ( <div className="content-inner"> <Button type="primary" style={{ position: 'absolute', right: 0, top: -48, }} > <a href="path_to_url#/en-US/examples/TinyBarChart" target="blank" > Show More </a> </Button> <Row gutter={32}> <Col {...colProps}> <Card title="SimpleBarChart"> <SimpleBarChart /> </Card> </Col> <Col {...colProps}> <Card title="StackedBarChart"> <StackedBarChart /> </Card> </Col> <Col {...colProps}> <Card title="MixBarChart"> <MixBarChart /> </Card> </Col> <Col {...colProps}> <Card title="CustomShapeBarChart"> <CustomShapeBarChart /> </Card> </Col> </Row> </div> ) export default BarChartPage ```
/content/code_sandbox/src/pages/chart/Recharts/BarChartComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1,530
```javascript import React from 'react' import PropTypes from 'prop-types' import { Row, Col, Card, Button } from 'antd' import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, } from 'recharts' import Container from './Container' const data = [ { name: 'Page A', uv: 4000, pv: 2400, amt: 2400, }, { name: 'Page B', uv: 3000, pv: 1398, amt: 2210, }, { name: 'Page C', uv: 2000, pv: 9800, amt: 2290, }, { name: 'Page D', uv: 2780, pv: 3908, amt: 2000, }, { name: 'Page E', uv: 1890, pv: 4800, amt: 2181, }, { name: 'Page F', uv: 2390, pv: 3800, amt: 2500, }, { name: 'Page G', uv: 3490, pv: 4300, amt: 2100, }, ] const colProps = { lg: 12, md: 24, } const SimpleLineChart = () => ( <Container> <LineChart data={data} margin={{ top: 5, right: 30, left: 20, bottom: 5, }} > <XAxis dataKey="name" /> <YAxis /> <CartesianGrid strokeDasharray="3 3" /> <Tooltip /> <Legend /> <Line type="monotone" dataKey="pv" stroke="#8884d8" activeDot={{ r: 8, }} /> <Line type="monotone" dataKey="uv" stroke="#82ca9d" /> </LineChart> </Container> ) const VerticalLineChart = () => ( <Container> <LineChart layout="vertical" width={600} height={300} data={data} margin={{ top: 20, right: 30, left: 20, bottom: 5, }} > <XAxis type="number" /> <YAxis dataKey="name" type="category" /> <CartesianGrid strokeDasharray="3 3" /> <Tooltip /> <Legend /> <Line dataKey="pv" stroke="#8884d8" /> <Line dataKey="uv" stroke="#82ca9d" /> </LineChart> </Container> ) const DashedLineChart = () => ( <Container> <LineChart width={600} height={300} data={data} margin={{ top: 5, right: 30, left: 20, bottom: 5, }} > <XAxis dataKey="name" /> <YAxis /> <CartesianGrid strokeDasharray="3 3" /> <Tooltip /> <Legend /> <Line type="monotone" dataKey="pv" stroke="#8884d8" strokeDasharray="5 5" /> <Line type="monotone" dataKey="uv" stroke="#82ca9d" strokeDasharray="3 4 5 2" /> </LineChart> </Container> ) // CustomizedDotLineChart const CustomizedDot = ({ cx, cy, payload }) => { if (payload.value > 2500) { return ( <svg x={cx - 10} y={cy - 10} width={20} height={20} fill="red" viewBox="0 0 1024 1024" > <path d="M512 1009.984c-274.912 0-497.76-222.848-497.76-497.76s222.848-497.76 497.76-497.76c274.912 0 497.76 222.848 497.76 497.76s-222.848 497.76-497.76 497.76zM340.768 295.936c-39.488 0-71.52 32.8-71.52 73.248s32.032 73.248 71.52 73.248c39.488 0 71.52-32.8 71.52-73.248s-32.032-73.248-71.52-73.248zM686.176 296.704c-39.488 0-71.52 32.8-71.52 73.248s32.032 73.248 71.52 73.248c39.488 0 71.52-32.8 71.52-73.248s-32.032-73.248-71.52-73.248zM772.928 555.392c-18.752-8.864-40.928-0.576-49.632 18.528-40.224 88.576-120.256 143.552-208.832 143.552-85.952 0-164.864-52.64-205.952-137.376-9.184-18.912-31.648-26.592-50.08-17.28-18.464 9.408-21.216 21.472-15.936 32.64 52.8 111.424 155.232 186.784 269.76 186.784 117.984 0 217.12-70.944 269.76-186.784 8.672-19.136 9.568-31.2-9.12-40.096z" /> </svg> ) } return ( <svg x={cx - 10} y={cy - 10} width={20} height={20} fill="green" viewBox="0 0 1024 1024" > <path d="M517.12 53.248q95.232 0 179.2 36.352t145.92 98.304 98.304 145.92 36.352 179.2-36.352 179.2-98.304 145.92-145.92 98.304-179.2 36.352-179.2-36.352-145.92-98.304-98.304-145.92-36.352-179.2 36.352-179.2 98.304-145.92 145.92-98.304 179.2-36.352zM663.552 261.12q-15.36 0-28.16 6.656t-23.04 18.432-15.872 27.648-5.632 33.28q0 35.84 21.504 61.44t51.2 25.6 51.2-25.6 21.504-61.44q0-17.408-5.632-33.28t-15.872-27.648-23.04-18.432-28.16-6.656zM373.76 261.12q-29.696 0-50.688 25.088t-20.992 60.928 20.992 61.44 50.688 25.6 50.176-25.6 20.48-61.44-20.48-60.928-50.176-25.088zM520.192 602.112q-51.2 0-97.28 9.728t-82.944 27.648-62.464 41.472-35.84 51.2q-1.024 1.024-1.024 2.048-1.024 3.072-1.024 8.704t2.56 11.776 7.168 11.264 12.8 6.144q25.6-27.648 62.464-50.176 31.744-19.456 79.36-35.328t114.176-15.872q67.584 0 116.736 15.872t81.92 35.328q37.888 22.528 63.488 50.176 17.408-5.12 19.968-18.944t0.512-18.944-3.072-7.168-1.024-3.072q-26.624-55.296-100.352-88.576t-176.128-33.28z" /> </svg> ) } CustomizedDot.propTypes = { cx: PropTypes.number, cy: PropTypes.number, payload: PropTypes.object, } const CustomizedDotLineChart = () => ( <Container> <LineChart width={600} height={300} data={data} margin={{ top: 5, right: 30, left: 20, bottom: 5, }} > <XAxis dataKey="name" /> <YAxis /> <CartesianGrid strokeDasharray="3 3" /> <Tooltip /> <Legend /> <Line type="monotone" dataKey="pv" stroke="#8884d8" dot={<CustomizedDot />} /> <Line type="monotone" dataKey="uv" stroke="#82ca9d" /> </LineChart> </Container> ) const LineChartPage = () => ( <div className="content-inner"> <Button type="primary" style={{ position: 'absolute', right: 0, top: -48, }} > <a href="path_to_url#/en-US/examples/TinyBarChart" target="blank" > Show More </a> </Button> <Row gutter={32}> <Col {...colProps}> <Card title="SimpleLineChart"> <SimpleLineChart /> </Card> </Col> <Col {...colProps}> <Card title="DashedLineChart"> <DashedLineChart /> </Card> </Col> <Col {...colProps}> <Card title="CustomizedDotLineChart"> <CustomizedDotLineChart /> </Card> </Col> <Col {...colProps}> <Card title="VerticalLineChart"> <VerticalLineChart /> </Card> </Col> </Row> </div> ) export default LineChartPage ```
/content/code_sandbox/src/pages/chart/Recharts/LineChartComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
2,465
```less .chart { :global { .ant-card { overflow: hidden; margin-bottom: 24px; } } } ```
/content/code_sandbox/src/pages/chart/Recharts/index.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
30
```less .container { width: 100%; position: relative; display: inline-block; :global { .recharts-responsive-container { width: e('calc(100% + 56px)') !important; margin-left: -32px; } } } .content { position: absolute; left: 0; right: 0; top: 0; bottom: 0; } ```
/content/code_sandbox/src/pages/chart/Recharts/Container.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
94
```javascript import React from 'react' import { Radio } from 'antd' import { Page } from 'components' import ReChartsComponent from './ReChartsComponent' import styles from './index.less' const RadioGroup = Radio.Group const chartList = [ { label: 'lineChart', value: 'lineChart', }, { label: 'barChart', value: 'barChart', }, { label: 'areaChart', value: 'areaChart', }, ] class Chart extends React.Component { constructor() { super() this.state = { type: '', } this.handleRadioGroupChange = this.handleRadioGroupChange.bind(this) } handleRadioGroupChange(e) { this.setState({ type: e.target.value, }) } render() { return ( <Page inner> <RadioGroup options={chartList} defaultValue="lineChart" onChange={this.handleRadioGroupChange} /> <div className={styles.chart}> <ReChartsComponent type={this.state.type} /> </div> </Page> ) } } export default Chart ```
/content/code_sandbox/src/pages/chart/Recharts/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
248
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' const ChartWithEventComponent = () => { const onChartReady = echart => { /* eslint-disable */ console.log('echart is ready', echart) } const onChartLegendselectchanged = (param, echart) => { console.log(param, echart) } const onChartClick = (param, echart) => { console.log(param, echart) } const getOtion = () => { const option = { title: { text: '', subtext: '', x: 'center', }, tooltip: { trigger: 'item', formatter: '{a} <br/>{b} : {c} ({d}%)', }, legend: { orient: 'vertical', left: 'left', data: ['', '', '', '', ''], }, series: [ { name: '', type: 'pie', radius: '55%', center: ['50%', '60%'], data: [ { value: 335, name: '' }, { value: 310, name: '' }, { value: 234, name: '' }, { value: 135, name: '' }, { value: 1548, name: '' }, ], itemStyle: { emphasis: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: 'rgba(0, 0, 0, 0.5)', }, }, }, ], } return option } let onEvents = { click: onChartClick, legendselectchanged: onChartLegendselectchanged, } let code = 'let onEvents = {\n' + " 'click': onChartClick,\n" + " 'legendselectchanged': onChartLegendselectchanged\n" + '}\n\n' + '<ReactEcharts \n' + ' option={getOtion()} \n' + ' style={{height: 300}} \n' + ' onChartReady={onChartReady} \n' + ' onEvents={onEvents} />' return ( <div className="examples"> <div className="parent"> <label> {' '} Chart With event <strong> onEvents </strong>: (Click the chart, and watch the console) </label> <ReactEcharts option={getOtion()} style={{ height: 300 }} onChartReady={onChartReady} onEvents={onEvents} /> <label> code below: </label> <pre> <code>{code}</code> </pre> </div> </div> ) } export default ChartWithEventComponent ```
/content/code_sandbox/src/pages/chart/ECharts/ChartWithEventComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
628
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' import * as echarts from 'echarts' const LunarCalendarComponent = () => { const getOtion = () => { let dateList = [ ['2017-1-1', ''], ['2017-1-2', ''], ['2017-1-3', ''], ['2017-1-4', ''], ['2017-1-5', '', ''], ['2017-1-6', ''], ['2017-1-7', ''], ['2017-1-8', ''], ['2017-1-9', ''], ['2017-1-10', ''], ['2017-1-11', ''], ['2017-1-12', ''], ['2017-1-13', ''], ['2017-1-14', ''], ['2017-1-15', ''], ['2017-1-16', ''], ['2017-1-17', ''], ['2017-1-18', ''], ['2017-1-19', ''], ['2017-1-20', '', ''], ['2017-1-21', ''], ['2017-1-22', ''], ['2017-1-23', ''], ['2017-1-24', ''], ['2017-1-25', ''], ['2017-1-26', ''], ['2017-1-27', ''], ['2017-1-28', ''], ['2017-1-29', ''], ['2017-1-30', ''], ['2017-1-31', ''], ['2017-2-1', ''], ['2017-2-2', ''], ['2017-2-3', '', ''], ['2017-2-4', ''], ['2017-2-5', ''], ['2017-2-6', ''], ['2017-2-7', ''], ['2017-2-8', ''], ['2017-2-9', ''], ['2017-2-10', ''], ['2017-2-11', ''], ['2017-2-12', ''], ['2017-2-13', ''], ['2017-2-14', ''], ['2017-2-15', ''], ['2017-2-16', ''], ['2017-2-17', ''], ['2017-2-18', '', ''], ['2017-2-19', ''], ['2017-2-20', ''], ['2017-2-21', ''], ['2017-2-22', ''], ['2017-2-23', ''], ['2017-2-24', ''], ['2017-2-25', ''], ['2017-2-26', ''], ['2017-2-27', ''], ['2017-2-28', ''], ['2017-3-1', ''], ['2017-3-2', ''], ['2017-3-3', ''], ['2017-3-4', ''], ['2017-3-5', '', ''], ['2017-3-6', ''], ['2017-3-7', ''], ['2017-3-8', ''], ['2017-3-9', ''], ['2017-3-10', ''], ['2017-3-11', ''], ['2017-3-12', ''], ['2017-3-13', ''], ['2017-3-14', ''], ['2017-3-15', ''], ['2017-3-16', ''], ['2017-3-17', ''], ['2017-3-18', ''], ['2017-3-19', ''], ['2017-3-20', '', ''], ['2017-3-21', ''], ['2017-3-22', ''], ['2017-3-23', ''], ['2017-3-24', ''], ['2017-3-25', ''], ['2017-3-26', ''], ['2017-3-27', ''], ['2017-3-28', ''], ['2017-3-29', ''], ['2017-3-30', ''], ['2017-3-31', ''], ['2017-4-1', ''], ['2017-4-2', ''], ['2017-4-3', ''], ['2017-4-4', '', ''], ['2017-4-5', ''], ['2017-4-6', ''], ['2017-4-7', ''], ['2017-4-8', ''], ['2017-4-9', ''], ['2017-4-10', ''], ['2017-4-11', ''], ['2017-4-12', ''], ['2017-4-13', ''], ['2017-4-14', ''], ['2017-4-15', ''], ['2017-4-16', ''], ['2017-4-17', ''], ['2017-4-18', ''], ['2017-4-19', ''], ['2017-4-20', '', ''], ['2017-4-21', ''], ['2017-4-22', ''], ['2017-4-23', ''], ['2017-4-24', ''], ['2017-4-25', ''], ['2017-4-26', ''], ['2017-4-27', ''], ['2017-4-28', ''], ['2017-4-29', ''], ['2017-4-30', ''], ['2017-5-1', ''], ['2017-5-2', ''], ['2017-5-3', ''], ['2017-5-4', ''], ['2017-5-5', '', ''], ['2017-5-6', ''], ['2017-5-7', ''], ['2017-5-8', ''], ['2017-5-9', ''], ['2017-5-10', ''], ['2017-5-11', ''], ['2017-5-12', ''], ['2017-5-13', ''], ['2017-5-14', ''], ['2017-5-15', ''], ['2017-5-16', ''], ['2017-5-17', ''], ['2017-5-18', ''], ['2017-5-19', ''], ['2017-5-20', ''], ['2017-5-21', '', ''], ['2017-5-22', ''], ['2017-5-23', ''], ['2017-5-24', ''], ['2017-5-25', ''], ['2017-5-26', ''], ['2017-5-27', ''], ['2017-5-28', ''], ['2017-5-29', ''], ['2017-5-30', ''], ['2017-5-31', ''], ['2017-6-1', ''], ['2017-6-2', ''], ['2017-6-3', ''], ['2017-6-4', ''], ['2017-6-5', '', ''], ['2017-6-6', ''], ['2017-6-7', ''], ['2017-6-8', ''], ['2017-6-9', ''], ['2017-6-10', ''], ['2017-6-11', ''], ['2017-6-12', ''], ['2017-6-13', ''], ['2017-6-14', ''], ['2017-6-15', ''], ['2017-6-16', ''], ['2017-6-17', ''], ['2017-6-18', ''], ['2017-6-19', ''], ['2017-6-20', ''], ['2017-6-21', '', ''], ['2017-6-22', ''], ['2017-6-23', ''], ['2017-6-24', ''], ['2017-6-25', ''], ['2017-6-26', ''], ['2017-6-27', ''], ['2017-6-28', ''], ['2017-6-29', ''], ['2017-6-30', ''], ['2017-7-1', ''], ['2017-7-2', ''], ['2017-7-3', ''], ['2017-7-4', ''], ['2017-7-5', ''], ['2017-7-6', ''], ['2017-7-7', '', ''], ['2017-7-8', ''], ['2017-7-9', ''], ['2017-7-10', ''], ['2017-7-11', ''], ['2017-7-12', ''], ['2017-7-13', ''], ['2017-7-14', ''], ['2017-7-15', ''], ['2017-7-16', ''], ['2017-7-17', ''], ['2017-7-18', ''], ['2017-7-19', ''], ['2017-7-20', ''], ['2017-7-21', ''], ['2017-7-22', '', ''], ['2017-7-23', ''], ['2017-7-24', ''], ['2017-7-25', ''], ['2017-7-26', ''], ['2017-7-27', ''], ['2017-7-28', ''], ['2017-7-29', ''], ['2017-7-30', ''], ['2017-7-31', ''], ['2017-8-1', ''], ['2017-8-2', ''], ['2017-8-3', ''], ['2017-8-4', ''], ['2017-8-5', ''], ['2017-8-6', ''], ['2017-8-7', '', ''], ['2017-8-8', ''], ['2017-8-9', ''], ['2017-8-10', ''], ['2017-8-11', ''], ['2017-8-12', ''], ['2017-8-13', ''], ['2017-8-14', ''], ['2017-8-15', ''], ['2017-8-16', ''], ['2017-8-17', ''], ['2017-8-18', ''], ['2017-8-19', ''], ['2017-8-20', ''], ['2017-8-21', ''], ['2017-8-22', ''], ['2017-8-23', '', ''], ['2017-8-24', ''], ['2017-8-25', ''], ['2017-8-26', ''], ['2017-8-27', ''], ['2017-8-28', ''], ['2017-8-29', ''], ['2017-8-30', ''], ['2017-8-31', ''], ['2017-9-1', ''], ['2017-9-2', ''], ['2017-9-3', ''], ['2017-9-4', ''], ['2017-9-5', ''], ['2017-9-6', ''], ['2017-9-7', '', ''], ['2017-9-8', ''], ['2017-9-9', ''], ['2017-9-10', ''], ['2017-9-11', ''], ['2017-9-12', ''], ['2017-9-13', ''], ['2017-9-14', ''], ['2017-9-15', ''], ['2017-9-16', ''], ['2017-9-17', ''], ['2017-9-18', ''], ['2017-9-19', ''], ['2017-9-20', ''], ['2017-9-21', ''], ['2017-9-22', ''], ['2017-9-23', '', ''], ['2017-9-24', ''], ['2017-9-25', ''], ['2017-9-26', ''], ['2017-9-27', ''], ['2017-9-28', ''], ['2017-9-29', ''], ['2017-9-30', ''], ['2017-10-1', ''], ['2017-10-2', ''], ['2017-10-3', ''], ['2017-10-4', ''], ['2017-10-5', ''], ['2017-10-6', ''], ['2017-10-7', ''], ['2017-10-8', '', ''], ['2017-10-9', ''], ['2017-10-10', ''], ['2017-10-11', ''], ['2017-10-12', ''], ['2017-10-13', ''], ['2017-10-14', ''], ['2017-10-15', ''], ['2017-10-16', ''], ['2017-10-17', ''], ['2017-10-18', ''], ['2017-10-19', ''], ['2017-10-20', ''], ['2017-10-21', ''], ['2017-10-22', ''], ['2017-10-23', '', ''], ['2017-10-24', ''], ['2017-10-25', ''], ['2017-10-26', ''], ['2017-10-27', ''], ['2017-10-28', ''], ['2017-10-29', ''], ['2017-10-30', ''], ['2017-10-31', ''], ['2017-11-1', ''], ['2017-11-2', ''], ['2017-11-3', ''], ['2017-11-4', ''], ['2017-11-5', ''], ['2017-11-6', ''], ['2017-11-7', '', ''], ['2017-11-8', ''], ['2017-11-9', ''], ['2017-11-10', ''], ['2017-11-11', ''], ['2017-11-12', ''], ['2017-11-13', ''], ['2017-11-14', ''], ['2017-11-15', ''], ['2017-11-16', ''], ['2017-11-17', ''], ['2017-11-18', ''], ['2017-11-19', ''], ['2017-11-20', ''], ['2017-11-21', ''], ['2017-11-22', '', ''], ['2017-11-23', ''], ['2017-11-24', ''], ['2017-11-25', ''], ['2017-11-26', ''], ['2017-11-27', ''], ['2017-11-28', ''], ['2017-11-29', ''], ['2017-11-30', ''], ['2017-12-1', ''], ['2017-12-2', ''], ['2017-12-3', ''], ['2017-12-4', ''], ['2017-12-5', ''], ['2017-12-6', ''], ['2017-12-7', '', ''], ['2017-12-8', ''], ['2017-12-9', ''], ['2017-12-10', ''], ['2017-12-11', ''], ['2017-12-12', ''], ['2017-12-13', ''], ['2017-12-14', ''], ['2017-12-15', ''], ['2017-12-16', ''], ['2017-12-17', ''], ['2017-12-18', ''], ['2017-12-19', ''], ['2017-12-20', ''], ['2017-12-21', ''], ['2017-12-22', '', ''], ['2017-12-23', ''], ['2017-12-24', ''], ['2017-12-25', ''], ['2017-12-26', ''], ['2017-12-27', ''], ['2017-12-28', ''], ['2017-12-29', ''], ['2017-12-30', ''], ['2017-12-31', ''], ] let heatmapData = [] let lunarData = [] for (let i = 0; i < dateList.length; i++) { heatmapData.push([dateList[i][0], Math.random() * 300]) lunarData.push([dateList[i][0], 1, dateList[i][1], dateList[i][2]]) } const option = { tooltip: { formatter(params) { return `: ${params.value[1].toFixed(2)}` }, }, visualMap: { show: false, min: 0, max: 300, calculable: true, seriesIndex: [2], orient: 'horizontal', left: 'center', bottom: 20, inRange: { color: ['#e0ffff', '#006edd'], opacity: 0.3, }, controller: { inRange: { opacity: 0.5, }, }, }, calendar: [ { left: 'center', top: 'middle', cellSize: [70, 70], yearLabel: { show: false }, orient: 'vertical', dayLabel: { firstDay: 1, nameMap: 'cn', }, monthLabel: { show: false, }, range: '2017-03', }, ], series: [ { type: 'scatter', coordinateSystem: 'calendar', symbolSize: 1, label: { normal: { show: true, formatter(params) { let d = echarts.number.parseDate(params.value[0]) return `${d.getDate()}\n\n${params.value[2]}\n\n` }, textStyle: { color: '#000', }, }, }, data: lunarData, }, { type: 'scatter', coordinateSystem: 'calendar', symbolSize: 1, label: { normal: { show: true, formatter(params) { return `\n\n\n${params.value[3] || ''}` }, textStyle: { fontSize: 14, fontWeight: 700, color: '#a00', }, }, }, data: lunarData, }, { name: '', type: 'heatmap', coordinateSystem: 'calendar', data: heatmapData, }, ], } return option } return ( <div className="examples"> <div className="parent"> <label> render a lunar calendar chart. </label> <ReactEcharts option={getOtion()} style={{ height: '500px', width: '100%' }} className="react_for_echarts" /> </div> </div> ) } export default LunarCalendarComponent ```
/content/code_sandbox/src/pages/chart/ECharts/LunarCalendarComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
4,712
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' class DynamicChartComponent extends React.Component { constructor(props) { super(props) this.timeTicket = null this.count = 51 const option = { title: { text: 'Hello Echarts-for-react.', }, tooltip: { trigger: 'axis', }, legend: { data: ['', ''], }, toolbox: { show: true, feature: { dataView: { readOnly: false }, restore: {}, saveAsImage: {}, }, }, grid: { top: 60, left: 30, right: 60, bottom: 30, }, dataZoom: { show: false, start: 0, end: 100, }, visualMap: { show: false, min: 0, max: 1000, color: [ '#BE002F', '#F20C00', '#F00056', '#FF2D51', '#FF2121', '#FF4C00', '#FF7500', '#FF8936', '#FFA400', '#F0C239', '#FFF143', '#FAFF72', '#C9DD22', '#AFDD22', '#9ED900', '#00E500', '#0EB83A', '#0AA344', '#0C8918', '#057748', '#177CB0', ], }, xAxis: [ { type: 'category', boundaryGap: true, data: (function() { let now = new Date() let res = [] let len = 50 while (len--) { res.unshift(now.toLocaleTimeString().replace(/^\D*/, '')) now = new Date(now - 2000) } return res })(), }, { type: 'category', boundaryGap: true, data: (function() { let res = [] let len = 50 while (len--) { res.push(50 - len + 1) } return res })(), }, ], yAxis: [ { type: 'value', scale: true, name: '', max: 20, min: 0, boundaryGap: [0.2, 0.2], }, { type: 'value', scale: true, name: '', max: 1200, min: 0, boundaryGap: [0.2, 0.2], }, ], series: [ { name: '', type: 'bar', xAxisIndex: 1, yAxisIndex: 1, itemStyle: { normal: { barBorderRadius: 4, }, }, animationEasing: 'elasticOut', animationDelay(idx) { return idx * 10 }, animationDelayUpdate(idx) { return idx * 10 }, data: (function() { let res = [] let len = 50 while (len--) { res.push(Math.round(Math.random() * 1000)) } return res })(), }, { name: '', type: 'line', data: (function() { let res = [] let len = 0 while (len < 50) { res.push((Math.random() * 10 + 5).toFixed(1) - 0) len++ } return res })(), }, ], } this.state = { option, } this.fetchNewDate = this.fetchNewDate.bind(this) } fetchNewDate() { let axisData = new Date().toLocaleTimeString().replace(/^\D*/, '') let { option } = this.state option.title.text = `Hello Echarts-for-react.${new Date().getSeconds()}` let data0 = option.series[0].data let data1 = option.series[1].data data0.shift() data0.push(Math.round(Math.random() * 1000)) data1.shift() data1.push((Math.random() * 10 + 5).toFixed(1) - 0) option.xAxis[0].data.shift() option.xAxis[0].data.push(axisData) option.xAxis[1].data.shift() option.xAxis[1].data.push((this.count += 1)) this.setState({ option }) } componentDidMount() { if (this.timeTicket) { clearInterval(this.timeTicket) } this.timeTicket = setInterval(this.fetchNewDate, 1000) } componentWillUnmount() { if (this.timeTicket) { clearInterval(this.timeTicket) } } render() { let code = "<ReactEcharts ref='echartsInstance' \n" + ' option={this.state.option} />\n' return ( <div className="examples"> <div className="parent"> <label> use React state to render dynamic chart</label> <ReactEcharts ref="echarts_react" option={this.state.option} style={{ height: 400 }} /> <label> code below: use state of react to render dynamic chart</label> <pre> <code>{code}</code> </pre> </div> </div> ) } } export default DynamicChartComponent ```
/content/code_sandbox/src/pages/chart/ECharts/DynamicChartComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1,222
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' class GaugeComponent extends React.Component { constructor() { super() const option = { backgroundColor: '#1b1b1b', tooltip: { formatter: '{a} <br/>{c} {b}', }, toolbox: { show: true, feature: { mark: { show: true }, restore: { show: true }, saveAsImage: { show: true }, }, }, series: [ { name: '', type: 'gauge', min: 0, max: 220, splitNumber: 11, radius: '50%', axisLine: { // lineStyle: { // lineStyle color: [[0.09, 'lime'], [0.82, '#1e90ff'], [1, '#ff4500']], width: 3, shadowColor: '#fff', // shadowBlur: 10, }, }, axisLabel: { // textStyle: { // lineStyle fontWeight: 'bolder', color: '#fff', shadowColor: '#fff', // shadowBlur: 10, }, }, axisTick: { // length: 15, // length lineStyle: { // lineStyle color: 'auto', shadowColor: '#fff', // shadowBlur: 10, }, }, splitLine: { // length: 25, // length lineStyle: { // lineStylelineStyle width: 3, color: '#fff', shadowColor: '#fff', // shadowBlur: 10, }, }, pointer: { // shadowColor: '#fff', // shadowBlur: 5, }, title: { textStyle: { // TEXTSTYLE fontWeight: 'bolder', fontSize: 20, fontStyle: 'italic', color: '#fff', shadowColor: '#fff', // shadowBlur: 10, }, }, detail: { backgroundColor: 'rgba(30,144,255,0.8)', borderWidth: 1, borderColor: '#fff', shadowColor: '#fff', // shadowBlur: 5, offsetCenter: [0, '50%'], // x, ypx textStyle: { // TEXTSTYLE fontWeight: 'bolder', color: '#fff', }, }, data: [{ value: 40, name: 'km/h' }], }, { name: '', type: 'gauge', center: ['25%', '55%'], // radius: '30%', min: 0, max: 7, endAngle: 45, splitNumber: 7, axisLine: { // lineStyle: { // lineStyle color: [[0.29, 'lime'], [0.86, '#1e90ff'], [1, '#ff4500']], width: 2, shadowColor: '#fff', // shadowBlur: 10, }, }, axisLabel: { // textStyle: { // lineStyle fontWeight: 'bolder', color: '#fff', shadowColor: '#fff', // shadowBlur: 10, }, }, axisTick: { // length: 12, // length lineStyle: { // lineStyle color: 'auto', shadowColor: '#fff', // shadowBlur: 10, }, }, splitLine: { // length: 20, // length lineStyle: { // lineStylelineStyle width: 3, color: '#fff', shadowColor: '#fff', // shadowBlur: 10, }, }, pointer: { width: 5, shadowColor: '#fff', // shadowBlur: 5, }, title: { offsetCenter: [0, '-30%'], // x, ypx textStyle: { // TEXTSTYLE fontWeight: 'bolder', fontStyle: 'italic', color: '#fff', shadowColor: '#fff', // shadowBlur: 10, }, }, detail: { // backgroundColor: 'rgba(30,144,255,0.8)', // borderWidth: 1, borderColor: '#fff', shadowColor: '#fff', // shadowBlur: 5, width: 80, height: 30, offsetCenter: [25, '20%'], // x, ypx textStyle: { // TEXTSTYLE fontWeight: 'bolder', color: '#fff', }, }, data: [{ value: 1.5, name: 'x1000 r/min' }], }, { name: '', type: 'gauge', center: ['75%', '50%'], // radius: '30%', min: 0, max: 2, startAngle: 135, endAngle: 45, splitNumber: 2, axisLine: { // lineStyle: { // lineStyle color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']], width: 2, shadowColor: '#fff', // shadowBlur: 10, }, }, axisTick: { // length: 12, // length lineStyle: { // lineStyle color: 'auto', shadowColor: '#fff', // shadowBlur: 10, }, }, axisLabel: { textStyle: { // lineStyle fontWeight: 'bolder', color: '#fff', shadowColor: '#fff', // shadowBlur: 10, }, formatter(v) { switch (`${v}`) { case '0': return 'E' case '1': return 'Gas' case '2': return 'F' default: return null } }, }, splitLine: { // length: 15, // length lineStyle: { // lineStylelineStyle width: 3, color: '#fff', shadowColor: '#fff', // shadowBlur: 10, }, }, pointer: { width: 2, shadowColor: '#fff', // shadowBlur: 5, }, title: { show: false, }, detail: { show: false, }, data: [{ value: 0.5, name: 'gas' }], }, { name: '', type: 'gauge', center: ['75%', '50%'], // radius: '30%', min: 0, max: 2, startAngle: 315, endAngle: 225, splitNumber: 2, axisLine: { // lineStyle: { // lineStyle color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']], width: 2, shadowColor: '#fff', // shadowBlur: 10, }, }, axisTick: { // show: false, }, axisLabel: { textStyle: { // lineStyle fontWeight: 'bolder', color: '#fff', shadowColor: '#fff', // shadowBlur: 10, }, formatter(v) { switch (`${v}`) { case '0': return 'H' case '1': return 'Water' case '2': return 'C' default: return null } }, }, splitLine: { // length: 15, // length lineStyle: { // lineStylelineStyle width: 3, color: '#fff', shadowColor: '#fff', // shadowBlur: 10, }, }, pointer: { width: 2, shadowColor: '#fff', // shadowBlur: 5, }, title: { show: false, }, detail: { show: false, }, data: [{ value: 0.5, name: 'gas' }], }, ], } this.state = { option, } } componentDidMount() { if (this.timeTicket) { clearInterval(this.timeTicket) } this.timeTicket = setInterval(() => { let { option } = this.state option.series[0].data[0].value = (Math.random() * 100).toFixed(2) - 0 option.series[1].data[0].value = (Math.random() * 7).toFixed(2) - 0 option.series[2].data[0].value = (Math.random() * 2).toFixed(2) - 0 option.series[3].data[0].value = (Math.random() * 2).toFixed(2) - 0 this.setState({ option }) }, 1000) } componentWillUnmount() { if (this.timeTicket) { clearInterval(this.timeTicket) } } render() { return ( <div className="examples"> <div className="parent"> <label> render a car gauge chart. </label> <ReactEcharts option={this.state.option} style={{ height: '500px', width: '100%' }} className="react_for_echarts" /> </div> </div> ) } } export default GaugeComponent ```
/content/code_sandbox/src/pages/chart/ECharts/GaugeComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
2,202
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' class ChartAPIComponent extends React.Component { render() { const option = { title: { text: '', subtext: '', }, tooltip: { trigger: 'item', formatter: '{a} <br/>{b} : {c}%', }, toolbox: { feature: { dataView: { readOnly: false }, restore: {}, saveAsImage: {}, }, }, legend: { data: ['', '', '', '', ''], }, series: [ { name: '', type: 'funnel', left: '10%', width: '80%', label: { normal: { formatter: '{b}', }, emphasis: { position: 'inside', formatter: '{b}: {c}%', }, }, labelLine: { normal: { show: false, }, }, itemStyle: { normal: { opacity: 0.7, }, }, data: [ { value: 60, name: '' }, { value: 40, name: '' }, { value: 20, name: '' }, { value: 80, name: '' }, { value: 100, name: '' }, ], }, { name: '', type: 'funnel', left: '10%', width: '80%', maxSize: '80%', label: { normal: { position: 'inside', formatter: '{c}%', textStyle: { color: '#fff', }, }, emphasis: { position: 'inside', formatter: '{b}: {c}%', }, }, itemStyle: { normal: { opacity: 0.5, borderColor: '#fff', borderWidth: 2, }, }, data: [ { value: 30, name: '' }, { value: 10, name: '' }, { value: 5, name: '' }, { value: 50, name: '' }, { value: 80, name: '' }, ], }, ], } let code = '<ReactEcharts ref={(e) => { this.echarts_react = e; }} \n' + ' option={this.getOtion()} /> \n' + '\n' + '// use echarts API: path_to_url#echartsInstance' + 'this.echarts_react.getEchartsInstance().getDataURL();' return ( <div className="examples"> <div className="parent"> <label> {' '} use echarts API With <strong> getEchartsInstance() </strong>: (the API will return the echarts instance, then you can use any API of echarts.) </label> <ReactEcharts ref={e => { this.echarts_react = e }} option={option} /> <label> {' '} code below: (echarts API list see: path_to_url#echartsInstance) </label> <pre> <code>{code}</code> </pre> </div> </div> ) } } export default ChartAPIComponent ```
/content/code_sandbox/src/pages/chart/ECharts/ChartAPIComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
731
```javascript import React from 'react' import AdSense from 'react-adsense' import { Link } from 'umi' import DynamicChartComponent from './DynamicChartComponent.js' const MainPageComponent = () => { return ( <div> <h1> echarts-for-react {this.props.params.type} </h1> <h3> {' '} A very simple echarts(v3.0) wrapper for React.{' '} <a href="path_to_url"> hustcc/echarts-for-react </a> </h3> <AdSense.Google client="ca-pub-7292810486004926" slot="7806394673" /> <h4> <Link to="/echarts/simple">Simple demo</Link> | <Link to="/echarts/loading">Echarts loading</Link> | <Link to="/echarts/api">Echarts API</Link> | <Link to="/echarts/events">Echarts events</Link> | <Link to="/echarts/theme">Echarts theme</Link> | <Link to="/echarts/dynamic">Dynamic chart</Link> | <Link to="/echarts/map">Map chart</Link> </h4> <h4> <span style={{ color: 'red' }}>New</span> :&nbsp;&nbsp; <Link to="/echarts/airport">Airport</Link> | <Link to="/echarts/graph">Graph</Link> | <Link to="/echarts/calendar">Calendar</Link> | <Link to="/echarts/treemap">Treemap</Link> | <Link to="/echarts/gauge">Gauge</Link> | <Link to="/echarts/gcalendar">GCalendar</Link> | <Link to="/echarts/lunar">Lunar</Link> | <Link to="/echarts/liquid">Liquidfill</Link> </h4> {this.props.children || <DynamicChartComponent />} <h3> Get it on GitHub!{' '} <a href="path_to_url"> hustcc/echarts-for-react </a> </h3> </div> ) } export default MainPageComponent ```
/content/code_sandbox/src/pages/chart/ECharts/MainPageComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
485
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' import * as echarts from 'echarts' const TreemapComponent = () => { let diskData = [ { value: 180, name: 'Accounts', path: 'Accounts', children: [ { value: 76, name: 'Access', path: 'Accounts/Access', children: [ { value: 12, name: 'DefaultAccessPlugin.bundle', path: 'Accounts/Access/DefaultAccessPlugin.bundle', }, { value: 28, name: 'FacebookAccessPlugin.bundle', path: 'Accounts/Access/FacebookAccessPlugin.bundle', }, { value: 20, name: 'LinkedInAccessPlugin.bundle', path: 'Accounts/Access/LinkedInAccessPlugin.bundle', }, { value: 16, name: 'TencentWeiboAccessPlugin.bundle', path: 'Accounts/Access/TencentWeiboAccessPlugin.bundle', }, ], }, { value: 92, name: 'Authentication', path: 'Accounts/Authentication', children: [ { value: 24, name: 'FacebookAuthenticationPlugin.bundle', path: 'Accounts/Authentication/FacebookAuthenticationPlugin.bundle', }, { value: 16, name: 'LinkedInAuthenticationPlugin.bundle', path: 'Accounts/Authentication/LinkedInAuthenticationPlugin.bundle', }, { value: 20, name: 'TencentWeiboAuthenticationPlugin.bundle', path: 'Accounts/Authentication/TencentWeiboAuthenticationPlugin.bundle', }, { value: 16, name: 'TwitterAuthenticationPlugin.bundle', path: 'Accounts/Authentication/TwitterAuthenticationPlugin.bundle', }, { value: 16, name: 'WeiboAuthenticationPlugin.bundle', path: 'Accounts/Authentication/WeiboAuthenticationPlugin.bundle', }, ], }, { value: 12, name: 'Notification', path: 'Accounts/Notification', children: [ { value: 12, name: 'SPAAccountsNotificationPlugin.bundle', path: 'Accounts/Notification/SPAAccountsNotificationPlugin.bundle', }, ], }, ], }, { value: 1904, name: 'AddressBook Plug-Ins', path: 'AddressBook Plug-Ins', children: [ { value: 744, name: 'CardDAVPlugin.sourcebundle', path: 'AddressBook Plug-Ins/CardDAVPlugin.sourcebundle', children: [ { value: 744, name: 'Contents', path: 'AddressBook Plug-Ins/CardDAVPlugin.sourcebundle/Contents', }, ], }, { value: 28, name: 'DirectoryServices.sourcebundle', path: 'AddressBook Plug-Ins/DirectoryServices.sourcebundle', children: [ { value: 28, name: 'Contents', path: 'AddressBook Plug-Ins/DirectoryServices.sourcebundle/Contents', }, ], }, { value: 680, name: 'Exchange.sourcebundle', path: 'AddressBook Plug-Ins/Exchange.sourcebundle', children: [ { value: 680, name: 'Contents', path: 'AddressBook Plug-Ins/Exchange.sourcebundle/Contents', }, ], }, { value: 432, name: 'LDAP.sourcebundle', path: 'AddressBook Plug-Ins/LDAP.sourcebundle', children: [ { value: 432, name: 'Contents', path: 'AddressBook Plug-Ins/LDAP.sourcebundle/Contents', }, ], }, { value: 20, name: 'LocalSource.sourcebundle', path: 'AddressBook Plug-Ins/LocalSource.sourcebundle', children: [ { value: 20, name: 'Contents', path: 'AddressBook Plug-Ins/LocalSource.sourcebundle/Contents', }, ], }, ], }, { value: 36, name: 'Assistant', path: 'Assistant', children: [ { value: 36, name: 'Plugins', path: 'Assistant/Plugins', children: [ { value: 36, name: 'AddressBook.assistantBundle', path: 'Assistant/Plugins/AddressBook.assistantBundle', }, { value: 8, name: 'GenericAddressHandler.addresshandler', path: 'Recents/Plugins/GenericAddressHandler.addresshandler', }, { value: 12, name: 'MapsRecents.addresshandler', path: 'Recents/Plugins/MapsRecents.addresshandler', }, ], }, ], }, ] let formatUtil = echarts.format function getLevelOption() { return [ { itemStyle: { normal: { borderWidth: 0, gapWidth: 5, }, }, }, { itemStyle: { normal: { gapWidth: 1, }, }, }, { colorSaturation: [0.35, 0.5], itemStyle: { normal: { gapWidth: 1, borderColorSaturation: 0.6, }, }, }, ] } const option = { title: { text: 'Disk Usage', left: 'center', }, tooltip: { formatter(info) { let { value, treePathInfo } = info let treePath = [] for (let i = 1; i < treePathInfo.length; i++) { treePath.push(treePathInfo[i].name) } return [ `<div class="tooltip-title">${formatUtil.encodeHTML( treePath.join('/') )}</div>`, `Disk Usage: ${formatUtil.addCommas(value)} KB`, ].join('') }, }, series: [ { name: 'Disk Usage', type: 'treemap', visibleMin: 300, label: { show: true, formatter: '{b}', }, itemStyle: { normal: { borderColor: '#fff', }, }, levels: getLevelOption(), data: diskData, }, ], } return ( <div className="examples"> <div className="parent"> <label> render a disk usage treemap. </label> <ReactEcharts option={option} style={{ height: '500px', width: '100%' }} className="react_for_echarts" /> </div> </div> ) } export default TreemapComponent ```
/content/code_sandbox/src/pages/chart/ECharts/TreemapComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1,495
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' import 'echarts-gl' const hours = [ '12a', '1a', '2a', '3a', '4a', '5a', '6a', '7a', '8a', '9a', '10a', '11a', '12p', '1p', '2p', '3p', '4p', '5p', '6p', '7p', '8p', '9p', '10p', '11p', ] const days = [ 'Saturday', 'Friday', 'Thursday', 'Wednesday', 'Tuesday', 'Monday', 'Sunday', ] const data = [ [0, 0, 5], [0, 1, 1], [0, 2, 0], [0, 3, 0], [0, 4, 0], [0, 5, 0], [0, 6, 0], [0, 7, 0], [0, 8, 0], [0, 9, 0], [0, 10, 0], [0, 11, 2], [0, 12, 4], [0, 13, 1], [0, 14, 1], [0, 15, 3], [0, 16, 4], [0, 17, 6], [0, 18, 4], [0, 19, 4], [0, 20, 3], [0, 21, 3], [0, 22, 2], [0, 23, 5], [1, 0, 7], [1, 1, 0], [1, 2, 0], [1, 3, 0], [1, 4, 0], [1, 5, 0], [1, 6, 0], [1, 7, 0], [1, 8, 0], [1, 9, 0], [1, 10, 5], [1, 11, 2], [1, 12, 2], [1, 13, 6], [1, 14, 9], [1, 15, 11], [1, 16, 6], [1, 17, 7], [1, 18, 8], [1, 19, 12], [1, 20, 5], [1, 21, 5], [1, 22, 7], [1, 23, 2], [2, 0, 1], [2, 1, 1], [2, 2, 0], [2, 3, 0], [2, 4, 0], [2, 5, 0], [2, 6, 0], [2, 7, 0], [2, 8, 0], [2, 9, 0], [2, 10, 3], [2, 11, 2], [2, 12, 1], [2, 13, 9], [2, 14, 8], [2, 15, 10], [2, 16, 6], [2, 17, 5], [2, 18, 5], [2, 19, 5], [2, 20, 7], [2, 21, 4], [2, 22, 2], [2, 23, 4], [3, 0, 7], [3, 1, 3], [3, 2, 0], [3, 3, 0], [3, 4, 0], [3, 5, 0], [3, 6, 0], [3, 7, 0], [3, 8, 1], [3, 9, 0], [3, 10, 5], [3, 11, 4], [3, 12, 7], [3, 13, 14], [3, 14, 13], [3, 15, 12], [3, 16, 9], [3, 17, 5], [3, 18, 5], [3, 19, 10], [3, 20, 6], [3, 21, 4], [3, 22, 4], [3, 23, 1], [4, 0, 1], [4, 1, 3], [4, 2, 0], [4, 3, 0], [4, 4, 0], [4, 5, 1], [4, 6, 0], [4, 7, 0], [4, 8, 0], [4, 9, 2], [4, 10, 4], [4, 11, 4], [4, 12, 2], [4, 13, 4], [4, 14, 4], [4, 15, 14], [4, 16, 12], [4, 17, 1], [4, 18, 8], [4, 19, 5], [4, 20, 3], [4, 21, 7], [4, 22, 3], [4, 23, 0], [5, 0, 2], [5, 1, 1], [5, 2, 0], [5, 3, 3], [5, 4, 0], [5, 5, 0], [5, 6, 0], [5, 7, 0], [5, 8, 2], [5, 9, 0], [5, 10, 4], [5, 11, 1], [5, 12, 5], [5, 13, 10], [5, 14, 5], [5, 15, 7], [5, 16, 11], [5, 17, 6], [5, 18, 0], [5, 19, 5], [5, 20, 3], [5, 21, 4], [5, 22, 2], [5, 23, 0], [6, 0, 1], [6, 1, 0], [6, 2, 0], [6, 3, 0], [6, 4, 0], [6, 5, 0], [6, 6, 0], [6, 7, 0], [6, 8, 0], [6, 9, 0], [6, 10, 1], [6, 11, 0], [6, 12, 2], [6, 13, 1], [6, 14, 3], [6, 15, 4], [6, 16, 0], [6, 17, 0], [6, 18, 0], [6, 19, 0], [6, 20, 1], [6, 21, 2], [6, 22, 2], [6, 23, 6], ] const option = { tooltip: {}, visualMap: { max: 20, inRange: { color: [ '#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026', ], }, }, xAxis3D: { type: 'category', data: hours, }, yAxis3D: { type: 'category', data: days, }, zAxis3D: { type: 'value', }, grid3D: { boxWidth: 200, boxDepth: 80, light: { main: { intensity: 1.2, }, ambient: { intensity: 0.3, }, }, }, series: [ { type: 'bar3D', data: data.map(item => { return { value: [item[1], item[0], item[2]], } }), shading: 'color', label: { show: false, textStyle: { fontSize: 16, borderWidth: 1, }, }, itemStyle: { opacity: 0.4, }, emphasis: { label: { textStyle: { fontSize: 20, color: '#900', }, }, itemStyle: { color: '#900', }, }, }, ], } const TransparentBar3DComPonent = () => { return ( <ReactEcharts option={option} style={{ height: '700px', width: '100%' }} className="react_for_echarts" /> ) } export default TransparentBar3DComPonent ```
/content/code_sandbox/src/pages/chart/ECharts/TransparentBar3DComPonent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
2,286
```less .chart { label { margin: 24px 0; display: block; font-size: 14px; } pre { padding: 16px; overflow: auto; font-size: 12px; line-height: 2; background-color: #f6f8fa; border-radius: 3px; code { display: inline; max-width: auto; padding: 0; margin: 0; overflow: visible; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; } } } :global { .ant-radio-wrapper { margin-bottom: 16px; } } ```
/content/code_sandbox/src/pages/chart/ECharts/index.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
159
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' import './theme/macarons.js' const SimpleChartComponent = () => { const option = { title: { text: '', }, tooltip: { trigger: 'axis', }, legend: { data: ['', '', ''], }, toolbox: { feature: { saveAsImage: {}, }, }, grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true, }, xAxis: [ { type: 'category', boundaryGap: false, data: ['', '', '', '', '', '', ''], }, ], yAxis: [ { type: 'value', }, ], series: [ { name: '', type: 'line', stack: '', areaStyle: { normal: {} }, data: [120, 132, 101, 134, 90, 230, 210], }, { name: '', type: 'line', stack: '', areaStyle: { normal: {} }, data: [220, 182, 191, 234, 290, 330, 310], }, { name: '', type: 'line', stack: '', areaStyle: { normal: {} }, data: [150, 232, 201, 154, 190, 330, 410], }, ], } let code = '<ReactEcharts \n' + ' option={this.getOtion()} \n' + " style={{height: '350px', width: '100%'}} \n" + " className='react_for_echarts' />" return ( <div className="examples"> <div className="parent"> <label> {' '} render a Simple echart With <strong>option and height</strong>:{' '} </label> <ReactEcharts option={option} style={{ height: '350px', width: '100%' }} className="react_for_echarts" theme="macarons" /> <label> code below: </label> <pre> <code>{code}</code> </pre> </div> </div> ) } export default SimpleChartComponent ```
/content/code_sandbox/src/pages/chart/ECharts/SimpleChartComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
526
```javascript import React from 'react' import PropTypes from 'prop-types' import SimpleChartComponent from './SimpleChartComponent' import ChartWithEventComponent from './ChartWithEventComponent' import ThemeChartComponent from './ThemeChartComponent' import ChartShowLoadingComponent from './ChartShowLoadingComponent' import ChartAPIComponent from './ChartAPIComponent' import DynamicChartComponent from './DynamicChartComponent' import MapChartComponent from './MapChartComponent' // v1.2.0 add 7 demo. import AirportCoordComponent from './AirportCoordComponent' import CalendarComponent from './CalendarComponent' import GaugeComponent from './GaugeComponent' import GCalendarComponent from './GCalendarComponent' import GraphComponent from './GraphComponent' import LunarCalendarComponent from './LunarCalendarComponent' import TreemapComponent from './TreemapComponent' import LiquidfillComponent from './LiquidfillComponent' import BubbleGradientComponent from './BubbleGradientComponent' import TransparentBar3DComPonent from './TransparentBar3DComPonent' const EchartsComponent = ({ type }) => { if (type === 'simple') return <SimpleChartComponent /> if (type === 'loading') return <ChartShowLoadingComponent /> if (type === 'api') return <ChartAPIComponent /> if (type === 'events') return <ChartWithEventComponent /> if (type === 'theme') return <ThemeChartComponent /> if (type === 'dynamic') return <DynamicChartComponent /> if (type === 'map') return <MapChartComponent /> if (type === 'airport') return <AirportCoordComponent /> if (type === 'graph') return <GraphComponent /> if (type === 'calendar') return <CalendarComponent /> if (type === 'treemap') return <TreemapComponent /> if (type === 'gauge') return <GaugeComponent /> if (type === 'gcalendar') return <GCalendarComponent /> if (type === 'lunar') return <LunarCalendarComponent /> if (type === 'liquid') return <LiquidfillComponent /> if (type === 'BubbleGradientComponent') return <BubbleGradientComponent /> if (type === 'TransparentBar3DComPonent') return <TransparentBar3DComPonent /> return <DynamicChartComponent /> } EchartsComponent.propTypes = { type: PropTypes.string, } export default EchartsComponent ```
/content/code_sandbox/src/pages/chart/ECharts/EchartsComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
496
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' require('./map/js/china.js') class MapChartComponent extends React.Component { constructor() { super() this.timeTicket = null const randomData = () => { return Math.round(Math.random() * 1000) } const option = { title: { text: 'iphone', subtext: '', left: 'center', }, tooltip: { trigger: 'item', }, legend: { orient: 'vertical', left: 'left', data: ['iphone3', 'iphone4', 'iphone5'], }, visualMap: { min: 0, max: 2500, left: 'left', top: 'bottom', text: ['', ''], // calculable: true, }, toolbox: { show: true, orient: 'vertical', left: 'right', top: 'center', feature: { dataView: { readOnly: false }, restore: {}, saveAsImage: {}, }, }, series: [ { name: 'iphone3', type: 'map', mapType: 'china', roam: false, label: { normal: { show: true, }, emphasis: { show: true, }, }, data: [ { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, ], }, { name: 'iphone4', type: 'map', mapType: 'china', label: { normal: { show: true, }, emphasis: { show: true, }, }, data: [ { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, ], }, { name: 'iphone5', type: 'map', mapType: 'china', label: { normal: { show: true, }, emphasis: { show: true, }, }, data: [ { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, { name: '', value: randomData() }, ], }, ], } this.state = { option, } } componentDidMount() { if (this.timeTicket) { clearInterval(this.timeTicket) } this.timeTicket = setInterval(() => { const { option } = this.state const r = new Date().getSeconds() option.title.text = `iphone${r}` option.series[0].name = `iphone${r}` option.legend.data[0] = `iphone${r}` this.setState({ option }) }, 1000) } componentWillUnmount() { if (this.timeTicket) { clearInterval(this.timeTicket) } } render() { let code = "require('echarts/map/js/china.js'); \n" + '<ReactEcharts \n' + ' option={this.state.option || {}} \n' + " style={{height: '350px', width: '100%'}} \n" + " className='react_for_echarts' />" return ( <div className="examples"> <div className="parent"> <label> {' '} render a china map. <strong>MAP charts</strong>:{' '} </label> <ReactEcharts option={this.state.option} style={{ height: '500px', width: '100%' }} className="react_for_echarts" /> <label> code below: </label> <pre> <code>{code}</code> </pre> </div> </div> ) } } export default MapChartComponent ```
/content/code_sandbox/src/pages/chart/ECharts/MapChartComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1,432
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' import * as echarts from 'echarts' const GCalendarComponent = () => { const getVirtulData = year => { year = year || '2017' let date = +echarts.number.parseDate(`${year}-01-01`) let end = +echarts.number.parseDate(`${+year + 1}-01-01`) let dayTime = 3600 * 24 * 1000 let data = [] for (let time = date; time < end; time += dayTime) { data.push([ echarts.format.formatTime('yyyy-MM-dd', time), Math.floor(Math.random() * 1000), ]) } return data } const option = { tooltip: { position: 'top', }, visualMap: { min: 0, max: 1000, calculable: true, orient: 'horizontal', left: 'center', top: 'top', }, calendar: [ { range: '2017', cellSize: ['auto', 20], }, { top: 260, range: '2016', cellSize: ['auto', 20], }, ], series: [ { type: 'heatmap', coordinateSystem: 'calendar', calendarIndex: 0, data: getVirtulData(2017), }, { type: 'heatmap', coordinateSystem: 'calendar', calendarIndex: 1, data: getVirtulData(2016), }, ], } return ( <div className="examples"> <div className="parent"> <label> render a calendar like github commit history. </label> <ReactEcharts option={option} style={{ height: '500px', width: '100%' }} className="react_for_echarts" /> </div> </div> ) } export default GCalendarComponent ```
/content/code_sandbox/src/pages/chart/ECharts/GCalendarComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
451
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' import * as echarts from 'echarts' const CalendarComponent = () => { const getVirtulData = year => { year = year || '2017' let date = +echarts.number.parseDate(`${year}-01-01`) let end = +echarts.number.parseDate(`${+year + 1}-01-01`) let dayTime = 3600 * 24 * 1000 let data = [] for (let time = date; time < end; time += dayTime) { data.push([ echarts.format.formatTime('yyyy-MM-dd', time), Math.floor(Math.random() * 1000), ]) } return data } let graphData = [ [1485878400000, 260], [1486137600000, 200], [1486569600000, 279], [1486915200000, 847], [1487347200000, 241], [1487779200000, 411], [1488124800000, 985], ] let links = graphData.map((item, idx) => { return { source: idx, target: idx + 1, } }) links.pop() const option = { tooltip: { position: 'top', }, visualMap: [ { min: 0, max: 1000, calculable: true, seriesIndex: [2, 3, 4], orient: 'horizontal', left: '55%', bottom: 20, }, { min: 0, max: 1000, inRange: { color: ['grey'], opacity: [0, 0.3], }, controller: { inRange: { opacity: [0.3, 0.6], }, outOfRange: { color: '#ccc', }, }, calculable: true, seriesIndex: [1], orient: 'horizontal', left: '10%', bottom: 20, }, ], calendar: [ { orient: 'vertical', yearLabel: { margin: 40, }, monthLabel: { nameMap: 'cn', margin: 20, }, dayLabel: { firstDay: 1, nameMap: 'cn', }, cellSize: 40, range: '2017-02', }, { orient: 'vertical', yearLabel: { margin: 40, }, monthLabel: { margin: 20, }, cellSize: 40, left: 460, range: '2017-01', }, { orient: 'vertical', yearLabel: { margin: 40, }, monthLabel: { margin: 20, }, cellSize: 40, top: 350, range: '2017-03', }, { orient: 'vertical', yearLabel: { margin: 40, }, dayLabel: { firstDay: 1, nameMap: ['', '', '', '', '', '', ''], }, monthLabel: { nameMap: 'cn', margin: 20, }, cellSize: 40, top: 350, left: 460, range: '2017-04', }, ], series: [ { type: 'graph', edgeSymbol: ['none', 'arrow'], coordinateSystem: 'calendar', links, symbolSize: 10, calendarIndex: 0, data: graphData, }, { type: 'heatmap', coordinateSystem: 'calendar', data: getVirtulData(2017), }, { type: 'effectScatter', coordinateSystem: 'calendar', calendarIndex: 1, symbolSize(val) { return val[1] / 40 }, data: getVirtulData(2017), }, { type: 'scatter', coordinateSystem: 'calendar', calendarIndex: 2, symbolSize(val) { return val[1] / 60 }, data: getVirtulData(2017), }, { type: 'heatmap', coordinateSystem: 'calendar', calendarIndex: 3, data: getVirtulData(2017), }, ], } return ( <div className="examples"> <div className="parent"> <label> render a calendar-charts </label> <ReactEcharts option={option} style={{ height: '700px', width: '100%' }} className="react_for_echarts" /> </div> </div> ) } export default CalendarComponent ```
/content/code_sandbox/src/pages/chart/ECharts/CalendarComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1,096
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' const ModuleLoadChartComponent = () => { const option = { title: { text: 'ECharts ' }, tooltip: {}, xAxis: { data: ['', '', '', '', '', ''], }, yAxis: {}, series: [ { name: '', type: 'bar', data: [5, 20, 36, 10, 10, 20], }, ], } let code = '<ReactEcharts \n' + ' option={this.getOtion()} \n' + " style={{height: '350px', width: '100%'}} \n" + " modules={['echarts/lib/chart/bar', 'echarts/lib/component/tooltip', 'echarts/lib/component/title']} \n" + " className='react_for_echarts' />" return ( <div className="examples"> <div className="parent"> <label> {' '} load echarts module as you wish <strong> reduce the file size </strong>:{' '} </label> <ReactEcharts option={option} style={{ height: '350px', width: '100%' }} modules={[ 'echarts/lib/chart/bar', 'echarts/lib/component/tooltip', 'echarts/lib/component/title', ]} className="react_for_echarts" /> <label> code below: </label> <pre> <code>{code}</code> </pre> </div> </div> ) } export default ModuleLoadChartComponent ```
/content/code_sandbox/src/pages/chart/ECharts/ModuleLoadChartComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
363
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' import * as echarts from 'echarts' const currentData = [ [ [28604, 77, 17096869, 'Australia', 1990], [31163, 77.4, 27662440, 'Canada', 1990], [1516, 68, 1154605773, 'China', 1990], [13670, 74.7, 10582082, 'Cuba', 1990], [28599, 75, 4986705, 'Finland', 1990], [29476, 77.1, 56943299, 'France', 1990], [31476, 75.4, 78958237, 'Germany', 1990], [28666, 78.1, 254830, 'Iceland', 1990], [1777, 57.7, 870601776, 'India', 1990], [29550, 79.1, 122249285, 'Japan', 1990], [2076, 67.9, 20194354, 'North Korea', 1990], [12087, 72, 42972254, 'South Korea', 1990], [24021, 75.4, 3397534, 'New Zealand', 1990], [43296, 76.8, 4240375, 'Norway', 1990], [10088, 70.8, 38195258, 'Poland', 1990], [19349, 69.6, 147568552, 'Russia', 1990], [10670, 67.3, 53994605, 'Turkey', 1990], [26424, 75.7, 57110117, 'United Kingdom', 1990], [37062, 75.4, 252847810, 'United States', 1990], ], [ [44056, 81.8, 23968973, 'Australia', 2015], [43294, 81.7, 35939927, 'Canada', 2015], [13334, 76.9, 1376048943, 'China', 2015], [21291, 78.5, 11389562, 'Cuba', 2015], [38923, 80.8, 5503457, 'Finland', 2015], [37599, 81.9, 64395345, 'France', 2015], [44053, 81.1, 80688545, 'Germany', 2015], [42182, 82.8, 329425, 'Iceland', 2015], [5903, 66.8, 1311050527, 'India', 2015], [36162, 83.5, 126573481, 'Japan', 2015], [1390, 71.4, 25155317, 'North Korea', 2015], [34644, 80.7, 50293439, 'South Korea', 2015], [34186, 80.6, 4528526, 'New Zealand', 2015], [64304, 81.6, 5210967, 'Norway', 2015], [24787, 77.3, 38611794, 'Poland', 2015], [23038, 73.13, 143456918, 'Russia', 2015], [19360, 76.5, 78665830, 'Turkey', 2015], [38225, 81.4, 64715810, 'United Kingdom', 2015], [53354, 79.1, 321773631, 'United States', 2015], ], ] const option = { backgroundColor: new echarts.graphic.RadialGradient(0.3, 0.3, 0.8, [ { offset: 0, color: '#f7f8fa', }, { offset: 1, color: '#cdd0d5', }, ]), title: { text: '1990 2015 GDP', }, legend: { right: 10, data: ['1990', '2015'], }, xAxis: { splitLine: { lineStyle: { type: 'dashed', }, }, }, yAxis: { splitLine: { lineStyle: { type: 'dashed', }, }, scale: true, }, series: [ { name: '1990', data: currentData[0], type: 'scatter', symbolSize(data) { return Math.sqrt(data[2]) / 5e2 }, label: { emphasis: { show: true, formatter(param) { return param.data[3] }, position: 'top', }, }, itemStyle: { normal: { shadowBlur: 10, shadowColor: 'rgba(120, 36, 50, 0.5)', shadowOffsetY: 5, color: new echarts.graphic.RadialGradient(0.4, 0.3, 1, [ { offset: 0, color: 'rgb(251, 118, 123)', }, { offset: 1, color: 'rgb(204, 46, 72)', }, ]), }, }, }, { name: '2015', data: currentData[1], type: 'scatter', symbolSize(data) { return Math.sqrt(data[2]) / 5e2 }, label: { emphasis: { show: true, formatter(param) { return param.data[3] }, position: 'top', }, }, itemStyle: { normal: { shadowBlur: 10, shadowColor: 'rgba(25, 100, 150, 0.5)', shadowOffsetY: 5, color: new echarts.graphic.RadialGradient(0.4, 0.3, 1, [ { offset: 0, color: 'rgb(129, 227, 238)', }, { offset: 1, color: 'rgb(25, 183, 207)', }, ]), }, }, }, ], } const BubbleGradientComponent = () => { return ( <ReactEcharts option={option} style={{ height: '700px', width: '100%' }} className="react_for_echarts" /> ) } export default BubbleGradientComponent ```
/content/code_sandbox/src/pages/chart/ECharts/BubbleGradientComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1,542
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' require('./map/js/china.js') const AirportCoordComponent = () => { let geoCoordMap = { : [121.4648, 31.2891], : [113.8953, 22.901], : [118.7073, 37.5513], : [113.4229, 22.478], : [111.4783, 36.1615], : [118.3118, 35.2936], : [124.541, 40.4242], : [119.5642, 28.1854], : [87.9236, 43.5883], : [112.8955, 23.1097], : [115.0488, 39.0948], : [103.5901, 36.3043], : [110.3467, 41.4899], : [116.4551, 40.2539], : [109.314, 21.6211], : [118.8062, 31.9208], : [108.479, 23.1152], : [116.0046, 28.6633], : [121.1023, 32.1625], : [118.1689, 24.6478], : [121.1353, 28.6688], : [117.29, 32.0581], : [111.4124, 40.4901], : [108.4131, 34.8706], : [127.9688, 45.368], : [118.4766, 39.6826], : [120.9155, 30.6354], : [113.7854, 39.8035], : [122.2229, 39.4409], : [117.4219, 39.4189], : [112.3352, 37.9413], : [121.9482, 37.1393], : [121.5967, 29.6466], : [107.1826, 34.3433], : [118.5535, 33.7775], : [119.4543, 31.5582], : [113.5107, 23.2196], : [116.521, 39.0509], : [109.1052, 36.4252], : [115.1477, 40.8527], : [117.5208, 34.3268], : [116.6858, 37.2107], : [114.6204, 23.1647], : [103.9526, 30.7617], : [119.4653, 32.8162], : [117.5757, 41.4075], : [91.1865, 30.1465], : [120.3442, 31.5527], : [119.2786, 35.5023], : [102.9199, 25.4663], : [119.5313, 29.8773], : [117.323, 34.8926], : [109.3799, 24.9774], : [113.5327, 27.0319], : [114.3896, 30.6628], : [117.1692, 23.3405], : [112.6318, 22.1484], : [123.1238, 42.1216], : [116.8286, 38.2104], : [114.917, 23.9722], : [118.3228, 25.1147], : [117.0264, 36.0516], : [120.0586, 32.5525], : [117.1582, 36.8701], : [116.8286, 35.3375], : [110.3893, 19.8516], : [118.0371, 36.6064], : [118.927, 33.4039], : [114.5435, 22.5439], : [112.9175, 24.3292], : [120.498, 27.8119], : [109.7864, 35.0299], : [119.8608, 30.7782], : [112.5439, 27.7075], : [117.8174, 37.4963], : [119.0918, 36.524], : [120.7397, 37.5128], : [101.9312, 23.8898], : [113.7305, 22.1155], : [120.2234, 33.5577], : [121.9482, 41.0449], : [114.4995, 38.1006], : [119.4543, 25.9222], : [119.2126, 40.0232], : [120.564, 29.7565], : [115.9167, 36.4032], : [112.1265, 23.5822], : [122.2559, 30.2234], : [120.6519, 31.3989], : [117.6526, 36.2714], : [115.6201, 35.2057], : [122.4316, 40.4297], : [120.1575, 40.578], : [115.8838, 37.7161], : [118.6853, 28.8666], : [101.4038, 36.8207], : [109.1162, 34.2004], : [106.6992, 26.7682], : [119.1248, 34.552], : [114.8071, 37.2821], : [114.4775, 36.535], : [113.4668, 34.6234], : [108.9734, 39.2487], : [107.7539, 30.1904], : [120.0037, 29.1028], : [109.0393, 35.1947], : [106.3586, 38.1775], : [119.4763, 31.9702], : [125.8154, 44.2584], : [113.0823, 28.2568], : [112.8625, 36.4746], : [113.4778, 38.0951], : [120.4651, 36.3373], : [113.7964, 24.7028], } let BJData = [ [{ name: '' }, { name: '', value: 95 }], [{ name: '' }, { name: '', value: 90 }], [{ name: '' }, { name: '', value: 80 }], [{ name: '' }, { name: '', value: 70 }], [{ name: '' }, { name: '', value: 60 }], [{ name: '' }, { name: '', value: 50 }], [{ name: '' }, { name: '', value: 40 }], [{ name: '' }, { name: '', value: 30 }], [{ name: '' }, { name: '', value: 20 }], [{ name: '' }, { name: '', value: 10 }], ] let SHData = [ [{ name: '' }, { name: '', value: 95 }], [{ name: '' }, { name: '', value: 90 }], [{ name: '' }, { name: '', value: 80 }], [{ name: '' }, { name: '', value: 70 }], [{ name: '' }, { name: '', value: 60 }], [{ name: '' }, { name: '', value: 50 }], [{ name: '' }, { name: '', value: 40 }], [{ name: '' }, { name: '', value: 30 }], [{ name: '' }, { name: '', value: 20 }], [{ name: '' }, { name: '', value: 10 }], ] let GZData = [ [{ name: '' }, { name: '', value: 95 }], [{ name: '' }, { name: '', value: 90 }], [{ name: '' }, { name: '', value: 80 }], [{ name: '' }, { name: '', value: 70 }], [{ name: '' }, { name: '', value: 60 }], [{ name: '' }, { name: '', value: 50 }], [{ name: '' }, { name: '', value: 40 }], [{ name: '' }, { name: '', value: 30 }], [{ name: '' }, { name: '', value: 20 }], [{ name: '' }, { name: '', value: 10 }], ] let planePath = 'path://M1705.06,1318.313v-89.254l-319.9-221.799l0.073-208.063c0.521-84.662-26.629-121.796-63.961-121.491c-37.332-0.305-64.482,36.829-63.961,121.491l0.073,208.063l-319.9,221.799v89.254l330.343-157.288l12.238,241.308l-134.449,92.931l0.531,42.034l175.125-42.917l175.125,42.917l0.531-42.034l-134.449-92.931l12.238-241.308L1705.06,1318.313z' let convertData = function(data) { let res = [] for (let i = 0; i < data.length; i += 1) { let dataItem = data[i] let fromCoord = geoCoordMap[dataItem[0].name] let toCoord = geoCoordMap[dataItem[1].name] if (fromCoord && toCoord) { res.push({ fromName: dataItem[0].name, toName: dataItem[1].name, coords: [fromCoord, toCoord], }) } } return res } let color = ['#a6c84c', '#ffa022', '#46bee9'] let series = [] ;[['', BJData], ['', SHData], ['', GZData]].forEach((item, i) => { series.push( { name: `${item[0]} Top10`, type: 'lines', zlevel: 1, effect: { show: true, period: 6, trailLength: 0.7, color: '#fff', symbolSize: 3, }, lineStyle: { normal: { color: color[i], width: 0, curveness: 0.2, }, }, data: convertData(item[1]), }, { name: `${item[0]} Top10`, type: 'lines', zlevel: 2, symbol: ['none', 'arrow'], symbolSize: 10, effect: { show: true, period: 6, trailLength: 0, symbol: planePath, symbolSize: 15, }, lineStyle: { normal: { color: color[i], width: 1, opacity: 0.6, curveness: 0.2, }, }, data: convertData(item[1]), }, { name: `${item[0]} Top10`, type: 'effectScatter', coordinateSystem: 'geo', zlevel: 2, rippleEffect: { brushType: 'stroke', }, label: { normal: { show: true, position: 'right', formatter: '{b}', }, }, symbolSize(val) { return val[2] / 8 }, itemStyle: { normal: { color: color[i], }, }, data: item[1].map(dataItem => { return { name: dataItem[1].name, value: geoCoordMap[dataItem[1].name].concat([dataItem[1].value]), } }), } ) }) let option = { backgroundColor: '#404a59', title: { text: '', subtext: '', left: 'center', textStyle: { color: '#fff', }, }, tooltip: { trigger: 'item', }, legend: { orient: 'vertical', top: 'bottom', left: 'right', data: [' Top10', ' Top10', ' Top10'], textStyle: { color: '#fff', }, selectedMode: 'single', }, geo: { map: 'china', label: { emphasis: { show: false, }, }, roam: true, itemStyle: { normal: { areaColor: '#323c48', borderColor: '#404a59', }, emphasis: { areaColor: '#2a333d', }, }, }, series, } return ( <div className="examples"> <div className="parent"> <label> render a airport chart. </label> <ReactEcharts option={option} style={{ height: '700px', width: '100%' }} className="react_for_echarts" /> </div> </div> ) } export default AirportCoordComponent ```
/content/code_sandbox/src/pages/chart/ECharts/AirportCoordComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
3,176
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' const GraphComponent = () => { const getOtion = () => { const webkitDep = { type: 'force', categories: [ { name: 'HTMLElement', keyword: {}, base: 'HTMLElement' }, { name: 'WebGL', keyword: {}, base: 'WebGLRenderingContext' }, { name: 'SVG', keyword: {}, base: 'SVGElement' }, { name: 'CSS', keyword: {}, base: 'CSSRule' }, { name: 'Other', keyword: {} }, ], nodes: [ { name: 'AnalyserNode', value: 1, category: 4 }, { name: 'AudioNode', value: 1, category: 4 }, { name: 'Uint8Array', value: 1, category: 4 }, { name: 'Float32Array', value: 1, category: 4 }, { name: 'ArrayBuffer', value: 1, category: 4 }, { name: 'ArrayBufferView', value: 1, category: 4 }, { name: 'Attr', value: 1, category: 4 }, { name: 'Node', value: 1, category: 4 }, { name: 'Element', value: 1, category: 4 }, { name: 'AudioBuffer', value: 1, category: 4 }, { name: 'AudioBufferCallback', value: 1, category: 4 }, { name: 'AudioBufferSourceNode', value: 1, category: 4 }, { name: 'AudioSourceNode', value: 1, category: 4 }, { name: 'AudioGain', value: 1, category: 4 }, { name: 'AudioParam', value: 1, category: 4 }, { name: 'AudioContext', value: 1, category: 4 }, { name: 'AudioDestinationNode', value: 1, category: 4 }, { name: 'AudioListener', value: 1, category: 4 }, { name: 'BiquadFilterNode', value: 1, category: 4 }, { name: 'ChannelMergerNode', value: 1, category: 4 }, { name: 'ChannelSplitterNode', value: 1, category: 4 }, { name: 'ConvolverNode', value: 1, category: 4 }, { name: 'DelayNode', value: 1, category: 4 }, { name: 'DynamicsCompressorNode', value: 1, category: 4 }, { name: 'GainNode', value: 1, category: 4 }, { name: 'MediaElementAudioSourceNode', value: 1, category: 4 }, { name: 'MediaStreamAudioDestinationNode', value: 1, category: 4 }, { name: 'MediaStreamAudioSourceNode', value: 1, category: 4 }, { name: 'OscillatorNode', value: 1, category: 4 }, { name: 'PannerNode', value: 1, category: 4 }, { name: 'ScriptProcessorNode', value: 1, category: 4 }, { name: 'WaveShaperNode', value: 1, category: 4 }, { name: 'WaveTable', value: 1, category: 4 }, { name: 'CanvasRenderingContext', value: 1, category: 4 }, { name: 'HTMLCanvasElement', value: 1, category: 0 }, { name: 'CanvasRenderingContext2D', value: 1, category: 4 }, { name: 'ImageData', value: 1, category: 4 }, { name: 'CanvasGradient', value: 1, category: 4 }, { name: 'CanvasPattern', value: 1, category: 4 }, { name: 'HTMLImageElement', value: 1, category: 0 }, { name: 'HTMLVideoElement', value: 1, category: 0 }, { name: 'TextMetrics', value: 1, category: 4 }, { name: 'CDATASection', value: 1, category: 4 }, { name: 'Text', value: 1, category: 4 }, { name: 'CharacterData', value: 1, category: 4 }, { name: 'ClientRectList', value: 1, category: 4 }, { name: 'ClientRect', value: 1, category: 4 }, { name: 'Clipboard', value: 1, category: 4 }, { name: 'FileList', value: 1, category: 4 }, { name: 'DataTransferItemList', value: 1, category: 4 }, { name: 'Comment', value: 1, category: 4 }, { name: 'Console', value: 1, category: 4 }, { name: 'MemoryInfo', value: 1, category: 4 }, { name: 'Crypto', value: 1, category: 4 }, { name: 'CSSCharsetRule', value: 1, category: 3 }, { name: 'CSSRule', value: 3, category: 3 }, { name: 'CSSFontFaceRule', value: 1, category: 3 }, { name: 'CSSStyleDeclaration', value: 1, category: 3 }, { name: 'CSSImportRule', value: 1, category: 3 }, { name: 'MediaList', value: 1, category: 4 }, { name: 'CSSStyleSheet', value: 1, category: 3 }, { name: 'CSSMediaRule', value: 1, category: 3 }, { name: 'CSSRuleList', value: 1, category: 3 }, { name: 'CSSPageRule', value: 1, category: 3 }, { name: 'CSSPrimitiveValue', value: 1, category: 3 }, { name: 'CSSValue', value: 1, category: 3 }, { name: 'Counter', value: 1, category: 4 }, { name: 'RGBColor', value: 1, category: 4 }, { name: 'Rect', value: 1, category: 4 }, { name: 'CSSStyleRule', value: 1, category: 3 }, { name: 'StyleSheet', value: 1, category: 4 }, { name: 'CSSUnknownRule', value: 1, category: 3 }, { name: 'CSSValueList', value: 1, category: 3 }, { name: 'Database', value: 1, category: 4 }, { name: 'SQLTransactionCallback', value: 1, category: 4 }, { name: 'DatabaseCallback', value: 1, category: 4 }, { name: 'DatabaseSync', value: 1, category: 4 }, { name: 'SQLTransactionSyncCallback', value: 1, category: 4 }, { name: 'DataTransferItem', value: 1, category: 4 }, { name: 'StringCallback', value: 1, category: 4 }, { name: 'Entry', value: 1, category: 4 }, { name: 'File', value: 1, category: 4 }, { name: 'DataView', value: 1, category: 4 }, { name: 'DedicatedWorkerContext', value: 1, category: 4 }, { name: 'WorkerContext', value: 1, category: 4 }, { name: 'DirectoryEntry', value: 1, category: 4 }, { name: 'DirectoryReader', value: 1, category: 4 }, { name: 'VoidCallback', value: 1, category: 4 }, { name: 'DirectoryEntrySync', value: 1, category: 4 }, { name: 'EntrySync', value: 1, category: 4 }, { name: 'DirectoryReaderSync', value: 1, category: 4 }, { name: 'FileEntrySync', value: 1, category: 4 }, { name: 'EntriesCallback', value: 1, category: 4 }, { name: 'EntryArraySync', value: 1, category: 4 }, { name: 'DocumentFragment', value: 1, category: 4 }, { name: 'NodeList', value: 1, category: 4 }, { name: 'DocumentType', value: 1, category: 4 }, { name: 'NamedNodeMap', value: 1, category: 4 }, { name: 'DOMFileSystem', value: 1, category: 4 }, { name: 'DOMFileSystemSync', value: 1, category: 4 }, { name: 'DOMImplementation', value: 1, category: 4 }, { name: 'HTMLDocument', value: 1, category: 0 }, { name: 'DOMMimeType', value: 1, category: 4 }, { name: 'DOMPlugin', value: 1, category: 4 }, { name: 'DOMMimeTypeArray', value: 1, category: 4 }, { name: 'DOMPluginArray', value: 1, category: 4 }, { name: 'DOMSelection', value: 1, category: 4 }, { name: 'Range', value: 1, category: 4 }, { name: 'DOMSettableTokenList', value: 1, category: 4 }, { name: 'DOMTokenList', value: 1, category: 4 }, { name: 'DOMStringMap', value: 1, category: 4 }, { name: 'ShadowRoot', value: 1, category: 4 }, { name: 'Entity', value: 1, category: 4 }, { name: 'EntityReference', value: 1, category: 4 }, { name: 'EntryArray', value: 1, category: 4 }, { name: 'MetadataCallback', value: 1, category: 4 }, { name: 'EntryCallback', value: 1, category: 4 }, { name: 'Metadata', value: 1, category: 4 }, { name: 'ErrorCallback', value: 1, category: 4 }, { name: 'FileError', value: 1, category: 4 }, { name: 'FileCallback', value: 1, category: 4 }, { name: 'FileEntry', value: 1, category: 4 }, { name: 'FileWriterCallback', value: 1, category: 4 }, { name: 'FileWriterSync', value: 1, category: 4 }, { name: 'FileReader', value: 1, category: 4 }, { name: 'FileReaderSync', value: 1, category: 4 }, { name: 'FileSystemCallback', value: 1, category: 4 }, { name: 'FileWriter', value: 1, category: 4 }, { name: 'Float64Array', value: 1, category: 4 }, { name: 'GamepadList', value: 1, category: 4 }, { name: 'Gamepad', value: 1, category: 4 }, { name: 'Geolocation', value: 1, category: 4 }, { name: 'PositionCallback', value: 1, category: 4 }, { name: 'Geoposition', value: 1, category: 4 }, { name: 'Coordinates', value: 1, category: 4 }, { name: 'HTMLAllCollection', value: 1, category: 0 }, { name: 'HTMLAnchorElement', value: 1, category: 0 }, { name: 'HTMLElement', value: 3, category: 0 }, { name: 'HTMLAppletElement', value: 1, category: 0 }, { name: 'HTMLAreaElement', value: 1, category: 0 }, { name: 'HTMLAudioElement', value: 1, category: 0 }, { name: 'HTMLMediaElement', value: 1, category: 0 }, { name: 'HTMLBaseElement', value: 1, category: 0 }, { name: 'HTMLBaseFontElement', value: 1, category: 0 }, { name: 'HTMLBodyElement', value: 1, category: 0 }, { name: 'HTMLBRElement', value: 1, category: 0 }, { name: 'HTMLButtonElement', value: 1, category: 0 }, { name: 'HTMLFormElement', value: 1, category: 0 }, { name: 'ValidityState', value: 1, category: 4 }, { name: 'HTMLCollection', value: 1, category: 0 }, { name: 'HTMLContentElement', value: 1, category: 0 }, { name: 'HTMLDataListElement', value: 1, category: 0 }, { name: 'HTMLDetailsElement', value: 1, category: 0 }, { name: 'HTMLDirectoryElement', value: 1, category: 0 }, { name: 'HTMLDivElement', value: 1, category: 0 }, { name: 'HTMLDListElement', value: 1, category: 0 }, { name: 'HTMLEmbedElement', value: 1, category: 0 }, { name: 'SVGDocument', value: 1, category: 2 }, { name: 'HTMLFieldSetElement', value: 1, category: 0 }, { name: 'HTMLFontElement', value: 1, category: 0 }, { name: 'HTMLFormControlsCollection', value: 1, category: 0 }, { name: 'HTMLFrameElement', value: 1, category: 0 }, { name: 'HTMLFrameSetElement', value: 1, category: 0 }, { name: 'HTMLHeadElement', value: 1, category: 0 }, { name: 'HTMLHeadingElement', value: 1, category: 0 }, { name: 'HTMLHRElement', value: 1, category: 0 }, { name: 'HTMLHtmlElement', value: 1, category: 0 }, { name: 'HTMLIFrameElement', value: 1, category: 0 }, { name: 'HTMLInputElement', value: 1, category: 0 }, { name: 'HTMLKeygenElement', value: 1, category: 0 }, { name: 'HTMLLabelElement', value: 1, category: 0 }, { name: 'HTMLLegendElement', value: 1, category: 0 }, { name: 'HTMLLIElement', value: 1, category: 0 }, { name: 'HTMLLinkElement', value: 1, category: 0 }, { name: 'HTMLMapElement', value: 1, category: 0 }, { name: 'HTMLMarqueeElement', value: 1, category: 0 }, { name: 'TimeRanges', value: 1, category: 4 }, { name: 'MediaController', value: 1, category: 4 }, { name: 'MediaError', value: 1, category: 4 }, { name: 'TextTrackList', value: 1, category: 4 }, { name: 'TextTrack', value: 1, category: 4 }, { name: 'HTMLMenuElement', value: 1, category: 0 }, { name: 'HTMLMetaElement', value: 1, category: 0 }, { name: 'HTMLMeterElement', value: 1, category: 0 }, { name: 'HTMLModElement', value: 1, category: 0 }, { name: 'HTMLObjectElement', value: 1, category: 0 }, { name: 'HTMLOListElement', value: 1, category: 0 }, { name: 'HTMLOptGroupElement', value: 1, category: 0 }, { name: 'HTMLOptionElement', value: 1, category: 0 }, { name: 'HTMLOptionsCollection', value: 1, category: 0 }, { name: 'HTMLOutputElement', value: 1, category: 0 }, { name: 'HTMLParagraphElement', value: 1, category: 0 }, { name: 'HTMLParamElement', value: 1, category: 0 }, { name: 'HTMLPreElement', value: 1, category: 0 }, { name: 'HTMLProgressElement', value: 1, category: 0 }, { name: 'HTMLQuoteElement', value: 1, category: 0 }, { name: 'HTMLScriptElement', value: 1, category: 0 }, { name: 'HTMLSelectElement', value: 1, category: 0 }, { name: 'HTMLShadowElement', value: 1, category: 0 }, { name: 'HTMLSourceElement', value: 1, category: 0 }, { name: 'HTMLSpanElement', value: 1, category: 0 }, { name: 'HTMLStyleElement', value: 1, category: 0 }, { name: 'HTMLTableCaptionElement', value: 1, category: 0 }, { name: 'HTMLTableCellElement', value: 1, category: 0 }, { name: 'HTMLTableColElement', value: 1, category: 0 }, { name: 'HTMLTableElement', value: 1, category: 0 }, { name: 'HTMLTableSectionElement', value: 1, category: 0 }, { name: 'HTMLTableRowElement', value: 1, category: 0 }, { name: 'HTMLTextAreaElement', value: 1, category: 0 }, { name: 'HTMLTitleElement', value: 1, category: 0 }, { name: 'HTMLTrackElement', value: 1, category: 0 }, { name: 'HTMLUListElement', value: 1, category: 0 }, { name: 'HTMLUnknownElement', value: 1, category: 0 }, { name: 'IDBCursor', value: 1, category: 4 }, { name: 'IDBAny', value: 1, category: 4 }, { name: 'IDBKey', value: 1, category: 4 }, { name: 'IDBRequest', value: 1, category: 4 }, { name: 'IDBCursorWithValue', value: 1, category: 4 }, { name: 'IDBDatabase', value: 1, category: 4 }, { name: 'DOMStringList', value: 1, category: 4 }, { name: 'IDBObjectStore', value: 1, category: 4 }, { name: 'IDBTransaction', value: 1, category: 4 }, { name: 'IDBFactory', value: 1, category: 4 }, { name: 'IDBVersionChangeRequest', value: 1, category: 4 }, { name: 'IDBOpenDBRequest', value: 1, category: 4 }, { name: 'IDBIndex', value: 1, category: 4 }, { name: 'IDBKeyRange', value: 1, category: 4 }, { name: 'DOMError', value: 1, category: 4 }, { name: 'Int16Array', value: 1, category: 4 }, { name: 'Int32Array', value: 1, category: 4 }, { name: 'Int8Array', value: 1, category: 4 }, { name: 'JavaScriptCallFrame', value: 1, category: 4 }, { name: 'LocalMediaStream', value: 1, category: 4 }, { name: 'MediaStream', value: 1, category: 4 }, { name: 'Location', value: 1, category: 4 }, { name: 'MediaQueryList', value: 1, category: 4 }, { name: 'MediaQueryListListener', value: 1, category: 4 }, { name: 'MediaSource', value: 1, category: 4 }, { name: 'SourceBufferList', value: 1, category: 4 }, { name: 'SourceBuffer', value: 1, category: 4 }, { name: 'MediaStreamTrackList', value: 1, category: 4 }, { name: 'MediaStreamList', value: 1, category: 4 }, { name: 'MediaStreamTrack', value: 1, category: 4 }, { name: 'MessageChannel', value: 1, category: 4 }, { name: 'MessagePort', value: 1, category: 4 }, { name: 'MutationObserver', value: 1, category: 4 }, { name: 'MutationRecord', value: 1, category: 4 }, { name: 'Navigator', value: 1, category: 4 }, { name: 'BatteryManager', value: 1, category: 4 }, { name: 'NavigatorUserMediaErrorCallback', value: 1, category: 4 }, { name: 'NavigatorUserMediaError', value: 1, category: 4 }, { name: 'NavigatorUserMediaSuccessCallback', value: 1, category: 4 }, { name: 'NodeFilter', value: 1, category: 4 }, { name: 'NodeIterator', value: 1, category: 4 }, { name: 'Notation', value: 1, category: 4 }, { name: 'Notification', value: 1, category: 4 }, { name: 'NotificationPermissionCallback', value: 1, category: 4 }, { name: 'NotificationCenter', value: 1, category: 4 }, { name: 'OESVertexArrayObject', value: 1, category: 4 }, { name: 'WebGLVertexArrayObjectOES', value: 1, category: 1 }, { name: 'Performance', value: 1, category: 4 }, { name: 'PerformanceNavigation', value: 1, category: 4 }, { name: 'PerformanceTiming', value: 1, category: 4 }, { name: 'PositionErrorCallback', value: 1, category: 4 }, { name: 'PositionError', value: 1, category: 4 }, { name: 'ProcessingInstruction', value: 1, category: 4 }, { name: 'RadioNodeList', value: 1, category: 4 }, { name: 'RTCDataChannel', value: 1, category: 4 }, { name: 'RTCPeerConnection', value: 1, category: 4 }, { name: 'RTCSessionDescription', value: 1, category: 4 }, { name: 'RTCIceCandidate', value: 1, category: 4 }, { name: 'RTCSessionDescriptionCallback', value: 1, category: 4 }, { name: 'RTCStatsCallback', value: 1, category: 4 }, { name: 'RTCStatsResponse', value: 1, category: 4 }, { name: 'RTCStatsReport', value: 1, category: 4 }, { name: 'RTCStatsElement', value: 1, category: 4 }, { name: 'ScriptProfile', value: 1, category: 4 }, { name: 'ScriptProfileNode', value: 1, category: 4 }, { name: 'SharedWorker', value: 1, category: 4 }, { name: 'AbstractWorker', value: 1, category: 4 }, { name: 'SharedWorkerContext', value: 1, category: 4 }, { name: 'SpeechGrammarList', value: 1, category: 4 }, { name: 'SpeechGrammar', value: 1, category: 4 }, { name: 'SpeechInputResultList', value: 1, category: 4 }, { name: 'SpeechInputResult', value: 1, category: 4 }, { name: 'SpeechRecognition', value: 1, category: 4 }, { name: 'SpeechRecognitionResult', value: 1, category: 4 }, { name: 'SpeechRecognitionAlternative', value: 1, category: 4 }, { name: 'SpeechRecognitionResultList', value: 1, category: 4 }, { name: 'SQLResultSet', value: 1, category: 4 }, { name: 'SQLResultSetRowList', value: 1, category: 4 }, { name: 'SQLStatementCallback', value: 1, category: 4 }, { name: 'SQLTransaction', value: 1, category: 4 }, { name: 'SQLStatementErrorCallback', value: 1, category: 4 }, { name: 'SQLTransactionErrorCallback', value: 1, category: 4 }, { name: 'SQLError', value: 1, category: 4 }, { name: 'SQLTransactionSync', value: 1, category: 4 }, { name: 'StorageInfo', value: 1, category: 4 }, { name: 'StorageInfoUsageCallback', value: 1, category: 4 }, { name: 'StorageInfoQuotaCallback', value: 1, category: 4 }, { name: 'StorageInfoErrorCallback', value: 1, category: 4 }, { name: 'DOMCoreException', value: 1, category: 4 }, { name: 'StyleSheetList', value: 1, category: 4 }, { name: 'SVGAElement', value: 1, category: 2 }, { name: 'SVGTransformable', value: 1, category: 2 }, { name: 'SVGAnimatedString', value: 1, category: 2 }, { name: 'SVGAltGlyphDefElement', value: 1, category: 2 }, { name: 'SVGElement', value: 3, category: 2 }, { name: 'SVGAltGlyphElement', value: 1, category: 2 }, { name: 'SVGURIReference', value: 1, category: 2 }, { name: 'SVGAltGlyphItemElement', value: 1, category: 2 }, { name: 'SVGAnimateColorElement', value: 1, category: 2 }, { name: 'SVGAnimationElement', value: 1, category: 2 }, { name: 'SVGAnimatedAngle', value: 1, category: 2 }, { name: 'SVGAngle', value: 1, category: 2 }, { name: 'SVGAnimatedLength', value: 1, category: 2 }, { name: 'SVGLength', value: 1, category: 2 }, { name: 'SVGAnimatedLengthList', value: 1, category: 2 }, { name: 'SVGLengthList', value: 1, category: 2 }, { name: 'SVGAnimatedNumberList', value: 1, category: 2 }, { name: 'SVGNumberList', value: 1, category: 2 }, { name: 'SVGAnimatedPreserveAspectRatio', value: 1, category: 2 }, { name: 'SVGPreserveAspectRatio', value: 1, category: 2 }, { name: 'SVGAnimatedRect', value: 1, category: 2 }, { name: 'SVGRect', value: 1, category: 2 }, { name: 'SVGAnimatedTransformList', value: 1, category: 2 }, { name: 'SVGTransformList', value: 1, category: 2 }, { name: 'SVGAnimateElement', value: 1, category: 2 }, { name: 'SVGAnimateMotionElement', value: 1, category: 2 }, { name: 'SVGAnimateTransformElement', value: 1, category: 2 }, { name: 'ElementTimeControl', value: 1, category: 4 }, { name: 'SVGCircleElement', value: 1, category: 2 }, { name: 'SVGClipPathElement', value: 1, category: 2 }, { name: 'SVGAnimatedEnumeration', value: 1, category: 2 }, { name: 'SVGColor', value: 1, category: 2 }, { name: 'SVGComponentTransferFunctionElement', value: 1, category: 2 }, { name: 'SVGAnimatedNumber', value: 1, category: 2 }, { name: 'SVGCursorElement', value: 1, category: 2 }, { name: 'SVGExternalResourcesRequired', value: 1, category: 2 }, { name: 'SVGDefsElement', value: 1, category: 2 }, { name: 'SVGDescElement', value: 1, category: 2 }, { name: 'SVGStylable', value: 1, category: 2 }, { name: 'SVGSVGElement', value: 1, category: 2 }, { name: 'SVGElementInstance', value: 1, category: 2 }, { name: 'EventTarget', value: 1, category: 4 }, { name: 'SVGElementInstanceList', value: 1, category: 2 }, { name: 'SVGUseElement', value: 1, category: 2 }, { name: 'SVGEllipseElement', value: 1, category: 2 }, { name: 'SVGAnimatedBoolean', value: 1, category: 2 }, { name: 'SVGFEBlendElement', value: 1, category: 2 }, { name: 'SVGFilterPrimitiveStandardAttributes', value: 1, category: 2 }, { name: 'SVGFEColorMatrixElement', value: 1, category: 2 }, { name: 'SVGFEComponentTransferElement', value: 1, category: 2 }, { name: 'SVGFECompositeElement', value: 1, category: 2 }, { name: 'SVGFEConvolveMatrixElement', value: 1, category: 2 }, { name: 'SVGAnimatedInteger', value: 1, category: 2 }, { name: 'SVGFEDiffuseLightingElement', value: 1, category: 2 }, { name: 'SVGFEDisplacementMapElement', value: 1, category: 2 }, { name: 'SVGFEDistantLightElement', value: 1, category: 2 }, { name: 'SVGFEDropShadowElement', value: 1, category: 2 }, { name: 'SVGFEFloodElement', value: 1, category: 2 }, { name: 'SVGFEFuncAElement', value: 1, category: 2 }, { name: 'SVGFEFuncBElement', value: 1, category: 2 }, { name: 'SVGFEFuncGElement', value: 1, category: 2 }, { name: 'SVGFEFuncRElement', value: 1, category: 2 }, { name: 'SVGFEGaussianBlurElement', value: 1, category: 2 }, { name: 'SVGFEImageElement', value: 1, category: 2 }, { name: 'SVGFEMergeElement', value: 1, category: 2 }, { name: 'SVGFEMergeNodeElement', value: 1, category: 2 }, { name: 'SVGFEMorphologyElement', value: 1, category: 2 }, { name: 'SVGFEOffsetElement', value: 1, category: 2 }, { name: 'SVGFEPointLightElement', value: 1, category: 2 }, { name: 'SVGFESpecularLightingElement', value: 1, category: 2 }, { name: 'SVGFESpotLightElement', value: 1, category: 2 }, { name: 'SVGFETileElement', value: 1, category: 2 }, { name: 'SVGFETurbulenceElement', value: 1, category: 2 }, { name: 'SVGFilterElement', value: 1, category: 2 }, { name: 'SVGFitToViewBox', value: 1, category: 2 }, { name: 'SVGFontElement', value: 1, category: 2 }, { name: 'SVGFontFaceElement', value: 1, category: 2 }, { name: 'SVGFontFaceFormatElement', value: 1, category: 2 }, { name: 'SVGFontFaceNameElement', value: 1, category: 2 }, { name: 'SVGFontFaceSrcElement', value: 1, category: 2 }, { name: 'SVGFontFaceUriElement', value: 1, category: 2 }, { name: 'SVGForeignObjectElement', value: 1, category: 2 }, { name: 'SVGGElement', value: 1, category: 2 }, { name: 'SVGGlyphElement', value: 1, category: 2 }, { name: 'SVGGlyphRefElement', value: 1, category: 2 }, { name: 'SVGGradientElement', value: 1, category: 2 }, { name: 'SVGHKernElement', value: 1, category: 2 }, { name: 'SVGImageElement', value: 1, category: 2 }, { name: 'SVGLinearGradientElement', value: 1, category: 2 }, { name: 'SVGLineElement', value: 1, category: 2 }, { name: 'SVGLocatable', value: 1, category: 2 }, { name: 'SVGMatrix', value: 1, category: 2 }, { name: 'SVGMarkerElement', value: 1, category: 2 }, { name: 'SVGMaskElement', value: 1, category: 2 }, { name: 'SVGMetadataElement', value: 1, category: 2 }, { name: 'SVGMissingGlyphElement', value: 1, category: 2 }, { name: 'SVGMPathElement', value: 1, category: 2 }, { name: 'SVGNumber', value: 1, category: 2 }, { name: 'SVGPaint', value: 1, category: 2 }, { name: 'SVGPathElement', value: 1, category: 2 }, { name: 'SVGPathSegList', value: 1, category: 2 }, { name: 'SVGPathSegArcAbs', value: 1, category: 2 }, { name: 'SVGPathSegArcRel', value: 1, category: 2 }, { name: 'SVGPathSegClosePath', value: 1, category: 2 }, { name: 'SVGPathSegCurvetoCubicAbs', value: 1, category: 2 }, { name: 'SVGPathSegCurvetoCubicRel', value: 1, category: 2 }, { name: 'SVGPathSegCurvetoCubicSmoothAbs', value: 1, category: 2 }, { name: 'SVGPathSegCurvetoCubicSmoothRel', value: 1, category: 2 }, { name: 'SVGPathSegCurvetoQuadraticAbs', value: 1, category: 2 }, { name: 'SVGPathSegCurvetoQuadraticRel', value: 1, category: 2 }, { name: 'SVGPathSegCurvetoQuadraticSmoothAbs', value: 1, category: 2 }, { name: 'SVGPathSegCurvetoQuadraticSmoothRel', value: 1, category: 2 }, { name: 'SVGPathSegLinetoAbs', value: 1, category: 2 }, { name: 'SVGPathSegLinetoHorizontalAbs', value: 1, category: 2 }, { name: 'SVGPathSegLinetoHorizontalRel', value: 1, category: 2 }, { name: 'SVGPathSegLinetoRel', value: 1, category: 2 }, { name: 'SVGPathSegLinetoVerticalAbs', value: 1, category: 2 }, { name: 'SVGPathSegLinetoVerticalRel', value: 1, category: 2 }, { name: 'SVGPathSegMovetoAbs', value: 1, category: 2 }, { name: 'SVGPathSegMovetoRel', value: 1, category: 2 }, { name: 'SVGPoint', value: 1, category: 2 }, { name: 'SVGPathSeg', value: 1, category: 2 }, { name: 'SVGPatternElement', value: 1, category: 2 }, { name: 'SVGPointList', value: 1, category: 2 }, { name: 'SVGPolygonElement', value: 1, category: 2 }, { name: 'SVGPolylineElement', value: 1, category: 2 }, { name: 'SVGRadialGradientElement', value: 1, category: 2 }, { name: 'SVGRectElement', value: 1, category: 2 }, { name: 'SVGScriptElement', value: 1, category: 2 }, { name: 'SVGSetElement', value: 1, category: 2 }, { name: 'SVGStopElement', value: 1, category: 2 }, { name: 'SVGStyleElement', value: 1, category: 2 }, { name: 'SVGLangSpace', value: 1, category: 2 }, { name: 'SVGZoomAndPan', value: 1, category: 2 }, { name: 'SVGViewSpec', value: 1, category: 2 }, { name: 'SVGTransform', value: 1, category: 2 }, { name: 'SVGSwitchElement', value: 1, category: 2 }, { name: 'SVGSymbolElement', value: 1, category: 2 }, { name: 'SVGTests', value: 1, category: 2 }, { name: 'SVGStringList', value: 1, category: 2 }, { name: 'SVGTextContentElement', value: 1, category: 2 }, { name: 'SVGTextElement', value: 1, category: 2 }, { name: 'SVGTextPathElement', value: 1, category: 2 }, { name: 'SVGTextPositioningElement', value: 1, category: 2 }, { name: 'SVGTitleElement', value: 1, category: 2 }, { name: 'SVGTRefElement', value: 1, category: 2 }, { name: 'SVGTSpanElement', value: 1, category: 2 }, { name: 'SVGViewElement', value: 1, category: 2 }, { name: 'SVGVKernElement', value: 1, category: 2 }, { name: 'TextTrackCueList', value: 1, category: 4 }, { name: 'TextTrackCue', value: 1, category: 4 }, { name: 'Touch', value: 1, category: 4 }, { name: 'TouchList', value: 1, category: 4 }, { name: 'TreeWalker', value: 1, category: 4 }, { name: 'Uint16Array', value: 1, category: 4 }, { name: 'Uint32Array', value: 1, category: 4 }, { name: 'Uint8ClampedArray', value: 1, category: 4 }, { name: 'WebGLRenderingContext', value: 3, category: 1 }, { name: 'WebGLProgram', value: 1, category: 1 }, { name: 'WebGLBuffer', value: 1, category: 1 }, { name: 'WebGLFramebuffer', value: 1, category: 1 }, { name: 'WebGLRenderbuffer', value: 1, category: 1 }, { name: 'WebGLTexture', value: 1, category: 1 }, { name: 'WebGLShader', value: 1, category: 1 }, { name: 'WebGLActiveInfo', value: 1, category: 1 }, { name: 'WebGLContextAttributes', value: 1, category: 1 }, { name: 'WebGLShaderPrecisionFormat', value: 1, category: 1 }, { name: 'WebGLUniformLocation', value: 1, category: 1 }, { name: 'WebKitAnimationList', value: 1, category: 4 }, { name: 'WebKitAnimation', value: 1, category: 4 }, { name: 'WebKitCSSFilterValue', value: 1, category: 4 }, { name: 'WebKitCSSKeyframeRule', value: 1, category: 4 }, { name: 'WebKitCSSKeyframesRule', value: 1, category: 4 }, { name: 'WebKitCSSMatrix', value: 1, category: 4 }, { name: 'WebKitCSSMixFunctionValue', value: 1, category: 4 }, { name: 'WebKitCSSTransformValue', value: 1, category: 4 }, { name: 'WebKitNamedFlow', value: 1, category: 4 }, { name: 'WebSocket', value: 1, category: 4 }, { name: 'Worker', value: 1, category: 4 }, { name: 'WorkerLocation', value: 1, category: 4 }, { name: 'WorkerNavigator', value: 1, category: 4 }, { name: 'XMLHttpRequest', value: 1, category: 4 }, { name: 'XMLHttpRequestUpload', value: 1, category: 4 }, { name: 'DOMFormData', value: 1, category: 4 }, { name: 'XPathEvaluator', value: 1, category: 4 }, { name: 'XPathExpression', value: 1, category: 4 }, { name: 'XPathNSResolver', value: 1, category: 4 }, { name: 'XPathResult', value: 1, category: 4 }, { name: 'XSLTProcessor', value: 1, category: 4 }, ], links: [ { source: 0, target: 1 }, { source: 0, target: 2 }, { source: 0, target: 3 }, { source: 4, target: 4 }, { source: 5, target: 4 }, { source: 6, target: 7 }, { source: 6, target: 8 }, { source: 9, target: 3 }, { source: 10, target: 9 }, { source: 11, target: 12 }, { source: 11, target: 9 }, { source: 11, target: 13 }, { source: 11, target: 14 }, { source: 15, target: 16 }, { source: 15, target: 17 }, { source: 15, target: 0 }, { source: 15, target: 18 }, { source: 15, target: 9 }, { source: 15, target: 11 }, { source: 15, target: 19 }, { source: 15, target: 20 }, { source: 15, target: 21 }, { source: 15, target: 22 }, { source: 15, target: 23 }, { source: 15, target: 24 }, { source: 15, target: 25 }, { source: 15, target: 26 }, { source: 15, target: 27 }, { source: 15, target: 28 }, { source: 15, target: 29 }, { source: 15, target: 30 }, { source: 15, target: 31 }, { source: 15, target: 32 }, { source: 15, target: 4 }, { source: 16, target: 1 }, { source: 13, target: 14 }, { source: 1, target: 15 }, { source: 1, target: 1 }, { source: 1, target: 14 }, { source: 14, target: 3 }, { source: 12, target: 1 }, { source: 18, target: 1 }, { source: 18, target: 14 }, { source: 18, target: 3 }, { source: 33, target: 34 }, { source: 35, target: 33 }, { source: 35, target: 36 }, { source: 35, target: 37 }, { source: 35, target: 38 }, { source: 35, target: 39 }, { source: 35, target: 34 }, { source: 35, target: 40 }, { source: 35, target: 41 }, { source: 42, target: 43 }, { source: 19, target: 1 }, { source: 20, target: 1 }, { source: 44, target: 7 }, { source: 45, target: 46 }, { source: 47, target: 48 }, { source: 47, target: 49 }, { source: 47, target: 39 }, { source: 50, target: 44 }, { source: 51, target: 52 }, { source: 21, target: 1 }, { source: 21, target: 9 }, { source: 53, target: 5 }, { source: 54, target: 55 }, { source: 56, target: 55 }, { source: 56, target: 57 }, { source: 58, target: 55 }, { source: 58, target: 59 }, { source: 58, target: 60 }, { source: 61, target: 55 }, { source: 61, target: 62 }, { source: 61, target: 59 }, { source: 63, target: 55 }, { source: 63, target: 57 }, { source: 64, target: 65 }, { source: 64, target: 66 }, { source: 64, target: 67 }, { source: 64, target: 68 }, { source: 55, target: 55 }, { source: 55, target: 60 }, { source: 62, target: 55 }, { source: 57, target: 55 }, { source: 57, target: 65 }, { source: 69, target: 55 }, { source: 69, target: 57 }, { source: 60, target: 70 }, { source: 60, target: 62 }, { source: 60, target: 55 }, { source: 71, target: 55 }, { source: 72, target: 65 }, { source: 73, target: 74 }, { source: 75, target: 73 }, { source: 75, target: 76 }, { source: 76, target: 77 }, { source: 78, target: 79 }, { source: 78, target: 80 }, { source: 49, target: 81 }, { source: 49, target: 78 }, { source: 82, target: 5 }, { source: 83, target: 84 }, { source: 22, target: 1 }, { source: 22, target: 14 }, { source: 85, target: 80 }, { source: 85, target: 86 }, { source: 85, target: 87 }, { source: 88, target: 89 }, { source: 88, target: 90 }, { source: 88, target: 88 }, { source: 88, target: 91 }, { source: 86, target: 92 }, { source: 90, target: 93 }, { source: 94, target: 7 }, { source: 94, target: 8 }, { source: 94, target: 95 }, { source: 96, target: 7 }, { source: 96, target: 97 }, { source: 98, target: 85 }, { source: 99, target: 88 }, { source: 100, target: 60 }, { source: 100, target: 96 }, { source: 100, target: 101 }, { source: 102, target: 103 }, { source: 104, target: 102 }, { source: 103, target: 102 }, { source: 105, target: 103 }, { source: 106, target: 7 }, { source: 106, target: 107 }, { source: 108, target: 109 }, { source: 23, target: 1 }, { source: 23, target: 14 }, { source: 8, target: 7 }, { source: 8, target: 109 }, { source: 8, target: 110 }, { source: 8, target: 8 }, { source: 8, target: 57 }, { source: 8, target: 6 }, { source: 8, target: 46 }, { source: 8, target: 45 }, { source: 8, target: 95 }, { source: 8, target: 111 }, { source: 112, target: 7 }, { source: 113, target: 7 }, { source: 92, target: 114 }, { source: 80, target: 98 }, { source: 80, target: 85 }, { source: 80, target: 115 }, { source: 80, target: 116 }, { source: 80, target: 87 }, { source: 114, target: 80 }, { source: 93, target: 89 }, { source: 116, target: 80 }, { source: 89, target: 99 }, { source: 89, target: 89 }, { source: 89, target: 117 }, { source: 89, target: 88 }, { source: 118, target: 119 }, { source: 120, target: 81 }, { source: 121, target: 80 }, { source: 121, target: 122 }, { source: 121, target: 120 }, { source: 91, target: 89 }, { source: 91, target: 123 }, { source: 91, target: 81 }, { source: 48, target: 81 }, { source: 124, target: 119 }, { source: 125, target: 4 }, { source: 126, target: 98 }, { source: 127, target: 119 }, { source: 122, target: 127 }, { source: 3, target: 5 }, { source: 3, target: 3 }, { source: 128, target: 5 }, { source: 128, target: 128 }, { source: 24, target: 1 }, { source: 24, target: 13 }, { source: 129, target: 130 }, { source: 131, target: 132 }, { source: 133, target: 134 }, { source: 135, target: 7 }, { source: 135, target: 95 }, { source: 136, target: 137 }, { source: 138, target: 137 }, { source: 139, target: 137 }, { source: 140, target: 141 }, { source: 142, target: 137 }, { source: 143, target: 137 }, { source: 144, target: 137 }, { source: 145, target: 137 }, { source: 146, target: 137 }, { source: 146, target: 147 }, { source: 146, target: 95 }, { source: 146, target: 148 }, { source: 34, target: 137 }, { source: 149, target: 7 }, { source: 150, target: 137 }, { source: 150, target: 95 }, { source: 151, target: 137 }, { source: 151, target: 149 }, { source: 152, target: 137 }, { source: 153, target: 137 }, { source: 154, target: 137 }, { source: 155, target: 137 }, { source: 101, target: 8 }, { source: 101, target: 135 }, { source: 101, target: 149 }, { source: 137, target: 8 }, { source: 137, target: 149 }, { source: 156, target: 137 }, { source: 156, target: 157 }, { source: 158, target: 137 }, { source: 158, target: 149 }, { source: 158, target: 147 }, { source: 158, target: 148 }, { source: 159, target: 137 }, { source: 160, target: 149 }, { source: 160, target: 7 }, { source: 147, target: 137 }, { source: 147, target: 149 }, { source: 161, target: 137 }, { source: 161, target: 157 }, { source: 162, target: 137 }, { source: 163, target: 137 }, { source: 164, target: 137 }, { source: 165, target: 137 }, { source: 166, target: 137 }, { source: 167, target: 137 }, { source: 167, target: 157 }, { source: 39, target: 137 }, { source: 168, target: 137 }, { source: 168, target: 48 }, { source: 168, target: 147 }, { source: 168, target: 95 }, { source: 168, target: 148 }, { source: 168, target: 114 }, { source: 169, target: 137 }, { source: 169, target: 147 }, { source: 169, target: 95 }, { source: 169, target: 148 }, { source: 170, target: 137 }, { source: 170, target: 147 }, { source: 171, target: 137 }, { source: 171, target: 147 }, { source: 172, target: 137 }, { source: 173, target: 137 }, { source: 173, target: 70 }, { source: 173, target: 108 }, { source: 174, target: 137 }, { source: 174, target: 149 }, { source: 175, target: 137 }, { source: 141, target: 137 }, { source: 141, target: 176 }, { source: 141, target: 177 }, { source: 141, target: 178 }, { source: 141, target: 179 }, { source: 141, target: 180 }, { source: 181, target: 137 }, { source: 182, target: 137 }, { source: 183, target: 137 }, { source: 183, target: 95 }, { source: 184, target: 137 }, { source: 185, target: 137 }, { source: 185, target: 147 }, { source: 185, target: 148 }, { source: 185, target: 157 }, { source: 186, target: 137 }, { source: 187, target: 137 }, { source: 188, target: 137 }, { source: 188, target: 147 }, { source: 189, target: 149 }, { source: 189, target: 188 }, { source: 189, target: 7 }, { source: 190, target: 137 }, { source: 190, target: 147 }, { source: 190, target: 108 }, { source: 190, target: 95 }, { source: 190, target: 148 }, { source: 191, target: 137 }, { source: 192, target: 137 }, { source: 193, target: 137 }, { source: 194, target: 137 }, { source: 194, target: 95 }, { source: 195, target: 137 }, { source: 196, target: 137 }, { source: 197, target: 137 }, { source: 197, target: 147 }, { source: 197, target: 95 }, { source: 197, target: 189 }, { source: 197, target: 149 }, { source: 197, target: 148 }, { source: 197, target: 7 }, { source: 198, target: 137 }, { source: 199, target: 137 }, { source: 200, target: 137 }, { source: 201, target: 137 }, { source: 201, target: 70 }, { source: 202, target: 137 }, { source: 203, target: 137 }, { source: 204, target: 137 }, { source: 205, target: 137 }, { source: 205, target: 202 }, { source: 205, target: 149 }, { source: 205, target: 206 }, { source: 207, target: 137 }, { source: 207, target: 149 }, { source: 206, target: 137 }, { source: 206, target: 149 }, { source: 208, target: 137 }, { source: 208, target: 147 }, { source: 208, target: 95 }, { source: 208, target: 148 }, { source: 209, target: 137 }, { source: 210, target: 137 }, { source: 210, target: 180 }, { source: 211, target: 137 }, { source: 212, target: 137 }, { source: 40, target: 141 }, { source: 213, target: 214 }, { source: 213, target: 215 }, { source: 213, target: 216 }, { source: 217, target: 213 }, { source: 218, target: 219 }, { source: 218, target: 214 }, { source: 218, target: 220 }, { source: 218, target: 221 }, { source: 222, target: 215 }, { source: 222, target: 223 }, { source: 222, target: 224 }, { source: 222, target: 216 }, { source: 225, target: 214 }, { source: 225, target: 220 }, { source: 225, target: 216 }, { source: 226, target: 215 }, { source: 226, target: 226 }, { source: 220, target: 219 }, { source: 220, target: 214 }, { source: 220, target: 221 }, { source: 220, target: 216 }, { source: 220, target: 225 }, { source: 224, target: 216 }, { source: 216, target: 227 }, { source: 216, target: 214 }, { source: 216, target: 221 }, { source: 221, target: 218 }, { source: 221, target: 227 }, { source: 221, target: 220 }, { source: 223, target: 216 }, { source: 228, target: 5 }, { source: 228, target: 228 }, { source: 229, target: 5 }, { source: 229, target: 229 }, { source: 230, target: 5 }, { source: 230, target: 230 }, { source: 231, target: 231 }, { source: 232, target: 233 }, { source: 234, target: 219 }, { source: 177, target: 176 }, { source: 25, target: 12 }, { source: 25, target: 141 }, { source: 235, target: 236 }, { source: 236, target: 235 }, { source: 237, target: 238 }, { source: 237, target: 239 }, { source: 233, target: 240 }, { source: 26, target: 12 }, { source: 26, target: 233 }, { source: 27, target: 12 }, { source: 27, target: 233 }, { source: 241, target: 233 }, { source: 240, target: 242 }, { source: 243, target: 244 }, { source: 115, target: 117 }, { source: 245, target: 7 }, { source: 246, target: 95 }, { source: 246, target: 7 }, { source: 97, target: 7 }, { source: 247, target: 131 }, { source: 247, target: 104 }, { source: 247, target: 105 }, { source: 247, target: 248 }, { source: 247, target: 129 }, { source: 249, target: 250 }, { source: 251, target: 232 }, { source: 7, target: 97 }, { source: 7, target: 95 }, { source: 7, target: 7 }, { source: 7, target: 8 }, { source: 252, target: 7 }, { source: 253, target: 252 }, { source: 253, target: 7 }, { source: 95, target: 7 }, { source: 254, target: 7 }, { source: 255, target: 256 }, { source: 257, target: 255 }, { source: 257, target: 87 }, { source: 258, target: 259 }, { source: 28, target: 12 }, { source: 28, target: 14 }, { source: 28, target: 32 }, { source: 29, target: 1 }, { source: 260, target: 52 }, { source: 260, target: 261 }, { source: 260, target: 262 }, { source: 132, target: 133 }, { source: 263, target: 264 }, { source: 265, target: 7 }, { source: 265, target: 70 }, { source: 266, target: 95 }, { source: 107, target: 7 }, { source: 107, target: 94 }, { source: 107, target: 107 }, { source: 107, target: 46 }, { source: 107, target: 45 }, { source: 68, target: 64 }, { source: 67, target: 64 }, { source: 267, target: 4 }, { source: 267, target: 5 }, { source: 268, target: 269 }, { source: 268, target: 241 }, { source: 268, target: 270 }, { source: 268, target: 233 }, { source: 268, target: 271 }, { source: 268, target: 267 }, { source: 268, target: 272 }, { source: 271, target: 269 }, { source: 272, target: 273 }, { source: 274, target: 275 }, { source: 30, target: 1 }, { source: 276, target: 277 }, { source: 111, target: 94 }, { source: 111, target: 8 }, { source: 111, target: 7 }, { source: 111, target: 95 }, { source: 111, target: 106 }, { source: 278, target: 279 }, { source: 278, target: 244 }, { source: 280, target: 84 }, { source: 239, target: 176 }, { source: 239, target: 2 }, { source: 238, target: 239 }, { source: 281, target: 282 }, { source: 283, target: 284 }, { source: 285, target: 281 }, { source: 286, target: 287 }, { source: 288, target: 286 }, { source: 289, target: 290 }, { source: 291, target: 292 }, { source: 293, target: 292 }, { source: 74, target: 292 }, { source: 294, target: 295 }, { source: 296, target: 289 }, { source: 77, target: 296 }, { source: 297, target: 298 }, { source: 297, target: 299 }, { source: 300, target: 301 }, { source: 70, target: 59 }, { source: 70, target: 7 }, { source: 70, target: 70 }, { source: 302, target: 70 }, { source: 303, target: 304 }, { source: 303, target: 305 }, { source: 306, target: 307 }, { source: 308, target: 309 }, { source: 310, target: 307 }, { source: 311, target: 312 }, { source: 313, target: 314 }, { source: 315, target: 316 }, { source: 317, target: 318 }, { source: 319, target: 320 }, { source: 321, target: 322 }, { source: 323, target: 324 }, { source: 325, target: 326 }, { source: 327, target: 312 }, { source: 328, target: 312 }, { source: 329, target: 312 }, { source: 312, target: 330 }, { source: 312, target: 307 }, { source: 331, target: 304 }, { source: 331, target: 315 }, { source: 332, target: 304 }, { source: 332, target: 333 }, { source: 334, target: 65 }, { source: 334, target: 67 }, { source: 335, target: 307 }, { source: 335, target: 336 }, { source: 335, target: 319 }, { source: 335, target: 333 }, { source: 337, target: 338 }, { source: 337, target: 315 }, { source: 339, target: 304 }, { source: 340, target: 341 }, { source: 157, target: 342 }, { source: 307, target: 8 }, { source: 307, target: 342 }, { source: 307, target: 307 }, { source: 343, target: 344 }, { source: 343, target: 345 }, { source: 343, target: 307 }, { source: 343, target: 346 }, { source: 343, target: 343 }, { source: 345, target: 343 }, { source: 347, target: 304 }, { source: 347, target: 315 }, { source: 338, target: 348 }, { source: 349, target: 350 }, { source: 349, target: 305 }, { source: 349, target: 333 }, { source: 351, target: 350 }, { source: 351, target: 305 }, { source: 351, target: 333 }, { source: 351, target: 319 }, { source: 352, target: 350 }, { source: 352, target: 305 }, { source: 353, target: 350 }, { source: 353, target: 305 }, { source: 353, target: 336 }, { source: 353, target: 333 }, { source: 354, target: 350 }, { source: 354, target: 336 }, { source: 354, target: 333 }, { source: 354, target: 305 }, { source: 354, target: 319 }, { source: 354, target: 355 }, { source: 354, target: 348 }, { source: 356, target: 350 }, { source: 356, target: 336 }, { source: 356, target: 305 }, { source: 357, target: 350 }, { source: 357, target: 305 }, { source: 357, target: 336 }, { source: 357, target: 333 }, { source: 358, target: 307 }, { source: 358, target: 336 }, { source: 359, target: 350 }, { source: 359, target: 336 }, { source: 359, target: 305 }, { source: 360, target: 350 }, { source: 361, target: 335 }, { source: 362, target: 335 }, { source: 363, target: 335 }, { source: 364, target: 335 }, { source: 365, target: 350 }, { source: 365, target: 305 }, { source: 365, target: 336 }, { source: 366, target: 350 }, { source: 366, target: 321 }, { source: 367, target: 350 }, { source: 368, target: 307 }, { source: 368, target: 305 }, { source: 369, target: 350 }, { source: 369, target: 305 }, { source: 369, target: 333 }, { source: 369, target: 336 }, { source: 370, target: 350 }, { source: 370, target: 336 }, { source: 370, target: 305 }, { source: 371, target: 307 }, { source: 371, target: 336 }, { source: 372, target: 350 }, { source: 372, target: 305 }, { source: 372, target: 336 }, { source: 373, target: 307 }, { source: 373, target: 336 }, { source: 374, target: 350 }, { source: 374, target: 305 }, { source: 375, target: 350 }, { source: 375, target: 336 }, { source: 375, target: 355 }, { source: 375, target: 333 }, { source: 376, target: 341 }, { source: 376, target: 355 }, { source: 376, target: 333 }, { source: 376, target: 315 }, { source: 350, target: 341 }, { source: 350, target: 315 }, { source: 350, target: 305 }, { source: 377, target: 321 }, { source: 377, target: 323 }, { source: 378, target: 307 }, { source: 379, target: 307 }, { source: 380, target: 307 }, { source: 381, target: 307 }, { source: 382, target: 307 }, { source: 383, target: 307 }, { source: 384, target: 304 }, { source: 384, target: 315 }, { source: 385, target: 304 }, { source: 386, target: 307 }, { source: 387, target: 341 }, { source: 388, target: 341 }, { source: 388, target: 325 }, { source: 388, target: 333 }, { source: 389, target: 307 }, { source: 390, target: 304 }, { source: 390, target: 315 }, { source: 390, target: 321 }, { source: 318, target: 316 }, { source: 391, target: 388 }, { source: 391, target: 315 }, { source: 392, target: 304 }, { source: 392, target: 315 }, { source: 393, target: 307 }, { source: 393, target: 324 }, { source: 393, target: 394 }, { source: 395, target: 377 }, { source: 395, target: 315 }, { source: 395, target: 333 }, { source: 395, target: 313 }, { source: 395, target: 314 }, { source: 396, target: 341 }, { source: 396, target: 315 }, { source: 396, target: 333 }, { source: 394, target: 394 }, { source: 397, target: 307 }, { source: 398, target: 307 }, { source: 399, target: 338 }, { source: 320, target: 400 }, { source: 401, target: 334 }, { source: 402, target: 304 }, { source: 402, target: 403 }, { source: 402, target: 336 }, { source: 402, target: 404 }, { source: 402, target: 405 }, { source: 402, target: 406 }, { source: 402, target: 407 }, { source: 402, target: 408 }, { source: 402, target: 409 }, { source: 402, target: 410 }, { source: 402, target: 411 }, { source: 402, target: 412 }, { source: 402, target: 413 }, { source: 402, target: 414 }, { source: 402, target: 415 }, { source: 402, target: 416 }, { source: 402, target: 417 }, { source: 402, target: 418 }, { source: 402, target: 419 }, { source: 402, target: 420 }, { source: 402, target: 421 }, { source: 402, target: 422 }, { source: 402, target: 423 }, { source: 404, target: 424 }, { source: 405, target: 424 }, { source: 406, target: 424 }, { source: 407, target: 424 }, { source: 408, target: 424 }, { source: 409, target: 424 }, { source: 410, target: 424 }, { source: 411, target: 424 }, { source: 412, target: 424 }, { source: 413, target: 424 }, { source: 414, target: 424 }, { source: 415, target: 424 }, { source: 416, target: 424 }, { source: 417, target: 424 }, { source: 418, target: 424 }, { source: 419, target: 424 }, { source: 420, target: 424 }, { source: 403, target: 424 }, { source: 421, target: 424 }, { source: 422, target: 424 }, { source: 425, target: 377 }, { source: 425, target: 315 }, { source: 425, target: 333 }, { source: 425, target: 325 }, { source: 423, target: 423 }, { source: 426, target: 423 }, { source: 427, target: 304 }, { source: 427, target: 426 }, { source: 428, target: 304 }, { source: 428, target: 426 }, { source: 429, target: 388 }, { source: 429, target: 315 }, { source: 430, target: 304 }, { source: 430, target: 315 }, { source: 431, target: 338 }, { source: 432, target: 312 }, { source: 433, target: 341 }, { source: 433, target: 336 }, { source: 341, target: 305 }, { source: 341, target: 57 }, { source: 341, target: 65 }, { source: 434, target: 435 }, { source: 342, target: 436 }, { source: 342, target: 423 }, { source: 342, target: 437 }, { source: 342, target: 315 }, { source: 342, target: 324 }, { source: 342, target: 307 }, { source: 342, target: 314 }, { source: 342, target: 316 }, { source: 342, target: 394 }, { source: 342, target: 400 }, { source: 342, target: 438 }, { source: 342, target: 8 }, { source: 342, target: 95 }, { source: 439, target: 304 }, { source: 440, target: 377 }, { source: 441, target: 442 }, { source: 443, target: 341 }, { source: 443, target: 333 }, { source: 443, target: 315 }, { source: 443, target: 423 }, { source: 443, target: 324 }, { source: 444, target: 304 }, { source: 445, target: 309 }, { source: 445, target: 333 }, { source: 445, target: 315 }, { source: 446, target: 443 }, { source: 446, target: 317 }, { source: 446, target: 319 }, { source: 447, target: 341 }, { source: 438, target: 394 }, { source: 304, target: 393 }, { source: 304, target: 325 }, { source: 326, target: 438 }, { source: 448, target: 309 }, { source: 449, target: 446 }, { source: 309, target: 305 }, { source: 346, target: 304 }, { source: 346, target: 343 }, { source: 346, target: 315 }, { source: 450, target: 436 }, { source: 450, target: 442 }, { source: 437, target: 321 }, { source: 437, target: 326 }, { source: 437, target: 323 }, { source: 437, target: 307 }, { source: 451, target: 307 }, { source: 43, target: 44 }, { source: 43, target: 43 }, { source: 180, target: 452 }, { source: 180, target: 453 }, { source: 453, target: 180 }, { source: 453, target: 94 }, { source: 452, target: 453 }, { source: 179, target: 180 }, { source: 454, target: 344 }, { source: 455, target: 454 }, { source: 456, target: 7 }, { source: 456, target: 252 }, { source: 457, target: 5 }, { source: 457, target: 457 }, { source: 458, target: 5 }, { source: 458, target: 458 }, { source: 2, target: 5 }, { source: 2, target: 2 }, { source: 459, target: 2 }, { source: 459, target: 459 }, { source: 31, target: 1 }, { source: 31, target: 3 }, { source: 460, target: 33 }, { source: 460, target: 461 }, { source: 460, target: 462 }, { source: 460, target: 463 }, { source: 460, target: 464 }, { source: 460, target: 465 }, { source: 460, target: 4 }, { source: 460, target: 5 }, { source: 460, target: 466 }, { source: 460, target: 467 }, { source: 460, target: 468 }, { source: 460, target: 469 }, { source: 460, target: 470 }, { source: 460, target: 36 }, { source: 460, target: 39 }, { source: 460, target: 34 }, { source: 460, target: 40 }, { source: 460, target: 3 }, { source: 471, target: 472 }, { source: 473, target: 72 }, { source: 474, target: 55 }, { source: 474, target: 57 }, { source: 475, target: 55 }, { source: 475, target: 62 }, { source: 475, target: 474 }, { source: 476, target: 476 }, { source: 477, target: 72 }, { source: 478, target: 72 }, { source: 479, target: 95 }, { source: 480, target: 4 }, { source: 480, target: 5 }, { source: 481, target: 279 }, { source: 84, target: 222 }, { source: 84, target: 482 }, { source: 84, target: 483 }, { source: 84, target: 84 }, { source: 84, target: 257 }, { source: 84, target: 73 }, { source: 84, target: 76 }, { source: 84, target: 126 }, { source: 84, target: 99 }, { source: 84, target: 89 }, { source: 484, target: 485 }, { source: 484, target: 4 }, { source: 484, target: 5 }, { source: 484, target: 486 }, { source: 487, target: 488 }, { source: 487, target: 489 }, { source: 487, target: 490 }, { source: 488, target: 490 }, { source: 490, target: 7 }, { source: 491, target: 7 }, { source: 491, target: 94 }, ], } const option = { legend: { data: ['HTMLElement', 'WebGL', 'SVG', 'CSS', 'Other'], }, series: [ { type: 'graph', layout: 'force', animation: false, label: { normal: { position: 'right', formatter: '{b}', }, }, draggable: true, data: webkitDep.nodes.map((node, idx) => { node.id = idx return node }), categories: webkitDep.categories, force: { edgeLength: 5, repulsion: 20, gravity: 0.2, }, edges: webkitDep.links, }, ], } return option } return ( <div className="examples"> <div className="parent"> <label> render a graph-webkit-dep.</label> <ReactEcharts option={getOtion()} style={{ height: '700px', width: '100%' }} className="react_for_echarts" /> </div> </div> ) } export default GraphComponent ```
/content/code_sandbox/src/pages/chart/ECharts/GraphComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
19,563
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' class ChartShowLoadingComponent extends React.Component { constructor() { super() this._t = null this.onChartReady = this.onChartReady.bind(this) } componentWillUnmount() { clearTimeout(this._t) } onChartReady(chart) { this._t = setTimeout(() => { chart.hideLoading() }, 3000) } render() { const getOtion = () => { const option = { title: { text: '', }, tooltip: {}, legend: { data: ['Allocated Budget', 'Actual Spending'], }, radar: { indicator: [ { name: 'sales', max: 6500 }, { name: 'Administration', max: 16000 }, { name: 'Information Techology', max: 30000 }, { name: 'Customer Support', max: 38000 }, { name: 'Development', max: 52000 }, { name: 'Marketing', max: 25000 }, ], }, series: [ { name: ' vs Budget vs spending', type: 'radar', data: [ { value: [4300, 10000, 28000, 35000, 50000, 19000], name: 'Allocated Budget', }, { value: [5000, 14000, 28000, 31000, 42000, 21000], name: 'Actual Spending', }, ], }, ], } return option } const getLoadingOption = () => { const option = { text: '...', color: '#4413c2', textColor: '#270240', maskColor: 'rgba(194, 88, 86, 0.3)', zlevel: 0, } return option } let code = 'onChartReady: function(chart) {\n' + " 'chart.hideLoading();\n" + '}\n\n' + '<ReactEcharts \n' + ' option={this.getOtion()} \n' + ' onChartReady={this.onChartReady} \n' + ' loadingOption={this.getLoadingOption()} \n' + ' showLoading={true} />' return ( <div className="examples"> <div className="parent"> <label> {' '} Chart loading With <strong> showLoading </strong>: (when chart ready, hide the loading mask.) </label> <ReactEcharts option={getOtion()} onChartReady={this.onChartReady} loadingOption={getLoadingOption()} showLoading /> <label> code below: </label> <pre> <code>{code}</code> </pre> </div> </div> ) } } export default ChartShowLoadingComponent ```
/content/code_sandbox/src/pages/chart/ECharts/ChartShowLoadingComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
662
```javascript import React from 'react' import { Radio } from 'antd' import { Page } from 'components' import EchartsComponent from './EchartsComponent' import styles from './index.less' const RadioGroup = Radio.Group const chartList = [ { label: 'SimpleChart', value: 'simple', }, { label: 'ChartShowLoading', value: 'loading', }, { label: 'ChartAPI', value: 'api', }, { label: 'ChartWithEvent', value: 'events', }, { label: 'ThemeChart', value: 'theme', }, { label: 'DynamicChart', value: 'dynamic', }, { label: 'MapChart', value: 'map', }, { label: 'AirportCoord', value: 'airport', }, { label: 'Graph', value: 'graph', }, { label: 'Calendar', value: 'calendar', }, { label: 'Treemap', value: 'treemap', }, { label: 'Gauge', value: 'gauge', }, { label: 'GCalendar', value: 'gcalendar', }, { label: 'LunarCalendar', value: 'lunar', }, { label: 'Liquidfill', value: 'liquid', }, { label: 'BubbleGradient', value: 'BubbleGradientComponent', }, { label: 'TransparentBar3D', value: 'TransparentBar3DComPonent', }, ] class Chart extends React.Component { constructor() { super() this.state = { type: '', } this.handleRadioGroupChange = this.handleRadioGroupChange.bind(this) } handleRadioGroupChange(e) { this.setState({ type: e.target.value, }) } render() { return ( <Page inner id="EChartsMain"> <RadioGroup options={chartList} defaultValue="dynamic" onChange={this.handleRadioGroupChange} /> <div className={styles.chart}> <EchartsComponent type={this.state.type} /> </div> <div style={{ pading: 24, marginTop: 24 }}> All demos from{' '} <a href="path_to_url"> path_to_url </a> </div> </Page> ) } } export default Chart ```
/content/code_sandbox/src/pages/chart/ECharts/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
546
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' require('echarts-liquidfill') const LiquidfillComponent = () => { const option = { series: [ { type: 'liquidFill', data: [0.6], }, ], } return ( <div className="examples"> <div className="parent"> <label>render a Liquidfill chart:</label> <ReactEcharts option={option} style={{ height: '400px', width: '100%', }} className="react_for_echarts" /> </div> </div> ) } export default LiquidfillComponent ```
/content/code_sandbox/src/pages/chart/ECharts/LiquidfillComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
151
```javascript import React from 'react' import ReactEcharts from 'echarts-for-react' import * as echarts from 'echarts' const ThemeChartComponent = () => { const option = { title: { text: '', subtext: 'From ExcelHome', sublink: 'path_to_url }, tooltip: { trigger: 'axis', axisPointer: { // type: 'shadow', // 'line' | 'shadow' }, }, legend: { data: ['', ''], }, grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true, }, xAxis: { type: 'category', splitLine: { show: false }, data: [ '111', '112', '113', '114', '115', '116', '117', '118', '119', '1110', '1111', ], }, yAxis: { type: 'value', }, series: [ { name: '', type: 'bar', stack: '', itemStyle: { normal: { barBorderColor: 'rgba(0,0,0,0)', color: 'rgba(0,0,0,0)', }, emphasis: { barBorderColor: 'rgba(0,0,0,0)', color: 'rgba(0,0,0,0)', }, }, data: [0, 900, 1245, 1530, 1376, 1376, 1511, 1689, 1856, 1495, 1292], }, { name: '', type: 'bar', stack: '', label: { normal: { show: true, position: 'top', }, }, data: [900, 345, 393, '-', '-', 135, 178, 286, '-', '-', '-'], }, { name: '', type: 'bar', stack: '', label: { normal: { show: true, position: 'bottom', }, }, data: ['-', '-', '-', 108, 154, '-', '-', '-', 119, 361, 203], }, ], } echarts.registerTheme('my_theme', { backgroundColor: '#f4cccc', }) let code = "echarts.registerTheme('my_theme', {\n" + " backgroundColor: '#f4cccc'\n" + '});\n\n' + '<ReactEcharts \n' + ' option={this.getOtion()} \n' + " theme='my_theme' />" return ( <div className="examples"> <div className="parent"> <label> {' '} render a echart With <strong>theme</strong>, should{' '} <strong>echarts.registerTheme(themeName, themeObj)</strong> before use. </label> <ReactEcharts option={option} theme="my_theme" /> <label> {' '} the theme object format: path_to_url </label> <pre> <code>{code}</code> </pre> </div> </div> ) } export default ThemeChartComponent ```
/content/code_sandbox/src/pages/chart/ECharts/ThemeChartComponent.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
741
```javascript /* global define */ ;(function(root, factory) { if (typeof define === 'function' && define.amd) { // eslint-disable-line // AMD. Register as an anonymous module. define(['exports', 'echarts'], factory) // eslint-disable-line } else if ( typeof exports === 'object' && typeof exports.nodeName !== 'string' ) { // CommonJS factory(exports, require('echarts')) } else { // Browser globals factory({}, root.echarts) } })(this, (exports, echarts) => { let log = function(msg) { if (typeof console !== 'undefined') { /* eslint-disable */ console && console.error && console.error(msg) } } if (!echarts) { log('ECharts is not Loaded') return } let colorPalette = [ '#2ec7c9', '#b6a2de', '#5ab1ef', '#ffb980', '#d87a80', '#8d98b3', '#e5cf0d', '#97b552', '#95706d', '#dc69aa', '#07a2a4', '#9a7fd1', '#588dd5', '#f5994e', '#c05050', '#59678c', '#c9ab00', '#7eb00a', '#6f5553', '#c14089', ] let theme = { color: colorPalette, title: { textStyle: { fontWeight: 'normal', color: '#008acd', }, }, visualMap: { itemWidth: 15, color: ['#5ab1ef', '#e0ffff'], }, toolbox: { iconStyle: { normal: { borderColor: colorPalette[0], }, }, }, tooltip: { backgroundColor: 'rgba(50,50,50,0.5)', axisPointer: { type: 'line', lineStyle: { color: '#008acd', }, crossStyle: { color: '#008acd', }, shadowStyle: { color: 'rgba(200,200,200,0.2)', }, }, }, dataZoom: { dataBackgroundColor: '#efefff', fillerColor: 'rgba(182,162,222,0.2)', handleColor: '#008acd', }, grid: { borderColor: '#eee', }, categoryAxis: { axisLine: { lineStyle: { color: '#008acd', }, }, splitLine: { lineStyle: { color: ['#eee'], }, }, }, valueAxis: { axisLine: { lineStyle: { color: '#008acd', }, }, splitArea: { show: true, areaStyle: { color: ['rgba(250,250,250,0.1)', 'rgba(200,200,200,0.1)'], }, }, splitLine: { lineStyle: { color: ['#eee'], }, }, }, timeline: { lineStyle: { color: '#008acd', }, controlStyle: { normal: { color: '#008acd' }, emphasis: { color: '#008acd' }, }, symbol: 'emptyCircle', symbolSize: 3, }, line: { smooth: true, symbol: 'emptyCircle', symbolSize: 3, }, candlestick: { itemStyle: { normal: { color: '#d87a80', color0: '#2ec7c9', lineStyle: { color: '#d87a80', color0: '#2ec7c9', }, }, }, }, scatter: { symbol: 'circle', symbolSize: 4, }, map: { label: { normal: { textStyle: { color: '#d87a80', }, }, }, itemStyle: { normal: { borderColor: '#eee', areaColor: '#ddd', }, emphasis: { areaColor: '#fe994e', }, }, }, graph: { color: colorPalette, }, gauge: { axisLine: { lineStyle: { color: [[0.2, '#2ec7c9'], [0.8, '#5ab1ef'], [1, '#d87a80']], width: 10, }, }, axisTick: { splitNumber: 10, length: 15, lineStyle: { color: 'auto', }, }, splitLine: { length: 22, lineStyle: { color: 'auto', }, }, pointer: { width: 5, }, }, } echarts.registerTheme('macarons', theme) }) ```
/content/code_sandbox/src/pages/chart/ECharts/theme/macarons.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1,110
```javascript /* global define */ ;(function(root, factory) { if (typeof define === 'function' && define.amd) { // eslint-disable-line // AMD. Register as an anonymous module. define(['exports', 'echarts'], factory) // eslint-disable-line } else if ( typeof exports === 'object' && typeof exports.nodeName !== 'string' ) { // CommonJS factory(exports, require('echarts')) } else { // Browser globals factory({}, root.echarts) } })(this, (exports, echarts) => { let log = function(msg) { if (typeof console !== 'undefined') { /* eslint-disable */ console && console.error && console.error(msg) } } if (!echarts) { log('ECharts is not Loaded') return } let colorPalette = [ '#c12e34', '#e6b600', '#0098d9', '#2b821d', '#005eaa', '#339ca8', '#cda819', '#32a487', ] let theme = { color: colorPalette, title: { textStyle: { fontWeight: 'normal', }, }, visualMap: { color: ['#1790cf', '#a2d4e6'], }, toolbox: { iconStyle: { normal: { borderColor: '#06467c', }, }, }, tooltip: { backgroundColor: 'rgba(0,0,0,0.6)', }, dataZoom: { dataBackgroundColor: '#dedede', fillerColor: 'rgba(154,217,247,0.2)', handleColor: '#005eaa', }, timeline: { lineStyle: { color: '#005eaa', }, controlStyle: { normal: { color: '#005eaa', borderColor: '#005eaa', }, }, }, candlestick: { itemStyle: { normal: { color: '#c12e34', color0: '#2b821d', lineStyle: { width: 1, color: '#c12e34', color0: '#2b821d', }, }, }, }, graph: { color: colorPalette, }, map: { label: { normal: { textStyle: { color: '#c12e34', }, }, emphasis: { textStyle: { color: '#c12e34', }, }, }, itemStyle: { normal: { borderColor: '#eee', areaColor: '#ddd', }, emphasis: { areaColor: '#e6b600', }, }, }, gauge: { axisLine: { show: true, lineStyle: { color: [[0.2, '#2b821d'], [0.8, '#005eaa'], [1, '#c12e34']], width: 5, }, }, axisTick: { splitNumber: 10, length: 8, lineStyle: { color: 'auto', }, }, axisLabel: { textStyle: { color: 'auto', }, }, splitLine: { length: 12, lineStyle: { color: 'auto', }, }, pointer: { length: '90%', width: 3, color: 'auto', }, title: { textStyle: { color: '#333', }, }, detail: { textStyle: { color: 'auto', }, }, }, } echarts.registerTheme('shine', theme) }) ```
/content/code_sandbox/src/pages/chart/ECharts/theme/shine.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
830
```javascript module.exports = { title: 'Europe', version: '1.1.2', type: 'FeatureCollection', copyrightShort: 'Natural Earth', copyrightUrl: 'path_to_url crs: { type: 'name', properties: { name: 'urn:ogc:def:crs:EPSG:102014' } }, 'hc-transform': { default: { crs: '+proj=lcc +lat_1=43 +lat_2=62 +lat_0=30 +lon_0=10 +x_0=0 +y_0=0 +ellps=intl +units=m +no_defs', scale: 0.000169255094964, jsonres: 15.5, jsonmarginX: -999, jsonmarginY: 9851.0, xoffset: -1706316.2597, yoffset: 4824494.18154, }, }, features: [ { type: 'Feature', id: 'DK', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.19, 'hc-middle-y': 0.44, 'hc-key': 'dk', 'hc-a2': 'DK', name: 'Denmark', labelrank: '4', 'country-abbrev': 'Den.', subregion: 'Northern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'DNK', 'iso-a2': 'DK', 'woe-id': '23424796', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [3686, 4530], [3743, 4490], [3764, 4508], [3787, 4471], [3773, 4443], [3724, 4436], [3644, 4481], [3658, 4526], [3686, 4530], ], ], [ [ [3536, 4512], [3564, 4499], [3541, 4493], [3513, 4524], [3536, 4512], ], ], [ [ [3898, 4549], [3847, 4516], [3831, 4533], [3864, 4557], [3898, 4549], ], ], [ [ [3443, 4565], [3482, 4530], [3472, 4501], [3447, 4513], [3443, 4565], ], ], [ [ [3616, 4524], [3599, 4467], [3584, 4496], [3635, 4587], [3616, 4524], ], ], [ [ [4282, 4636], [4328, 4610], [4317, 4568], [4251, 4596], [4260, 4656], [4282, 4636], ], ], [ [ [3217, 4671], [3225, 4667], [3223, 4642], [3210, 4667], [3217, 4671], ], ], [ [ [3533, 4717], [3608, 4645], [3599, 4563], [3567, 4550], [3511, 4568], [3458, 4614], [3459, 4642], [3424, 4684], [3533, 4717], ], ], [ [ [3899, 4708], [3889, 4727], [3902, 4751], [3914, 4724], [3899, 4708], ], ], [ [ [3578, 4795], [3579, 4771], [3562, 4769], [3572, 4800], [3578, 4795], ], ], [ [ [3306, 5107], [3300, 5063], [3263, 5028], [3247, 5060], [3264, 5089], [3306, 5107], ], ], [ [ [3664, 5214], [3644, 5204], [3639, 5178], [3611, 5196], [3664, 5214], ], ], [ [ [3282, 4516], [3255, 4513], [3260, 4582], [3227, 4563], [3225, 4595], [3261, 4584], [3251, 4670], [3201, 4707], [3166, 4708], [3184, 4779], [3216, 4802], [3200, 4855], [3172, 4868], [3178, 4993], [3188, 5027], [3208, 5000], [3249, 4999], [3274, 4971], [3277, 5015], [3312, 5063], [3347, 5035], [3326, 5010], [3362, 5013], [3345, 5088], [3389, 5126], [3417, 5111], [3444, 5148], [3362, 5120], [3338, 5136], [3269, 5107], [3237, 5058], [3245, 5003], [3199, 5057], [3260, 5156], [3385, 5166], [3411, 5189], [3472, 5289], [3508, 5292], [3570, 5336], [3544, 5283], [3563, 5244], [3562, 5187], [3548, 5172], [3519, 5092], [3535, 4992], [3603, 4985], [3632, 4960], [3598, 4893], [3578, 4899], [3563, 4859], [3558, 4910], [3542, 4916], [3513, 4872], [3517, 4805], [3460, 4782], [3487, 4757], [3444, 4736], [3454, 4722], [3395, 4683], [3430, 4613], [3394, 4588], [3434, 4536], [3435, 4494], [3409, 4521], [3384, 4487], [3384, 4487], [3282, 4516], ], ], [ [ [3717, 4815], [3747, 4806], [3772, 4741], [3805, 4817], [3779, 4826], [3839, 4872], [3901, 4850], [3884, 4814], [3901, 4753], [3845, 4704], [3842, 4672], [3879, 4649], [3871, 4621], [3837, 4612], [3834, 4545], [3818, 4538], [3838, 4500], [3805, 4457], [3768, 4508], [3790, 4538], [3750, 4596], [3685, 4601], [3656, 4648], [3675, 4656], [3665, 4703], [3634, 4751], [3681, 4753], [3717, 4786], [3717, 4815], ], ], ], }, }, { type: 'Feature', id: 'FO', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.56, 'hc-middle-y': 0.16, 'hc-key': 'fo', 'hc-a2': 'FO', name: 'Faroe Islands', labelrank: '6', 'country-abbrev': 'Faeroe Is.', subregion: 'Northern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'FRO', 'iso-a2': 'FO', 'woe-id': '23424816', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [1151, 6735], [1169, 6717], [1165, 6663], [1146, 6700], [1151, 6735], ], ], [ [ [1176, 6812], [1202, 6782], [1190, 6763], [1169, 6796], [1176, 6812], ], ], [ [ [1150, 6888], [1163, 6872], [1139, 6859], [1115, 6902], [1150, 6888], ], ], [ [ [1158, 6940], [1202, 6846], [1193, 6819], [1166, 6880], [1143, 6903], [1158, 6940], ], ], [ [ [1199, 6933], [1230, 6870], [1208, 6857], [1181, 6898], [1172, 6936], [1199, 6933], ], ], [ [ [1236, 6908], [1230, 6914], [1227, 6927], [1232, 6941], [1236, 6908], ], ], [ [ [1226, 6902], [1222, 6904], [1215, 6942], [1217, 6946], [1226, 6902], ], ], [ [ [1254, 6915], [1248, 6943], [1254, 6940], [1257, 6921], [1255, 6914], [1263, 6903], [1246, 6901], [1239, 6895], [1243, 6931], [1254, 6915], ], ], ], }, }, { type: 'Feature', id: 'HR', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.09, 'hc-middle-y': 0.39, 'hc-key': 'hr', 'hc-a2': 'HR', name: 'Croatia', labelrank: '6', 'country-abbrev': 'Cro.', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'HRV', 'iso-a2': 'HR', 'woe-id': '23424843', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [4965, 1080], [4964, 1071], [4945, 1066], [4938, 1078], [4965, 1080], ], ], [ [ [5060, 1097], [5137, 1081], [5142, 1075], [5062, 1089], [5060, 1097], ], ], [ [ [4924, 1135], [4980, 1143], [5017, 1129], [4944, 1116], [4924, 1135], ], ], [ [ [4799, 1153], [4804, 1142], [4785, 1134], [4768, 1148], [4799, 1153], ], ], [ [ [4873, 1205], [4915, 1189], [5010, 1189], [4904, 1178], [4834, 1192], [4873, 1205], ], ], [ [ [4922, 1243], [4925, 1221], [4841, 1228], [4840, 1250], [4922, 1243], ], ], [ [ [4813, 1251], [4834, 1236], [4825, 1233], [4794, 1244], [4813, 1251], ], ], [ [ [4621, 1380], [4603, 1384], [4580, 1409], [4607, 1399], [4621, 1380], ], ], [ [ [4572, 1425], [4565, 1419], [4550, 1431], [4536, 1450], [4572, 1425], ], ], [ [ [4496, 1441], [4573, 1380], [4557, 1376], [4526, 1418], [4496, 1441], ], ], [ [ [4482, 1574], [4494, 1578], [4572, 1505], [4495, 1543], [4482, 1574], ], ], [ [ [4392, 1569], [4391, 1562], [4374, 1601], [4388, 1593], [4392, 1569], ], ], [ [ [4458, 1644], [4474, 1623], [4481, 1604], [4444, 1643], [4458, 1644], ], ], [ [ [4398, 1672], [4394, 1585], [4363, 1666], [4381, 1672], [4355, 1720], [4372, 1729], [4398, 1672], ], ], [ [ [4412, 1758], [4435, 1713], [4468, 1683], [4386, 1710], [4412, 1758], ], ], [ [ [5311, 1013], [5150, 1111], [5070, 1120], [5023, 1159], [5115, 1130], [5161, 1114], [5293, 1053], [5298, 1030], [5311, 1013], ], ], [ [ [5272, 2037], [5265, 2001], [5308, 1936], [5313, 1878], [5390, 1853], [5399, 1831], [5332, 1816], [5333, 1734], [5308, 1729], [5259, 1787], [5229, 1777], [5164, 1799], [5120, 1791], [5085, 1763], [5051, 1788], [5030, 1773], [4966, 1787], [4950, 1773], [4893, 1807], [4867, 1774], [4805, 1774], [4781, 1716], [4754, 1721], [4705, 1771], [4662, 1750], [4668, 1659], [4747, 1571], [4775, 1482], [4881, 1385], [4890, 1365], [4976, 1298], [5010, 1291], [5019, 1256], [5062, 1201], [5095, 1184], [5098, 1143], [4981, 1218], [4936, 1263], [4860, 1282], [4742, 1274], [4729, 1323], [4625, 1387], [4544, 1481], [4583, 1510], [4492, 1601], [4491, 1679], [4468, 1723], [4415, 1769], [4362, 1786], [4296, 1624], [4219, 1709], [4192, 1822], [4209, 1816], [4271, 1801], [4286, 1828], [4369, 1822], [4403, 1876], [4428, 1842], [4525, 1818], [4570, 1837], [4542, 1900], [4581, 1934], [4624, 1943], [4625, 2002], [4602, 2023], [4614, 2053], [4734, 2110], [4722, 2143], [4777, 2150], [4851, 2116], [4877, 2075], [4924, 2054], [4959, 2009], [5008, 2009], [5070, 1968], [5138, 1979], [5180, 1971], [5227, 2026], [5272, 2037], ], ], ], }, }, { type: 'Feature', id: 'NL', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.34, 'hc-middle-y': 0.59, 'hc-key': 'nl', 'hc-a2': 'NL', name: 'Netherlands', labelrank: '5', 'country-abbrev': 'Neth.', subregion: 'Western Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'NLD', 'iso-a2': 'NL', 'woe-id': '-90', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [2408, 3636], [2399, 3614], [2350, 3647], [2395, 3648], [2408, 3636], ], ], [ [ [2593, 4028], [2574, 3998], [2561, 4015], [2588, 4051], [2593, 4028], ], ], [ [ [2603, 4061], [2593, 4060], [2613, 4079], [2625, 4085], [2603, 4061], ], ], [ [ [2691, 4107], [2652, 4094], [2648, 4104], [2719, 4119], [2691, 4107], ], ], [ [ [2776, 4121], [2783, 4117], [2735, 4111], [2734, 4122], [2776, 4121], ], ], [ [ [2817, 4118], [2812, 4122], [2827, 4129], [2847, 4126], [2817, 4118], ], ], [ [ [2280, 3553], [2316, 3561], [2371, 3536], [2395, 3553], [2437, 3537], [2380, 3495], [2330, 3523], [2285, 3515], [2280, 3553], ], ], [ [ [2444, 3537], [2389, 3565], [2367, 3550], [2316, 3574], [2305, 3602], [2372, 3613], [2422, 3559], [2444, 3580], [2400, 3604], [2436, 3629], [2402, 3678], [2414, 3716], [2438, 3721], [2510, 3811], [2565, 3989], [2593, 3969], [2677, 4019], [2717, 4076], [2786, 4101], [2916, 4110], [2993, 4045], [2988, 3965], [2969, 3933], [2959, 3874], [2912, 3874], [2897, 3827], [2945, 3818], [2952, 3754], [2887, 3701], [2910, 3678], [2832, 3644], [2788, 3666], [2751, 3642], [2779, 3594], [2794, 3519], [2766, 3475], [2780, 3452], [2737, 3419], [2761, 3382], [2746, 3338], [2690, 3344], [2723, 3456], [2660, 3498], [2614, 3492], [2581, 3557], [2561, 3534], [2537, 3566], [2511, 3546], [2486, 3564], [2467, 3530], [2444, 3537], ], [ [2720, 3812], [2735, 3822], [2736, 3825], [2736, 3825], [2736, 3825], [2750, 3836], [2750, 3869], [2717, 3876], [2748, 3862], [2736, 3825], [2736, 3825], [2736, 3825], [2720, 3812], [2720, 3812], [2720, 3812], [2720, 3812], [2670, 3782], [2621, 3817], [2717, 3877], [2712, 3924], [2732, 3940], [2678, 3949], [2676, 4013], [2616, 3976], [2626, 3929], [2657, 3907], [2608, 3887], [2614, 3833], [2591, 3815], [2674, 3776], [2720, 3812], [2720, 3812], [2720, 3812], [2720, 3812], ], ], ], }, }, { type: 'Feature', id: 'EE', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.6, 'hc-middle-y': 0.53, 'hc-key': 'ee', 'hc-a2': 'EE', name: 'Estonia', labelrank: '6', 'country-abbrev': 'Est.', subregion: 'Northern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'EST', 'iso-a2': 'EE', 'woe-id': '23424805', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [5483, 5775], [5469, 5746], [5441, 5761], [5452, 5784], [5483, 5775], ], ], [ [ [5440, 5891], [5460, 5893], [5468, 5876], [5435, 5869], [5440, 5891], ], ], [ [ [5370, 5868], [5403, 5866], [5426, 5828], [5383, 5810], [5362, 5771], [5337, 5813], [5275, 5835], [5334, 5850], [5348, 5887], [5370, 5868], ], ], [ [ [6143, 6139], [6134, 6134], [6119, 6126], [6130, 6125], [6130, 6125], [6131, 6125], [6133, 6126], [6124, 6119], [6106, 6106], [6108, 6072], [6106, 6046], [6102, 6021], [6074, 6020], [6012, 5988], [6005, 5937], [6044, 5907], [6076, 5839], [6106, 5812], [6161, 5739], [6194, 5705], [6159, 5682], [6151, 5595], [6071, 5605], [6022, 5561], [5934, 5617], [5926, 5637], [5861, 5642], [5801, 5677], [5699, 5617], [5669, 5588], [5681, 5651], [5674, 5732], [5642, 5736], [5618, 5688], [5557, 5706], [5535, 5759], [5512, 5760], [5504, 5815], [5545, 5818], [5543, 5838], [5488, 5817], [5479, 5858], [5495, 5879], [5471, 5891], [5470, 5946], [5555, 5992], [5541, 6009], [5694, 6088], [5735, 6082], [5770, 6142], [5882, 6132], [5912, 6141], [5940, 6125], [6095, 6143], [6111, 6169], [6126, 6160], [6143, 6139], ], ], [ [ [5280, 5633], [5297, 5662], [5272, 5700], [5306, 5706], [5369, 5757], [5380, 5746], [5417, 5762], [5487, 5731], [5463, 5728], [5448, 5692], [5403, 5642], [5351, 5628], [5342, 5561], [5313, 5556], [5336, 5608], [5280, 5633], ], ], ], }, }, { type: 'Feature', id: 'BG', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.54, 'hc-middle-y': 0.49, 'hc-key': 'bg', 'hc-a2': 'BG', name: 'Bulgaria', labelrank: '4', 'country-abbrev': 'Bulg.', subregion: 'Eastern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'BGR', 'iso-a2': 'BG', 'woe-id': '23424771', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [7353, 1794], [7373, 1738], [7359, 1683], [7291, 1678], [7265, 1596], [7264, 1551], [7287, 1467], [7255, 1461], [7212, 1374], [7250, 1382], [7288, 1337], [7352, 1291], [7366, 1265], [7320, 1259], [7271, 1219], [7200, 1259], [7149, 1241], [7136, 1215], [7058, 1175], [7060, 1145], [7026, 1104], [6967, 1083], [7003, 1040], [7004, 992], [6956, 965], [6884, 953], [6831, 918], [6735, 946], [6714, 926], [6671, 941], [6645, 975], [6547, 945], [6462, 882], [6390, 877], [6357, 845], [6313, 844], [6303, 916], [6313, 957], [6262, 1037], [6189, 1058], [6140, 1104], [6170, 1136], [6144, 1181], [6146, 1270], [6192, 1283], [6229, 1382], [6118, 1443], [6066, 1533], [6067, 1588], [6105, 1620], [6108, 1660], [6115, 1666], [6116, 1666], [6193, 1640], [6168, 1606], [6183, 1561], [6264, 1592], [6444, 1587], [6512, 1615], [6610, 1620], [6698, 1611], [6780, 1652], [6838, 1749], [7006, 1837], [7055, 1833], [7089, 1809], [7144, 1825], [7163, 1808], [7199, 1830], [7223, 1793], [7278, 1781], [7353, 1794], ], ], }, }, { type: 'Feature', id: 'ES', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.38, 'hc-middle-y': 0.53, 'hc-key': 'es', 'hc-a2': 'ES', name: 'Spain', labelrank: '2', 'country-abbrev': 'Sp.', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'ESP', 'iso-a2': 'ES', 'woe-id': '23424950', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [[[1502, -54], [1511, -71], [1486, -84], [1488, -64], [1502, -54]]], [ [ [1546, 46], [1554, 23], [1497, -29], [1456, -3], [1495, 44], [1546, 46], ], ], [ [ [1936, 261], [1927, 203], [1997, 190], [1929, 81], [1890, 58], [1826, 103], [1806, 154], [1767, 130], [1740, 175], [1879, 250], [1936, 261], ], ], [ [ [2150, 269], [2183, 239], [2186, 195], [2124, 231], [2082, 238], [2083, 271], [2150, 269], ], ], [ [ [-240, -615], [-227, -613], [-212, -627], [-226, -637], [-240, -615], ], ], [ [ [1743, 1010], [1741, 1016], [1746, 1022], [1751, 1009], [1743, 1010], ], ], [ [ [-212, -550], [-280, -577], [-390, -461], [-390, -378], [-423, -351], [-410, -302], [-426, -252], [-503, -171], [-621, -134], [-621, -20], [-559, 40], [-533, 84], [-473, 83], [-444, 129], [-481, 131], [-520, 224], [-479, 302], [-423, 324], [-393, 365], [-430, 404], [-449, 478], [-438, 511], [-476, 588], [-361, 562], [-304, 645], [-328, 703], [-262, 740], [-270, 768], [-238, 881], [-249, 936], [-220, 941], [-168, 993], [-134, 993], [-54, 1057], [-122, 1124], [-107, 1176], [-226, 1223], [-257, 1193], [-338, 1204], [-354, 1228], [-457, 1228], [-463, 1252], [-423, 1288], [-441, 1327], [-534, 1320], [-566, 1304], [-596, 1288], [-587, 1350], [-515, 1391], [-569, 1392], [-513, 1429], [-557, 1437], [-523, 1496], [-578, 1477], [-586, 1499], [-540, 1545], [-582, 1564], [-574, 1593], [-606, 1604], [-593, 1640], [-553, 1673], [-514, 1671], [-482, 1695], [-455, 1674], [-372, 1686], [-356, 1731], [-254, 1763], [-154, 1714], [-134, 1675], [75, 1634], [238, 1587], [284, 1556], [443, 1491], [623, 1495], [629, 1468], [712, 1434], [786, 1445], [860, 1392], [909, 1376], [984, 1392], [989, 1363], [1059, 1338], [1034, 1294], [1135, 1241], [1182, 1231], [1213, 1182], [1270, 1188], [1324, 1134], [1370, 1139], [1390, 1120], [1470, 1114], [1478, 1158], [1615, 1104], [1634, 1067], [1645, 1016], [1691, 1033], [1760, 981], [1811, 998], [1848, 968], [1953, 995], [2005, 979], [2032, 944], [1994, 929], [1984, 895], [2004, 842], [1931, 775], [1785, 717], [1727, 667], [1609, 655], [1483, 627], [1414, 570], [1439, 525], [1381, 514], [1313, 426], [1239, 361], [1131, 223], [1138, 92], [1175, 24], [1224, -23], [1143, -71], [1081, -84], [1038, -115], [959, -245], [961, -319], [864, -330], [834, -311], [724, -358], [683, -399], [650, -471], [586, -524], [536, -485], [484, -484], [458, -514], [327, -472], [280, -482], [239, -459], [132, -437], [41, -430], [12, -464], [-40, -480], [-81, -467], [-154, -480], [-207, -551], [-212, -550], ], ], ], }, }, { type: 'Feature', id: 'IT', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.44, 'hc-middle-y': 0.38, 'hc-key': 'it', 'hc-a2': 'IT', name: 'Italy', labelrank: '2', 'country-abbrev': 'Italy', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'ITA', 'iso-a2': 'IT', 'woe-id': '23424853', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [3951, -735], [3968, -746], [3964, -760], [3941, -747], [3951, -735], ], ], [ [ [4632, -225], [4627, -220], [4615, -212], [4628, -199], [4632, -225], ], ], [[[3101, -59], [3124, -77], [3111, -105], [3098, -75], [3101, -59]]], [[[3088, -62], [3076, -61], [3070, -47], [3089, -36], [3088, -62]]], [[[4361, 430], [4336, 430], [4339, 444], [4362, 437], [4361, 430]]], [[[3108, 525], [3108, 513], [3089, 508], [3096, 526], [3108, 525]]], [ [ [3570, 1021], [3559, 994], [3500, 1004], [3511, 1022], [3570, 1021], ], ], [ [ [4232, 1848], [4234, 1880], [4197, 1904], [4172, 1883], [4130, 1896], [4104, 1856], [3969, 1791], [3987, 1831], [3941, 1798], [3929, 1753], [3956, 1693], [3999, 1657], [3982, 1613], [3951, 1618], [3952, 1515], [3972, 1447], [4046, 1372], [4097, 1349], [4164, 1295], [4243, 1249], [4295, 1134], [4324, 1039], [4355, 983], [4508, 842], [4595, 804], [4666, 801], [4791, 822], [4831, 780], [4776, 731], [4777, 691], [4803, 671], [4934, 618], [5040, 591], [5140, 527], [5263, 487], [5321, 437], [5395, 344], [5373, 247], [5302, 273], [5278, 332], [5239, 378], [5164, 374], [5094, 397], [5054, 427], [5026, 402], [4967, 290], [4976, 256], [4949, 206], [4957, 172], [5012, 157], [5111, 103], [5111, 19], [5133, -6], [5113, -47], [5052, -47], [4988, -111], [5003, -197], [4918, -289], [4904, -348], [4805, -351], [4795, -270], [4825, -257], [4848, -197], [4830, -143], [4905, -111], [4910, -66], [4874, -17], [4845, 89], [4813, 123], [4787, 211], [4743, 268], [4685, 243], [4632, 288], [4582, 305], [4599, 352], [4538, 431], [4446, 398], [4475, 442], [4433, 472], [4389, 467], [4300, 585], [4268, 571], [4211, 594], [4151, 571], [4115, 620], [4058, 632], [4015, 684], [3968, 713], [3946, 762], [3876, 798], [3837, 869], [3780, 903], [3714, 902], [3734, 937], [3690, 992], [3634, 1019], [3644, 1045], [3589, 1053], [3594, 1118], [3570, 1188], [3547, 1214], [3533, 1311], [3500, 1371], [3440, 1384], [3317, 1469], [3212, 1491], [3157, 1458], [3107, 1400], [3093, 1358], [3048, 1329], [2951, 1315], [2947, 1336], [2994, 1398], [2987, 1425], [2929, 1412], [2858, 1449], [2825, 1488], [2823, 1539], [2868, 1577], [2845, 1630], [2803, 1651], [2780, 1703], [2830, 1708], [2885, 1743], [2898, 1787], [2863, 1817], [2860, 1855], [2827, 1879], [2830, 1910], [2876, 1937], [2908, 1923], [2981, 1950], [3039, 1928], [3097, 1988], [3091, 2025], [3166, 2075], [3162, 2022], [3196, 1984], [3243, 1967], [3255, 1898], [3287, 1913], [3272, 1939], [3331, 2036], [3330, 2087], [3365, 2089], [3389, 2031], [3470, 2049], [3486, 2010], [3509, 2022], [3486, 2071], [3495, 2121], [3562, 2101], [3551, 2141], [3567, 2197], [3676, 2170], [3694, 2212], [3737, 2234], [3823, 2232], [3913, 2265], [3895, 2240], [3956, 2154], [4122, 2120], [4216, 2116], [4152, 2046], [4209, 2017], [4176, 1965], [4209, 1955], [4203, 1909], [4269, 1861], [4232, 1848], ], [ [3995, 1344], [3998, 1370], [3986, 1365], [3979, 1352], [3995, 1344], ], [[4013, 764], [4013, 764], [4013, 764], [4013, 764], [4013, 764]], ], [ [ [4478, -359], [4561, -334], [4623, -299], [4666, -313], [4761, -256], [4763, -319], [4702, -424], [4681, -501], [4688, -552], [4748, -640], [4712, -662], [4694, -749], [4551, -718], [4496, -647], [4450, -628], [4404, -635], [4296, -582], [4228, -529], [4153, -506], [4105, -511], [4048, -440], [4064, -380], [4122, -328], [4157, -371], [4202, -322], [4252, -310], [4270, -344], [4366, -378], [4418, -353], [4478, -359], ], ], [ [ [3266, -34], [3251, -99], [3213, -132], [3155, -125], [3146, -78], [3104, -26], [3106, 18], [3148, 164], [3115, 173], [3137, 231], [3132, 293], [3100, 371], [3066, 368], [3061, 416], [3084, 469], [3148, 443], [3203, 467], [3307, 568], [3353, 545], [3381, 525], [3369, 495], [3439, 349], [3393, 274], [3417, 221], [3396, 45], [3376, -56], [3315, -32], [3266, -34], ], ], ], }, }, { type: 'Feature', id: 'SM', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.68, 'hc-middle-y': 0.41, 'hc-key': 'sm', 'hc-a2': 'SM', name: 'San Marino', labelrank: '6', 'country-abbrev': 'S.M.', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'SMR', 'iso-a2': 'SM', 'woe-id': '23424947', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [3995, 1344], [3979, 1352], [3986, 1365], [3998, 1370], [3995, 1344], ], ], }, }, { type: 'Feature', id: 'VA', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.62, 'hc-middle-y': 0.44, 'hc-key': 'va', 'hc-a2': 'VA', name: 'Vatican', labelrank: '6', 'country-abbrev': 'Vat.', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'VAT', 'iso-a2': 'VA', 'woe-id': '23424986', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [[4013, 764], [4013, 764], [4013, 764], [4013, 764], [4013, 764]], ], }, }, { type: 'Feature', id: 'TR', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.62, 'hc-middle-y': 0.51, 'hc-key': 'tr', 'hc-a2': 'TR', name: 'Turkey', labelrank: '2', 'country-abbrev': 'Tur.', subregion: 'Western Asia', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'TUR', 'iso-a2': 'TR', 'woe-id': '23424969', continent: 'Asia', }, geometry: { type: 'MultiPolygon', coordinates: [ [[[7048, 641], [7008, 614], [6984, 617], [7031, 663], [7048, 641]]], [[[7377, 872], [7400, 872], [7378, 846], [7356, 860], [7377, 872]]], [ [ [7026, 1104], [7060, 1145], [7058, 1175], [7136, 1215], [7149, 1241], [7200, 1259], [7271, 1219], [7320, 1259], [7366, 1265], [7367, 1220], [7404, 1176], [7482, 1136], [7608, 1115], [7653, 1117], [7644, 1044], [7562, 1015], [7478, 1025], [7426, 979], [7331, 959], [7321, 909], [7281, 839], [7186, 763], [7178, 732], [7097, 621], [7110, 666], [7091, 700], [7208, 812], [7195, 827], [7137, 795], [7043, 777], [7028, 811], [7081, 892], [7056, 973], [7113, 1024], [7089, 1088], [7026, 1104], ], ], [ [ [9732, 429], [9709, 427], [9717, 324], [9732, 308], [9732, 245], [9709, 236], [9731, 170], [9699, 144], [9700, 102], [9638, 110], [9642, 143], [9568, 212], [9628, 325], [9607, 380], [9556, 400], [9498, 327], [9502, 279], [9445, 237], [9287, 266], [9243, 235], [9170, 98], [9163, 32], [9133, 54], [9107, -9], [8982, -55], [8915, -110], [8801, -100], [8689, -21], [8509, 5], [8352, -16], [8335, -55], [8356, -128], [8340, -219], [8301, -212], [8181, -304], [8158, -284], [8099, -292], [8040, -273], [8000, -223], [8004, -185], [7961, -170], [7948, -209], [7892, -205], [7879, -172], [7800, -182], [7811, -212], [7781, -263], [7741, -246], [7754, -221], [7682, -240], [7674, -274], [7600, -284], [7653, -235], [7752, -207], [7737, -175], [7792, -123], [7626, -189], [7594, -180], [7558, -209], [7560, -159], [7597, -159], [7617, -99], [7583, -114], [7568, -76], [7518, -98], [7500, -29], [7450, -20], [7499, 16], [7480, 85], [7391, 80], [7355, 125], [7323, 84], [7232, 113], [7280, 153], [7234, 219], [7268, 237], [7305, 205], [7329, 146], [7417, 196], [7380, 197], [7311, 268], [7348, 280], [7369, 348], [7329, 331], [7324, 377], [7249, 421], [7305, 498], [7291, 525], [7117, 451], [7123, 498], [7103, 589], [7133, 619], [7143, 674], [7201, 751], [7262, 762], [7321, 796], [7363, 765], [7436, 783], [7400, 829], [7479, 841], [7456, 812], [7644, 862], [7687, 862], [7724, 893], [7635, 896], [7672, 943], [7792, 990], [7866, 1032], [7743, 998], [7655, 1041], [7651, 1092], [7679, 1126], [7825, 1139], [7879, 1153], [7902, 1180], [8032, 1178], [8116, 1207], [8142, 1249], [8133, 1281], [8262, 1408], [8278, 1451], [8340, 1507], [8402, 1540], [8471, 1606], [8686, 1658], [8761, 1684], [8797, 1744], [8844, 1737], [8842, 1713], [8888, 1673], [8964, 1661], [9041, 1721], [9086, 1704], [9106, 1660], [9194, 1625], [9215, 1675], [9298, 1682], [9322, 1656], [9449, 1661], [9460, 1698], [9520, 1672], [9616, 1692], [9691, 1735], [9724, 1777], [9732, 1781], [9732, 429], ], ], ], }, }, { type: 'Feature', id: 'MT', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.67, 'hc-middle-y': 0.77, 'hc-key': 'mt', 'hc-a2': 'MT', name: 'Malta', labelrank: '5', 'country-abbrev': 'Malta', subregion: 'Southern Europe', 'region-wb': 'Middle East & North Africa', 'iso-a3': 'MLT', 'iso-a2': 'MT', 'woe-id': '23424897', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [4588, -999], [4533, -992], [4526, -965], [4572, -975], [4588, -999], ], ], [ [ [4514, -952], [4492, -948], [4508, -935], [4528, -946], [4514, -952], ], ], ], }, }, { type: 'Feature', id: 'FR', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.47, 'hc-middle-y': 0.47, 'hc-key': 'fr', 'hc-a2': 'FR', name: 'France', labelrank: '2', 'country-abbrev': 'Fr.', subregion: 'Western Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'FRA', 'iso-a2': 'FR', 'woe-id': '-90', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [1209, 2125], [1227, 2092], [1216, 2069], [1190, 2121], [1209, 2125], ], ], [ [ [1184, 2202], [1214, 2184], [1223, 2170], [1167, 2205], [1184, 2202], ], ], [ [ [1077, 2433], [1065, 2431], [1059, 2452], [1077, 2447], [1077, 2433], ], ], [[[915, 2566], [923, 2556], [890, 2567], [893, 2589], [915, 2566]]], [ [ [2720, 2051], [2736, 2073], [2835, 2080], [2844, 1995], [2876, 1937], [2830, 1910], [2827, 1879], [2860, 1855], [2863, 1817], [2898, 1787], [2885, 1743], [2830, 1708], [2780, 1703], [2803, 1651], [2845, 1630], [2868, 1577], [2823, 1539], [2825, 1488], [2858, 1449], [2929, 1412], [2987, 1425], [2994, 1398], [2947, 1336], [2951, 1315], [2945, 1307], [2937, 1301], [2931, 1307], [2922, 1295], [2876, 1277], [2872, 1248], [2784, 1209], [2754, 1175], [2770, 1150], [2592, 1113], [2547, 1158], [2487, 1170], [2478, 1211], [2429, 1206], [2454, 1234], [2402, 1241], [2378, 1215], [2324, 1226], [2315, 1252], [2250, 1258], [2231, 1287], [2195, 1284], [2072, 1222], [2010, 1176], [1989, 1130], [1981, 1017], [2005, 979], [1953, 995], [1848, 968], [1811, 998], [1760, 981], [1691, 1033], [1697, 1064], [1634, 1067], [1615, 1104], [1478, 1158], [1470, 1114], [1390, 1120], [1370, 1139], [1324, 1134], [1270, 1188], [1213, 1182], [1182, 1231], [1135, 1241], [1034, 1294], [1059, 1338], [989, 1363], [984, 1392], [1013, 1392], [1059, 1437], [1169, 1739], [1152, 1731], [1216, 1974], [1230, 1995], [1284, 1915], [1291, 1943], [1214, 2039], [1247, 2091], [1256, 2193], [1130, 2285], [1126, 2324], [1083, 2386], [1119, 2448], [1091, 2486], [1101, 2527], [1073, 2513], [1026, 2561], [1060, 2567], [1044, 2600], [981, 2603], [996, 2638], [936, 2634], [860, 2708], [799, 2726], [788, 2753], [700, 2747], [698, 2797], [656, 2833], [733, 2829], [736, 2855], [696, 2895], [737, 2918], [659, 2913], [664, 2956], [711, 2987], [760, 2981], [828, 2994], [845, 2960], [858, 2988], [901, 2967], [920, 3008], [1000, 3002], [1059, 2885], [1137, 2923], [1151, 2890], [1227, 2916], [1224, 2890], [1313, 2887], [1283, 2917], [1297, 2997], [1296, 3054], [1264, 3110], [1258, 3206], [1317, 3176], [1357, 3187], [1384, 3157], [1366, 3140], [1383, 3100], [1447, 3071], [1523, 3053], [1556, 3030], [1633, 3059], [1681, 3063], [1625, 3083], [1659, 3147], [1746, 3178], [1841, 3190], [1906, 3248], [1919, 3273], [1946, 3441], [2022, 3473], [2124, 3485], [2123, 3485], [2129, 3413], [2161, 3376], [2227, 3382], [2244, 3311], [2310, 3281], [2310, 3245], [2377, 3244], [2408, 3217], [2390, 3138], [2443, 3122], [2486, 3135], [2492, 3162], [2529, 3175], [2510, 3129], [2519, 3074], [2536, 3076], [2629, 2982], [2688, 2991], [2719, 2961], [2752, 2975], [2791, 2962], [2819, 2954], [2854, 2877], [2879, 2886], [2960, 2853], [2984, 2871], [3032, 2830], [3085, 2829], [3136, 2805], [3116, 2766], [3059, 2708], [3045, 2634], [3008, 2560], [3016, 2533], [2996, 2470], [3006, 2412], [2964, 2369], [2892, 2392], [2862, 2351], [2897, 2346], [2805, 2247], [2773, 2237], [2768, 2184], [2706, 2139], [2688, 2089], [2704, 2071], [2664, 2007], [2731, 2035], [2720, 2051], ], [ [1743, 1010], [1751, 1009], [1746, 1022], [1741, 1016], [1743, 1010], ], ], [ [ [3204, 798], [3163, 857], [3201, 949], [3285, 996], [3325, 981], [3337, 1073], [3354, 1080], [3367, 1026], [3360, 972], [3377, 942], [3380, 816], [3347, 770], [3346, 698], [3306, 600], [3212, 657], [3241, 695], [3192, 706], [3203, 766], [3169, 777], [3204, 798], ], ], ], }, }, { type: 'Feature', id: 'NO', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.43, 'hc-middle-y': 0.8, 'hc-key': 'no', 'hc-a2': 'NO', name: 'Norway', labelrank: '3', 'country-abbrev': 'Nor.', subregion: 'Northern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'NOR', 'iso-a2': 'NO', 'woe-id': '-90', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [2823, 5756], [2848, 5748], [2843, 5737], [2818, 5753], [2823, 5756], ], ], [ [ [2800, 5766], [2790, 5779], [2796, 5789], [2803, 5778], [2800, 5766], ], ], [ [ [2884, 5781], [2873, 5785], [2877, 5796], [2899, 5793], [2884, 5781], ], ], [ [ [2777, 5805], [2777, 5769], [2759, 5778], [2769, 5841], [2777, 5805], ], ], [ [ [2778, 5961], [2792, 5938], [2757, 5944], [2763, 5974], [2778, 5961], ], ], [ [ [2819, 5951], [2791, 5950], [2785, 5984], [2810, 5991], [2819, 5951], ], ], [ [ [2847, 6026], [2842, 5982], [2822, 5979], [2818, 6024], [2847, 6026], ], ], [ [ [2789, 6032], [2789, 6009], [2776, 6024], [2782, 6042], [2789, 6032], ], ], [ [ [2770, 6105], [2770, 6070], [2748, 6098], [2755, 6142], [2770, 6105], ], ], [ [ [2764, 6164], [2782, 6157], [2786, 6132], [2759, 6160], [2764, 6164], ], ], [ [ [2744, 6285], [2757, 6268], [2750, 6265], [2737, 6285], [2744, 6285], ], ], [ [ [2734, 6314], [2729, 6303], [2722, 6324], [2730, 6330], [2734, 6314], ], ], [ [ [2758, 6346], [2771, 6338], [2743, 6323], [2745, 6350], [2758, 6346], ], ], [ [ [2782, 6565], [2805, 6551], [2775, 6531], [2760, 6550], [2782, 6565], ], ], [ [ [2800, 6596], [2811, 6592], [2802, 6572], [2789, 6604], [2800, 6596], ], ], [ [ [2893, 6675], [2901, 6648], [2869, 6646], [2873, 6674], [2893, 6675], ], ], [ [ [2880, 6686], [2899, 6693], [2896, 6683], [2868, 6687], [2880, 6686], ], ], [ [ [2943, 6687], [2915, 6661], [2907, 6693], [2927, 6711], [2943, 6687], ], ], [ [ [2964, 6713], [2978, 6701], [2947, 6703], [2938, 6713], [2964, 6713], ], ], [ [ [3061, 6794], [3062, 6784], [3029, 6773], [3032, 6794], [3061, 6794], ], ], [ [ [3050, 6830], [3065, 6830], [3059, 6806], [3046, 6817], [3050, 6830], ], ], [ [ [3200, 6891], [3183, 6874], [3169, 6884], [3176, 6896], [3200, 6891], ], ], [ [ [3168, 6874], [3147, 6853], [3131, 6886], [3153, 6875], [3168, 6874], ], ], [ [ [3253, 6915], [3238, 6915], [3235, 6931], [3244, 6931], [3253, 6915], ], ], [ [ [3237, 6913], [3214, 6907], [3203, 6920], [3223, 6938], [3237, 6913], ], ], [ [ [3227, 6967], [3188, 6977], [3215, 7006], [3238, 6981], [3227, 6967], ], ], [ [ [3321, 7101], [3324, 7076], [3313, 7067], [3257, 7062], [3321, 7101], ], ], [ [ [3651, 7346], [3663, 7333], [3660, 7319], [3649, 7325], [3651, 7346], ], ], [ [ [3633, 7339], [3658, 7299], [3628, 7308], [3615, 7351], [3633, 7339], ], ], [ [ [3648, 7351], [3644, 7336], [3627, 7357], [3642, 7363], [3648, 7351], ], ], [ [ [3629, 7427], [3613, 7424], [3581, 7411], [3614, 7439], [3629, 7427], ], ], [ [ [3580, 7414], [3570, 7409], [3576, 7431], [3617, 7446], [3580, 7414], ], ], [ [ [3699, 7488], [3672, 7467], [3667, 7471], [3675, 7487], [3699, 7488], ], ], [ [ [3759, 7501], [3747, 7473], [3727, 7478], [3750, 7520], [3759, 7501], ], ], [ [ [3773, 7608], [3785, 7573], [3736, 7520], [3740, 7562], [3773, 7608], ], ], [ [ [3716, 7662], [3713, 7631], [3693, 7638], [3701, 7661], [3716, 7662], ], ], [ [ [3809, 7748], [3780, 7719], [3765, 7722], [3777, 7749], [3809, 7748], ], ], [ [ [3791, 7809], [3797, 7789], [3783, 7773], [3755, 7758], [3791, 7809], ], ], [ [ [3814, 7846], [3823, 7829], [3809, 7822], [3803, 7832], [3814, 7846], ], ], [ [ [3830, 7885], [3824, 7862], [3812, 7870], [3813, 7887], [3830, 7885], ], ], [ [ [3971, 8096], [3969, 8064], [3943, 8083], [3950, 8101], [3971, 8096], ], ], [ [ [3984, 8190], [3983, 8182], [3965, 8175], [3980, 8195], [3984, 8190], ], ], [ [ [4054, 8360], [4075, 8347], [4039, 8341], [4039, 8358], [4054, 8360], ], ], [ [ [4072, 8359], [4062, 8358], [4059, 8367], [4066, 8380], [4072, 8359], ], ], [ [ [3826, 8372], [3831, 8341], [3794, 8296], [3813, 8365], [3826, 8372], ], ], [ [ [3859, 8374], [3843, 8351], [3835, 8373], [3863, 8394], [3859, 8374], ], ], [ [ [4024, 8439], [4013, 8439], [4022, 8456], [4030, 8450], [4024, 8439], ], ], [ [ [3950, 8456], [3946, 8436], [3940, 8449], [3930, 8460], [3950, 8456], ], ], [ [ [3920, 8440], [3929, 8414], [3900, 8406], [3887, 8379], [3868, 8396], [3868, 8430], [3920, 8440], ], ], [ [ [4049, 8500], [4009, 8443], [3948, 8407], [3978, 8458], [3965, 8474], [3993, 8493], [4049, 8500], ], ], [ [ [4187, 8508], [4154, 8495], [4161, 8532], [4178, 8540], [4187, 8508], ], ], [ [ [4004, 8514], [3985, 8532], [4029, 8533], [4018, 8515], [4004, 8514], ], ], [ [ [4255, 8614], [4227, 8601], [4226, 8616], [4242, 8644], [4255, 8614], ], ], [ [ [4265, 8646], [4263, 8664], [4288, 8650], [4267, 8626], [4265, 8646], ], ], [ [ [4018, 8630], [4005, 8632], [4008, 8645], [4017, 8645], [4018, 8630], ], ], [ [ [4174, 8672], [4190, 8672], [4192, 8647], [4157, 8669], [4174, 8672], ], ], [ [ [4280, 8687], [4273, 8700], [4282, 8716], [4293, 8708], [4280, 8687], ], ], [ [ [4108, 8681], [4067, 8660], [4079, 8704], [4131, 8772], [4131, 8720], [4108, 8681], ], ], [ [ [4402, 8972], [4427, 8934], [4405, 8912], [4411, 8885], [4347, 8859], [4324, 8875], [4355, 8879], [4340, 8913], [4355, 8940], [4400, 8943], [4402, 8972], ], ], [ [ [4594, 8976], [4583, 8973], [4580, 9002], [4595, 9008], [4594, 8976], ], ], [ [ [5553, 9194], [5561, 9190], [5528, 9163], [5532, 9212], [5553, 9194], ], ], [ [ [4490, 8977], [4471, 8969], [4472, 8994], [4504, 9015], [4490, 8977], ], ], [ [ [4616, 9050], [4630, 9045], [4617, 9023], [4596, 9036], [4616, 9050], ], ], [ [ [4434, 9036], [4474, 9017], [4462, 8968], [4435, 8949], [4388, 8992], [4397, 9014], [4434, 9036], ], ], [ [ [4391, 9028], [4409, 9033], [4384, 9003], [4379, 9041], [4391, 9028], ], ], [ [ [4606, 9062], [4599, 9059], [4596, 9083], [4607, 9071], [4606, 9062], ], ], [ [ [4467, 9047], [4447, 9050], [4446, 9063], [4454, 9064], [4467, 9047], ], ], [ [ [4592, 9071], [4576, 9048], [4553, 9062], [4568, 9105], [4594, 9096], [4592, 9071], ], ], [ [ [4425, 9091], [4432, 9055], [4420, 9048], [4408, 9057], [4425, 9091], ], ], [ [ [4476, 9096], [4491, 9074], [4528, 9061], [4496, 9041], [4471, 9086], [4476, 9096], ], ], [ [ [4683, 9132], [4676, 9137], [4675, 9169], [4684, 9161], [4683, 9132], ], ], [ [ [4774, 9185], [4804, 9172], [4813, 9150], [4754, 9152], [4753, 9181], [4774, 9185], ], ], [ [ [4843, 9269], [4867, 9228], [4848, 9178], [4821, 9162], [4791, 9208], [4843, 9269], ], ], [ [ [4869, 9303], [4905, 9283], [4873, 9246], [4852, 9298], [4869, 9303], ], ], [ [ [4876, 9399], [4883, 9370], [4863, 9379], [4864, 9402], [4876, 9399], ], ], [ [ [4940, 9438], [4944, 9418], [4926, 9424], [4933, 9441], [4940, 9438], ], ], [ [ [5023, 9477], [5051, 9449], [5083, 9441], [5024, 9405], [4993, 9434], [5023, 9477], ], ], [ [ [1712, 9534], [1697, 9493], [1622, 9482], [1587, 9453], [1577, 9474], [1647, 9502], [1675, 9535], [1712, 9534], ], ], [ [ [2837, 6137], [2847, 6128], [2861, 6143], [2864, 6225], [2838, 6190], [2804, 6173], [2756, 6246], [2808, 6216], [2808, 6249], [2774, 6257], [2774, 6317], [2832, 6307], [2898, 6331], [2951, 6306], [2999, 6341], [3049, 6311], [3103, 6327], [3106, 6341], [3048, 6320], [2986, 6367], [2975, 6324], [2939, 6346], [2852, 6338], [2825, 6323], [2809, 6354], [2778, 6366], [2772, 6425], [2831, 6461], [2782, 6487], [2782, 6518], [2834, 6545], [2839, 6563], [2889, 6540], [2997, 6528], [2848, 6572], [2810, 6563], [2834, 6599], [2804, 6641], [2820, 6655], [2854, 6608], [2853, 6645], [2921, 6644], [2937, 6675], [3031, 6713], [2977, 6718], [3009, 6739], [2972, 6738], [2981, 6761], [3020, 6745], [3043, 6771], [3086, 6769], [3142, 6735], [3144, 6774], [3186, 6789], [3226, 6784], [3219, 6802], [3125, 6778], [3116, 6795], [3070, 6791], [3065, 6852], [3114, 6874], [3143, 6843], [3207, 6860], [3223, 6899], [3256, 6854], [3254, 6831], [3293, 6829], [3234, 6900], [3284, 6904], [3282, 6916], [3268, 6913], [3248, 6934], [3277, 6938], [3279, 6933], [3276, 6952], [3314, 6967], [3323, 6991], [3380, 6970], [3367, 7013], [3438, 7053], [3472, 6989], [3455, 6960], [3491, 6959], [3490, 6992], [3517, 7000], [3583, 6986], [3598, 7001], [3566, 7025], [3612, 7076], [3668, 7101], [3620, 7126], [3671, 7165], [3640, 7169], [3602, 7143], [3617, 7110], [3596, 7079], [3532, 7034], [3467, 7015], [3451, 7067], [3481, 7094], [3418, 7059], [3418, 7091], [3503, 7139], [3469, 7145], [3499, 7216], [3555, 7265], [3555, 7291], [3591, 7298], [3599, 7336], [3626, 7290], [3653, 7276], [3670, 7328], [3654, 7368], [3710, 7397], [3684, 7402], [3717, 7441], [3664, 7398], [3633, 7401], [3653, 7431], [3707, 7452], [3725, 7476], [3747, 7468], [3802, 7496], [3840, 7559], [3789, 7501], [3768, 7537], [3803, 7582], [3793, 7633], [3773, 7616], [3765, 7646], [3815, 7745], [3843, 7777], [3805, 7768], [3823, 7796], [3901, 7831], [3954, 7833], [3906, 7846], [3842, 7816], [3875, 7848], [3836, 7863], [3856, 7880], [3862, 7946], [3889, 7960], [3894, 7999], [3925, 8002], [3898, 8039], [3971, 8056], [3984, 8110], [4032, 8130], [4047, 8109], [4068, 8132], [4100, 8120], [4110, 8135], [4064, 8142], [4074, 8162], [4019, 8130], [4019, 8148], [3979, 8135], [4013, 8192], [4034, 8179], [4058, 8201], [4020, 8211], [4051, 8236], [4106, 8209], [4149, 8246], [4108, 8224], [4081, 8226], [4071, 8262], [4114, 8296], [4088, 8311], [4030, 8258], [4023, 8284], [4048, 8291], [4021, 8312], [4043, 8335], [4077, 8336], [4131, 8359], [4149, 8378], [4143, 8378], [4136, 8369], [4120, 8376], [4106, 8379], [4072, 8380], [4095, 8411], [4142, 8414], [4143, 8449], [4160, 8428], [4157, 8385], [4183, 8343], [4187, 8376], [4208, 8350], [4209, 8385], [4190, 8403], [4197, 8447], [4164, 8472], [4214, 8458], [4169, 8483], [4220, 8504], [4236, 8481], [4313, 8520], [4310, 8551], [4258, 8516], [4201, 8512], [4206, 8574], [4269, 8615], [4315, 8661], [4285, 8660], [4307, 8721], [4347, 8749], [4335, 8783], [4360, 8847], [4398, 8795], [4432, 8809], [4379, 8837], [4379, 8860], [4415, 8874], [4438, 8829], [4476, 8818], [4476, 8781], [4494, 8783], [4475, 8829], [4454, 8825], [4426, 8878], [4434, 8933], [4453, 8950], [4503, 8963], [4497, 8924], [4518, 8910], [4514, 8952], [4528, 8955], [4537, 9010], [4565, 8998], [4562, 8851], [4539, 8804], [4572, 8846], [4587, 8905], [4581, 8963], [4644, 9005], [4660, 9055], [4723, 9003], [4718, 9051], [4704, 9071], [4669, 9076], [4632, 9106], [4666, 9144], [4703, 9099], [4692, 9135], [4736, 9150], [4749, 9138], [4812, 9136], [4828, 9084], [4863, 9066], [4880, 9092], [4839, 9106], [4860, 9124], [4842, 9148], [4868, 9173], [4858, 9194], [4891, 9245], [4932, 9245], [4908, 9261], [4923, 9308], [4953, 9294], [4939, 9329], [4913, 9329], [4917, 9362], [4944, 9340], [4936, 9401], [4987, 9394], [5005, 9357], [5018, 9381], [5061, 9402], [5068, 9391], [5007, 9267], [5022, 9278], [5032, 9211], [5015, 9183], [5022, 9138], [5040, 9142], [5067, 9216], [5053, 9221], [5092, 9324], [5092, 9351], [5111, 9405], [5136, 9438], [5151, 9400], [5149, 9363], [5123, 9338], [5155, 9343], [5159, 9257], [5203, 9350], [5195, 9385], [5226, 9426], [5181, 9438], [5201, 9450], [5186, 9473], [5220, 9459], [5211, 9501], [5245, 9491], [5272, 9513], [5278, 9486], [5314, 9491], [5314, 9454], [5298, 9425], [5252, 9415], [5293, 9408], [5255, 9357], [5312, 9402], [5312, 9374], [5284, 9325], [5323, 9308], [5342, 9231], [5329, 9315], [5333, 9413], [5347, 9465], [5372, 9475], [5414, 9455], [5416, 9427], [5455, 9448], [5454, 9414], [5477, 9450], [5582, 9386], [5590, 9401], [5620, 9356], [5571, 9330], [5547, 9266], [5450, 9255], [5399, 9256], [5388, 9238], [5508, 9223], [5489, 9196], [5519, 9206], [5527, 9154], [5560, 9161], [5576, 9184], [5564, 9210], [5601, 9202], [5638, 9209], [5659, 9172], [5664, 9128], [5628, 9120], [5599, 9138], [5597, 9081], [5581, 9050], [5529, 9010], [5532, 8960], [5509, 8926], [5490, 8946], [5485, 8979], [5515, 9065], [5476, 9121], [5392, 9139], [5361, 9160], [5320, 9205], [5290, 9182], [5252, 9135], [5225, 9140], [5190, 9125], [5173, 9058], [5157, 9048], [5153, 8993], [5162, 8948], [5159, 8892], [5178, 8840], [5171, 8799], [5127, 8767], [5129, 8714], [5106, 8686], [5079, 8712], [5041, 8717], [4991, 8740], [4976, 8706], [4923, 8666], [4900, 8683], [4835, 8679], [4823, 8711], [4776, 8761], [4725, 8830], [4687, 8832], [4662, 8795], [4680, 8769], [4669, 8753], [4635, 8767], [4625, 8745], [4570, 8732], [4600, 8702], [4600, 8626], [4575, 8586], [4608, 8572], [4579, 8529], [4475, 8562], [4432, 8556], [4406, 8575], [4379, 8560], [4391, 8447], [4367, 8387], [4298, 8421], [4246, 8357], [4219, 8248], [4188, 8230], [4182, 8204], [4224, 8141], [4225, 8096], [4186, 8043], [4149, 7954], [4123, 7920], [4134, 7856], [4086, 7816], [4024, 7804], [4042, 7721], [4035, 7678], [4036, 7564], [4015, 7494], [3940, 7341], [4002, 7302], [4012, 7233], [3986, 7174], [3894, 7193], [3825, 7151], [3762, 7043], [3767, 7001], [3741, 6952], [3774, 6868], [3759, 6845], [3767, 6790], [3760, 6746], [3794, 6644], [3777, 6495], [3814, 6454], [3841, 6445], [3880, 6395], [3857, 6297], [3797, 6278], [3816, 6212], [3850, 6144], [3836, 6080], [3842, 6028], [3790, 5963], [3748, 5954], [3756, 5924], [3725, 5862], [3747, 5773], [3727, 5677], [3695, 5669], [3693, 5697], [3682, 5728], [3612, 5755], [3600, 5745], [3566, 5820], [3574, 5870], [3560, 5908], [3573, 5946], [3555, 5954], [3549, 5910], [3565, 5863], [3549, 5847], [3547, 5769], [3531, 5776], [3524, 5734], [3471, 5685], [3431, 5685], [3368, 5649], [3395, 5649], [3249, 5484], [3226, 5481], [3190, 5441], [3177, 5477], [3158, 5436], [3106, 5419], [3017, 5426], [2946, 5455], [2973, 5484], [2870, 5537], [2865, 5560], [2827, 5578], [2797, 5647], [2813, 5729], [2839, 5695], [2883, 5686], [2862, 5740], [2921, 5792], [2897, 5830], [2835, 5805], [2825, 5838], [2806, 5799], [2767, 5869], [2816, 5932], [2853, 5912], [2876, 5935], [2841, 5964], [2890, 5991], [2919, 6065], [2984, 6134], [2928, 6105], [2878, 6052], [2875, 6012], [2850, 6018], [2855, 6053], [2837, 6076], [2815, 6056], [2787, 6072], [2784, 6124], [2805, 6163], [2820, 6150], [2808, 6168], [2862, 6203], [2857, 6144], [2837, 6137], ], ], [ [ [3351, 7049], [3352, 7056], [3362, 7056], [3368, 7050], [3353, 7046], [3369, 7031], [3280, 6993], [3251, 7003], [3287, 7042], [3342, 7057], [3351, 7049], ], ], [ [ [4021, 8662], [4042, 8649], [4054, 8642], [4064, 8566], [4036, 8541], [4007, 8557], [4044, 8579], [4041, 8595], [3986, 8552], [3957, 8569], [3990, 8595], [4025, 8605], [4021, 8662], ], ], [ [ [4773, 9266], [4803, 9297], [4786, 9313], [4816, 9315], [4819, 9336], [4816, 9285], [4784, 9234], [4713, 9205], [4726, 9247], [4694, 9238], [4726, 9274], [4773, 9266], ], ], [ [ [4199, 8593], [4192, 8544], [4150, 8536], [4140, 8493], [4115, 8501], [4104, 8462], [4073, 8476], [4050, 8462], [4035, 8461], [4061, 8507], [4055, 8538], [4084, 8562], [4073, 8614], [4091, 8659], [4119, 8663], [4119, 8609], [4133, 8605], [4118, 8557], [4146, 8599], [4158, 8649], [4180, 8635], [4199, 8593], ], ], [ [ [4220, 8743], [4241, 8781], [4218, 8805], [4266, 8805], [4276, 8820], [4250, 8833], [4254, 8851], [4291, 8832], [4307, 8874], [4333, 8847], [4341, 8804], [4323, 8792], [4334, 8751], [4284, 8737], [4215, 8700], [4238, 8726], [4220, 8743], ], ], ], }, }, { type: 'Feature', id: 'DE', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.47, 'hc-middle-y': 0.53, 'hc-key': 'de', 'hc-a2': 'DE', name: 'Germany', labelrank: '2', 'country-abbrev': 'Ger.', subregion: 'Western Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'DEU', 'iso-a2': 'DE', 'woe-id': '23424829', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [3422, 2394], [3345, 2433], [3297, 2473], [3318, 2430], [3264, 2425], [3205, 2468], [3164, 2431], [3174, 2408], [3006, 2412], [2996, 2470], [3016, 2533], [3008, 2560], [3045, 2634], [3059, 2708], [3116, 2766], [3136, 2805], [3085, 2829], [3032, 2830], [2984, 2871], [2960, 2853], [2879, 2886], [2854, 2877], [2819, 2954], [2791, 2962], [2825, 3058], [2774, 3087], [2759, 3155], [2765, 3182], [2809, 3209], [2804, 3257], [2779, 3261], [2778, 3297], [2746, 3338], [2761, 3382], [2737, 3419], [2780, 3452], [2766, 3475], [2794, 3519], [2779, 3594], [2751, 3642], [2788, 3666], [2832, 3644], [2910, 3678], [2887, 3701], [2952, 3754], [2945, 3818], [2897, 3827], [2912, 3874], [2959, 3874], [2969, 3933], [2988, 3965], [2993, 4045], [3013, 4070], [2965, 4084], [2978, 4144], [3003, 4166], [3128, 4178], [3163, 4128], [3144, 4114], [3169, 4087], [3189, 4115], [3179, 4143], [3231, 4125], [3218, 4165], [3235, 4214], [3283, 4206], [3343, 4213], [3309, 4223], [3280, 4265], [3282, 4328], [3250, 4334], [3247, 4367], [3286, 4374], [3312, 4400], [3259, 4467], [3255, 4513], [3282, 4516], [3384, 4487], [3384, 4487], [3408, 4503], [3483, 4447], [3481, 4410], [3608, 4345], [3659, 4353], [3658, 4307], [3605, 4266], [3628, 4244], [3677, 4260], [3725, 4229], [3731, 4256], [3770, 4302], [3833, 4308], [3872, 4347], [3897, 4397], [3961, 4368], [3987, 4389], [4002, 4345], [4064, 4296], [4103, 4313], [4119, 4289], [4122, 4320], [4193, 4256], [4187, 4247], [4192, 4239], [4137, 4226], [4146, 4291], [4124, 4280], [4141, 4255], [4127, 4235], [4157, 4207], [4206, 4188], [4238, 4067], [4231, 4002], [4198, 3974], [4196, 3943], [4292, 3870], [4276, 3824], [4307, 3777], [4322, 3727], [4295, 3647], [4322, 3611], [4327, 3566], [4367, 3549], [4385, 3489], [4354, 3378], [4318, 3372], [4293, 3419], [4256, 3423], [4269, 3379], [4136, 3323], [4109, 3288], [4070, 3282], [4030, 3255], [3940, 3221], [3900, 3155], [3860, 3197], [3894, 3121], [3947, 3082], [3923, 3034], [4004, 2918], [4043, 2910], [4079, 2860], [4139, 2811], [4163, 2815], [4205, 2765], [4189, 2693], [4151, 2710], [4132, 2649], [4062, 2613], [4008, 2569], [4059, 2492], [4041, 2456], [4066, 2454], [4072, 2390], [4021, 2406], [4016, 2438], [3965, 2426], [3902, 2446], [3900, 2416], [3794, 2409], [3724, 2353], [3670, 2350], [3632, 2385], [3558, 2401], [3566, 2362], [3538, 2323], [3467, 2387], [3422, 2394], ], [ [3343, 4213], [3357, 4210], [3357, 4210], [3357, 4210], [3357, 4210], [3403, 4138], [3374, 4205], [3357, 4210], [3357, 4210], [3357, 4210], [3357, 4210], [3354, 4215], [3343, 4213], ], ], [ [ [3731, 4262], [3727, 4247], [3711, 4250], [3726, 4265], [3731, 4262], ], ], [ [ [3291, 4389], [3278, 4399], [3284, 4404], [3304, 4405], [3291, 4389], ], ], [ [ [3688, 4393], [3698, 4374], [3646, 4389], [3665, 4409], [3688, 4393], ], ], [ [ [4044, 4454], [4086, 4437], [4077, 4404], [4111, 4369], [4066, 4367], [4028, 4339], [4002, 4362], [4024, 4377], [4008, 4423], [4044, 4454], ], ], [ [ [3239, 4455], [3210, 4462], [3221, 4473], [3236, 4473], [3239, 4455], ], ], [ [ [3210, 4514], [3193, 4513], [3208, 4554], [3204, 4535], [3210, 4514], ], ], [[[3319, 2429], [3321, 2426], [3321, 2426], [3319, 2429]]], ], }, }, { type: 'Feature', id: 'IE', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.61, 'hc-middle-y': 0.6, 'hc-key': 'ie', 'hc-a2': 'IE', name: 'Ireland', labelrank: '3', 'country-abbrev': 'Ire.', subregion: 'Northern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'IRL', 'iso-a2': 'IE', 'woe-id': '23424803', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [[[135, 4725], [124, 4687], [114, 4713], [82, 4730], [135, 4725]]], [ [ [746, 4592], [766, 4559], [727, 4568], [735, 4525], [725, 4463], [742, 4439], [725, 4388], [719, 4263], [663, 4188], [656, 4154], [613, 4108], [605, 4057], [529, 4093], [512, 4071], [418, 4086], [382, 4055], [338, 4055], [299, 4028], [255, 4032], [161, 3989], [135, 4002], [56, 3997], [36, 4014], [-44, 4006], [16, 4039], [29, 4070], [-68, 4058], [-72, 4082], [1, 4110], [-65, 4105], [-114, 4157], [-78, 4178], [-14, 4185], [-5, 4200], [-102, 4220], [-96, 4241], [-38, 4256], [9, 4227], [26, 4264], [10, 4280], [61, 4287], [79, 4310], [137, 4294], [196, 4300], [197, 4332], [162, 4301], [95, 4324], [45, 4325], [112, 4353], [151, 4397], [130, 4404], [181, 4452], [237, 4436], [245, 4471], [130, 4499], [143, 4528], [92, 4528], [114, 4544], [74, 4553], [62, 4608], [121, 4610], [123, 4652], [182, 4646], [190, 4674], [130, 4679], [153, 4697], [142, 4783], [178, 4806], [276, 4765], [279, 4723], [304, 4760], [397, 4731], [372, 4762], [448, 4791], [481, 4819], [390, 4835], [376, 4862], [424, 4888], [462, 4881], [447, 4915], [493, 4969], [574, 4962], [602, 4975], [614, 4903], [622, 4975], [655, 4972], [651, 4996], [711, 4932], [652, 4902], [622, 4890], [581, 4822], [532, 4831], [538, 4795], [459, 4770], [496, 4684], [576, 4637], [639, 4710], [662, 4684], [668, 4641], [690, 4626], [685, 4588], [746, 4592], ], ], ], }, }, { type: 'Feature', id: 'UA', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.58, 'hc-middle-y': 0.41, 'hc-key': 'ua', 'hc-a2': 'UA', name: 'Ukraine', labelrank: '3', 'country-abbrev': 'Ukr.', subregion: 'Eastern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'UKR', 'iso-a2': 'UA', 'woe-id': '23424976', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [7455, 2386], [7493, 2450], [7501, 2459], [7470, 2406], [7455, 2386], ], ], [ [ [7966, 2676], [7994, 2681], [8031, 2696], [8047, 2688], [7966, 2676], ], ], [ [ [7864, 2673], [7779, 2665], [7752, 2669], [7846, 2675], [7864, 2673], ], ], [ [ [5798, 2837], [5793, 2890], [5819, 2928], [5819, 2970], [5841, 3040], [5904, 3029], [5867, 3073], [5861, 3130], [5837, 3173], [5900, 3310], [5994, 3455], [6035, 3467], [6051, 3510], [6010, 3586], [6038, 3595], [5989, 3635], [5976, 3670], [5922, 3719], [5907, 3769], [5926, 3810], [5970, 3801], [6008, 3848], [6025, 3898], [6082, 3911], [6159, 3947], [6262, 3963], [6378, 3967], [6462, 3957], [6519, 3969], [6542, 3930], [6616, 3948], [6634, 3914], [6639, 3956], [6687, 3955], [6704, 3988], [6737, 3959], [6780, 3978], [6813, 3942], [6825, 3992], [6865, 4022], [6918, 3960], [6961, 4007], [7005, 4004], [7053, 4033], [7103, 3994], [7140, 3984], [7149, 4017], [7106, 4084], [7114, 4151], [7144, 4237], [7196, 4244], [7228, 4275], [7278, 4286], [7305, 4275], [7359, 4306], [7358, 4378], [7461, 4389], [7495, 4437], [7544, 4450], [7559, 4434], [7598, 4468], [7657, 4432], [7685, 4375], [7746, 4356], [7755, 4326], [7716, 4303], [7775, 4229], [7767, 4189], [7843, 4209], [7871, 4200], [7929, 4227], [7978, 4187], [8043, 4111], [8032, 4093], [8058, 4058], [8114, 4038], [8131, 4069], [8177, 4085], [8220, 4059], [8238, 4073], [8284, 4059], [8325, 4117], [8405, 4175], [8447, 4151], [8492, 4103], [8559, 4075], [8583, 4097], [8571, 4130], [8675, 4127], [8730, 4116], [8766, 4149], [8806, 4125], [8846, 4141], [8909, 4111], [8957, 4148], [8960, 4107], [9002, 4059], [8986, 3990], [8948, 3965], [8976, 3938], [9015, 3941], [8984, 3894], [8990, 3846], [9021, 3859], [9090, 3791], [9081, 3739], [9100, 3657], [8932, 3589], [8934, 3537], [8873, 3489], [8881, 3393], [8905, 3344], [8790, 3293], [8767, 3220], [8748, 3228], [8710, 3193], [8685, 3138], [8660, 3145], [8577, 3079], [8526, 3055], [8457, 2941], [8432, 2953], [8409, 2894], [8369, 2847], [8405, 2786], [8463, 2728], [8547, 2667], [8583, 2657], [8621, 2681], [8638, 2731], [8673, 2711], [8692, 2749], [8781, 2772], [8770, 2707], [8791, 2664], [8756, 2632], [8717, 2630], [8685, 2601], [8631, 2618], [8538, 2498], [8491, 2476], [8444, 2431], [8433, 2370], [8377, 2301], [8328, 2290], [8246, 2312], [8278, 2340], [8252, 2382], [8259, 2429], [8232, 2470], [8195, 2485], [8168, 2467], [8079, 2498], [8006, 2470], [7998, 2503], [8048, 2572], [8195, 2713], [8166, 2718], [8144, 2762], [8135, 2728], [8065, 2759], [8051, 2728], [7988, 2706], [7938, 2672], [7887, 2672], [7783, 2705], [7811, 2745], [7721, 2746], [7876, 2771], [7896, 2816], [7798, 2795], [7766, 2837], [7766, 2785], [7693, 2768], [7604, 2727], [7565, 2690], [7579, 2673], [7551, 2554], [7503, 2462], [7472, 2461], [7470, 2423], [7440, 2382], [7406, 2436], [7425, 2339], [7451, 2343], [7468, 2301], [7457, 2266], [7445, 2302], [7373, 2312], [7282, 2223], [7186, 2225], [7150, 2258], [7203, 2283], [7190, 2327], [7228, 2391], [7223, 2426], [7259, 2448], [7256, 2502], [7235, 2519], [7222, 2574], [7258, 2609], [7279, 2560], [7319, 2610], [7355, 2583], [7369, 2620], [7405, 2591], [7448, 2613], [7404, 2644], [7384, 2725], [7302, 2743], [7303, 2774], [7273, 2849], [7248, 2829], [7174, 2884], [7170, 2984], [7141, 3008], [7112, 2987], [7070, 3029], [7015, 3026], [6981, 3041], [6926, 3031], [6850, 3073], [6803, 3068], [6749, 3021], [6685, 3015], [6652, 2968], [6596, 2941], [6585, 2873], [6419, 2808], [6400, 2767], [6360, 2740], [6283, 2792], [6223, 2767], [6132, 2776], [6052, 2762], [6000, 2782], [5962, 2732], [5928, 2776], [5901, 2766], [5872, 2803], [5848, 2799], [5824, 2842], [5798, 2837], ], [ [7457, 2615], [7536, 2553], [7547, 2572], [7470, 2626], [7457, 2615], ], [ [8226, 2751], [8230, 2774], [8290, 2767], [8336, 2746], [8341, 2716], [8384, 2771], [8375, 2732], [8448, 2722], [8511, 2641], [8573, 2639], [8552, 2659], [8454, 2726], [8380, 2809], [8334, 2833], [8341, 2785], [8309, 2776], [8319, 2817], [8239, 2836], [8226, 2787], [8209, 2801], [8147, 2787], [8226, 2751], ], ], ], }, }, { type: 'Feature', id: 'FI', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.58, 'hc-middle-y': 0.72, 'hc-key': 'fi', 'hc-a2': 'FI', name: 'Finland', labelrank: '3', 'country-abbrev': 'Fin.', subregion: 'Northern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'FIN', 'iso-a2': 'FI', 'woe-id': '23424812', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [4993, 6096], [4976, 6089], [4970, 6088], [4977, 6101], [4993, 6096], ], ], [ [ [4992, 6109], [5004, 6120], [5016, 6114], [5011, 6102], [4992, 6109], ], ], [ [ [4939, 6118], [4961, 6095], [4955, 6084], [4930, 6101], [4939, 6118], ], ], [ [ [4959, 6128], [4966, 6130], [4964, 6111], [4954, 6118], [4959, 6128], ], ], [ [ [4873, 6139], [4861, 6117], [4851, 6132], [4858, 6155], [4873, 6139], ], ], [ [ [4902, 6194], [4957, 6174], [4947, 6141], [4922, 6163], [4931, 6115], [4891, 6105], [4867, 6158], [4902, 6194], ], ], [ [ [5277, 6163], [5280, 6143], [5272, 6140], [5263, 6163], [5277, 6163], ], ], [ [ [5158, 6164], [5156, 6153], [5142, 6149], [5147, 6172], [5158, 6164], ], ], [ [ [5191, 6183], [5175, 6160], [5167, 6161], [5170, 6182], [5191, 6183], ], ], [ [ [5210, 6170], [5199, 6182], [5212, 6195], [5210, 6182], [5210, 6170], ], ], [ [ [5722, 6296], [5708, 6311], [5710, 6317], [5727, 6305], [5722, 6296], ], ], [ [ [5326, 6209], [5314, 6149], [5284, 6144], [5272, 6198], [5326, 6209], ], ], [ [ [5243, 6212], [5215, 6212], [5220, 6227], [5248, 6226], [5243, 6212], ], ], [ [ [5261, 6239], [5254, 6226], [5245, 6233], [5256, 6244], [5261, 6239], ], ], [ [ [5222, 6241], [5239, 6247], [5240, 6243], [5227, 6236], [5222, 6241], ], ], [ [ [5196, 6222], [5169, 6235], [5179, 6259], [5200, 6229], [5196, 6222], ], ], [ [ [5114, 6275], [5115, 6255], [5107, 6259], [5095, 6277], [5114, 6275], ], ], [ [ [5079, 6373], [5065, 6389], [5072, 6396], [5084, 6386], [5079, 6373], ], ], [ [ [4937, 7061], [4954, 7049], [4977, 7043], [4964, 7024], [4937, 7061], ], ], [ [ [5064, 7083], [5069, 7094], [5088, 7090], [5076, 7072], [5064, 7083], ], ], [ [ [4972, 7074], [4968, 7065], [4954, 7075], [4968, 7088], [4972, 7074], ], ], [ [ [5135, 7240], [5138, 7228], [5131, 7222], [5121, 7233], [5135, 7240], ], ], [ [ [5322, 7664], [5299, 7629], [5286, 7647], [5295, 7662], [5322, 7664], ], ], [ [ [5345, 6190], [5331, 6207], [5327, 6241], [5281, 6204], [5269, 6214], [5287, 6256], [5239, 6250], [5173, 6282], [5163, 6310], [5142, 6267], [5098, 6304], [5093, 6379], [5067, 6421], [5089, 6423], [5097, 6469], [5073, 6573], [5103, 6565], [5073, 6596], [5037, 6676], [5017, 6687], [5013, 6796], [4984, 6806], [4983, 6864], [4964, 6884], [4975, 6939], [5002, 6971], [5001, 7006], [5028, 6998], [4995, 7046], [5044, 7070], [5050, 7045], [5104, 7098], [5073, 7134], [5102, 7148], [5112, 7214], [5146, 7203], [5158, 7255], [5202, 7289], [5195, 7332], [5255, 7403], [5254, 7443], [5289, 7495], [5290, 7539], [5322, 7603], [5356, 7625], [5385, 7602], [5393, 7628], [5369, 7651], [5398, 7650], [5360, 7689], [5364, 7730], [5355, 7797], [5315, 7825], [5266, 7823], [5238, 7871], [5223, 7856], [5191, 7866], [5161, 7928], [5117, 7968], [5095, 8033], [5116, 8076], [5106, 8131], [5115, 8151], [5047, 8242], [5053, 8324], [5012, 8336], [5020, 8369], [4997, 8455], [5012, 8473], [4945, 8521], [4925, 8569], [4893, 8592], [4833, 8607], [4808, 8603], [4787, 8627], [4732, 8654], [4661, 8729], [4625, 8745], [4635, 8767], [4669, 8753], [4680, 8769], [4662, 8795], [4687, 8832], [4725, 8830], [4776, 8761], [4823, 8711], [4835, 8679], [4900, 8683], [4923, 8666], [4976, 8706], [4991, 8740], [5041, 8717], [5079, 8712], [5106, 8686], [5129, 8714], [5127, 8767], [5171, 8799], [5178, 8840], [5159, 8892], [5162, 8948], [5153, 8993], [5157, 9048], [5173, 9058], [5190, 9125], [5225, 9140], [5252, 9135], [5290, 9182], [5320, 9205], [5361, 9160], [5392, 9139], [5476, 9121], [5515, 9065], [5485, 8979], [5490, 8946], [5509, 8926], [5467, 8875], [5508, 8866], [5495, 8771], [5543, 8678], [5621, 8661], [5680, 8597], [5730, 8568], [5735, 8514], [5708, 8441], [5685, 8340], [5696, 8295], [5773, 8209], [5793, 8170], [5847, 8111], [5891, 8036], [5907, 7989], [5863, 7968], [5889, 7883], [5880, 7852], [5913, 7851], [5920, 7819], [5900, 7782], [5939, 7733], [5974, 7739], [6000, 7703], [5979, 7678], [6002, 7628], [6081, 7597], [6094, 7531], [6072, 7463], [6049, 7441], [6136, 7380], [6185, 7369], [6251, 7333], [6261, 7312], [6320, 7265], [6313, 7140], [6287, 7068], [6260, 7026], [6195, 6828], [6171, 6788], [6144, 6709], [6100, 6652], [6036, 6533], [6004, 6463], [5961, 6425], [5915, 6445], [5896, 6417], [5808, 6365], [5760, 6377], [5762, 6313], [5734, 6307], [5718, 6339], [5702, 6300], [5659, 6290], [5659, 6272], [5580, 6239], [5570, 6198], [5551, 6217], [5449, 6162], [5424, 6157], [5404, 6119], [5356, 6102], [5399, 6143], [5377, 6144], [5394, 6176], [5356, 6176], [5346, 6188], [5344, 6176], [5342, 6158], [5333, 6178], [5345, 6190], ], ], ], }, }, { type: 'Feature', id: 'SE', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.52, 'hc-middle-y': 0.34, 'hc-key': 'se', 'hc-a2': 'SE', name: 'Sweden', labelrank: '3', 'country-abbrev': 'Swe.', subregion: 'Northern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'SWE', 'iso-a2': 'SE', 'woe-id': '23424954', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [4581, 5272], [4583, 5238], [4535, 5043], [4529, 4978], [4507, 4942], [4497, 5032], [4523, 5130], [4538, 5137], [4566, 5259], [4581, 5272], ], ], [ [ [4891, 5495], [4910, 5490], [4866, 5467], [4871, 5487], [4891, 5495], ], ], [ [ [3744, 5428], [3733, 5400], [3712, 5397], [3709, 5423], [3744, 5428], ], ], [ [ [3751, 5482], [3754, 5447], [3710, 5435], [3696, 5456], [3732, 5493], [3751, 5482], ], ], [ [ [4523, 5546], [4520, 5537], [4508, 5566], [4529, 5555], [4523, 5546], ], ], [ [ [4726, 5760], [4721, 5748], [4707, 5740], [4707, 5752], [4726, 5760], ], ], [ [ [4703, 5774], [4693, 5756], [4681, 5760], [4687, 5772], [4703, 5774], ], ], [ [ [4628, 5737], [4620, 5738], [4617, 5776], [4629, 5757], [4628, 5737], ], ], [ [ [4738, 5788], [4732, 5773], [4722, 5779], [4737, 5805], [4738, 5788], ], ], [ [ [4740, 5856], [4743, 5848], [4741, 5838], [4713, 5856], [4740, 5856], ], ], [ [ [4755, 5930], [4740, 5895], [4731, 5912], [4741, 5929], [4755, 5930], ], ], [ [ [4779, 5953], [4788, 5967], [4786, 5948], [4777, 5952], [4779, 5953], ], ], [ [ [4790, 6015], [4791, 6010], [4776, 6006], [4783, 6029], [4790, 6015], ], ], [ [ [4688, 6191], [4710, 6150], [4685, 6166], [4681, 6205], [4688, 6191], ], ], [ [ [4563, 6851], [4572, 6851], [4569, 6834], [4556, 6831], [4563, 6851], ], ], [ [ [4889, 7192], [4898, 7199], [4898, 7178], [4891, 7169], [4889, 7192], ], ], [ [ [4984, 7737], [4981, 7732], [4983, 7723], [4969, 7739], [4984, 7737], ], ], [ [ [5014, 7760], [5021, 7760], [5017, 7746], [5009, 7757], [5014, 7760], ], ], [ [ [4737, 5337], [4781, 5427], [4820, 5465], [4829, 5444], [4861, 5466], [4876, 5446], [4837, 5414], [4844, 5332], [4867, 5322], [4830, 5286], [4840, 5271], [4792, 5232], [4785, 5177], [4761, 5169], [4776, 5205], [4743, 5265], [4752, 5301], [4737, 5337], ], ], [ [ [4625, 8745], [4661, 8729], [4732, 8654], [4787, 8627], [4808, 8603], [4833, 8607], [4893, 8592], [4925, 8569], [4945, 8521], [5012, 8473], [4997, 8455], [5020, 8369], [5012, 8336], [5053, 8324], [5047, 8242], [5115, 8151], [5106, 8131], [5116, 8076], [5095, 8033], [5117, 7968], [5161, 7928], [5191, 7866], [5167, 7842], [5135, 7857], [5097, 7848], [5074, 7811], [5013, 7844], [5017, 7815], [4988, 7838], [4970, 7786], [4995, 7744], [4913, 7774], [4968, 7739], [4929, 7731], [4946, 7697], [4891, 7682], [4922, 7655], [4919, 7613], [4879, 7513], [4863, 7506], [4936, 7408], [4882, 7303], [4872, 7224], [4838, 7205], [4820, 7152], [4789, 7151], [4754, 7104], [4749, 7076], [4715, 7110], [4726, 7067], [4695, 7077], [4698, 7043], [4673, 6991], [4656, 6999], [4622, 6975], [4596, 6913], [4609, 6891], [4560, 6858], [4538, 6870], [4560, 6814], [4521, 6754], [4482, 6780], [4472, 6739], [4501, 6688], [4488, 6609], [4501, 6542], [4458, 6497], [4477, 6471], [4490, 6327], [4518, 6257], [4502, 6243], [4558, 6233], [4571, 6196], [4609, 6224], [4619, 6200], [4713, 6127], [4678, 6140], [4708, 6106], [4754, 6099], [4781, 6040], [4762, 6002], [4798, 6008], [4748, 5958], [4717, 5912], [4660, 5882], [4732, 5872], [4721, 5897], [4770, 5878], [4763, 5862], [4703, 5859], [4729, 5811], [4676, 5782], [4660, 5738], [4637, 5738], [4632, 5796], [4611, 5784], [4615, 5719], [4522, 5639], [4417, 5642], [4446, 5623], [4502, 5632], [4528, 5600], [4497, 5582], [4512, 5550], [4514, 5494], [4490, 5435], [4465, 5421], [4515, 5366], [4494, 5370], [4518, 5303], [4498, 5275], [4491, 5215], [4513, 5179], [4452, 4992], [4446, 4944], [4421, 4893], [4415, 4914], [4373, 4924], [4334, 4902], [4274, 4907], [4232, 4897], [4247, 4864], [4201, 4861], [4161, 4798], [4160, 4770], [4191, 4714], [4163, 4674], [4114, 4683], [4016, 4653], [3962, 4674], [3956, 4718], [3976, 4746], [3953, 4767], [3880, 4916], [3927, 4904], [3897, 4958], [3939, 4970], [3934, 5026], [3912, 5025], [3889, 5074], [3853, 5099], [3798, 5256], [3779, 5227], [3775, 5302], [3742, 5330], [3738, 5364], [3762, 5474], [3756, 5503], [3707, 5491], [3692, 5535], [3665, 5507], [3672, 5577], [3645, 5689], [3660, 5725], [3693, 5697], [3695, 5669], [3727, 5677], [3747, 5773], [3725, 5862], [3756, 5924], [3748, 5954], [3790, 5963], [3842, 6028], [3836, 6080], [3850, 6144], [3816, 6212], [3797, 6278], [3857, 6297], [3880, 6395], [3841, 6445], [3814, 6454], [3777, 6495], [3794, 6644], [3760, 6746], [3767, 6790], [3759, 6845], [3774, 6868], [3741, 6952], [3767, 7001], [3762, 7043], [3825, 7151], [3894, 7193], [3986, 7174], [4012, 7233], [4002, 7302], [3940, 7341], [4015, 7494], [4036, 7564], [4035, 7678], [4042, 7721], [4024, 7804], [4086, 7816], [4134, 7856], [4123, 7920], [4149, 7954], [4186, 8043], [4225, 8096], [4224, 8141], [4182, 8204], [4188, 8230], [4219, 8248], [4246, 8357], [4298, 8421], [4367, 8387], [4391, 8447], [4379, 8560], [4406, 8575], [4432, 8556], [4475, 8562], [4579, 8529], [4608, 8572], [4575, 8586], [4600, 8626], [4600, 8702], [4570, 8732], [4625, 8745], ], ], ], }, }, { type: 'Feature', id: 'RU', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.59, 'hc-middle-y': 0.45, 'hc-key': 'ru', 'hc-a2': 'RU', name: 'Russia', labelrank: '2', 'country-abbrev': 'Rus.', subregion: 'Eastern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'RUS', 'iso-a2': 'RU', 'woe-id': '23424936', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [6161, 5739], [6243, 5717], [6237, 5759], [6194, 5799], [6149, 5776], [6124, 5800], [6149, 5876], [6122, 5986], [6102, 6021], [6106, 6046], [6108, 6072], [6115, 6109], [6124, 6119], [6130, 6125], [6119, 6126], [6130, 6125], [6143, 6139], [6126, 6160], [6111, 6169], [6091, 6230], [6097, 6261], [6148, 6234], [6154, 6294], [6188, 6280], [6221, 6303], [6234, 6358], [6388, 6364], [6381, 6399], [6342, 6396], [6317, 6431], [6199, 6407], [6158, 6445], [6127, 6446], [6091, 6487], [6133, 6467], [6112, 6530], [6078, 6516], [6061, 6476], [6004, 6463], [6036, 6533], [6100, 6652], [6144, 6709], [6171, 6788], [6195, 6828], [6260, 7026], [6287, 7068], [6313, 7140], [6320, 7265], [6261, 7312], [6251, 7333], [6185, 7369], [6136, 7380], [6049, 7441], [6072, 7463], [6094, 7531], [6081, 7597], [6002, 7628], [5979, 7678], [6000, 7703], [5974, 7739], [5939, 7733], [5900, 7782], [5920, 7819], [5913, 7851], [5880, 7852], [5889, 7883], [5863, 7968], [5907, 7989], [5891, 8036], [5847, 8111], [5793, 8170], [5773, 8209], [5696, 8295], [5685, 8340], [5708, 8441], [5735, 8514], [5730, 8568], [5680, 8597], [5621, 8661], [5543, 8678], [5495, 8771], [5508, 8866], [5467, 8875], [5509, 8926], [5532, 8960], [5529, 9010], [5581, 9050], [5597, 9081], [5599, 9138], [5628, 9120], [5664, 9128], [5659, 9172], [5638, 9209], [5685, 9209], [5710, 9193], [5747, 9204], [5726, 9251], [5760, 9239], [5736, 9277], [5746, 9292], [5820, 9258], [5849, 9267], [5881, 9239], [5863, 9208], [5786, 9206], [5779, 9175], [5814, 9193], [5836, 9176], [5895, 9185], [5883, 9145], [5922, 9186], [5944, 9186], [5940, 9121], [5965, 9116], [5964, 9160], [6046, 9184], [6077, 9175], [6141, 9187], [6142, 9207], [6217, 9203], [6264, 9182], [6330, 9171], [6416, 9139], [6441, 9140], [6559, 9072], [6574, 9088], [6704, 9042], [6761, 9048], [6812, 9033], [6845, 8998], [6855, 9022], [6905, 9008], [6932, 8944], [6953, 8939], [6971, 8891], [6994, 8896], [7027, 8838], [7034, 8774], [7005, 8628], [6980, 8579], [6916, 8501], [6838, 8442], [6764, 8422], [6626, 8430], [6572, 8412], [6444, 8403], [6359, 8434], [6325, 8401], [6282, 8430], [6243, 8419], [6195, 8445], [6200, 8416], [6106, 8461], [6091, 8493], [6038, 8497], [6028, 8483], [6073, 8455], [6081, 8424], [6125, 8392], [6171, 8394], [6159, 8338], [6198, 8349], [6253, 8343], [6252, 8307], [6375, 8282], [6437, 8236], [6462, 8184], [6427, 8204], [6459, 8148], [6442, 8071], [6519, 7996], [6512, 7973], [6552, 7949], [6545, 7915], [6581, 7883], [6562, 7858], [6666, 7811], [6708, 7845], [6743, 7813], [6782, 7804], [6801, 7775], [6860, 7771], [6919, 7785], [6942, 7770], [7012, 7842], [7014, 7867], [6972, 7910], [6972, 7940], [6922, 7956], [6891, 7915], [6859, 7919], [6783, 7980], [6758, 7982], [6722, 8032], [6761, 8060], [6742, 8112], [6761, 8128], [6859, 8118], [6917, 8089], [7033, 8099], [7129, 8080], [7147, 8130], [7199, 8115], [7240, 8128], [7178, 8223], [7129, 8251], [7045, 8320], [7033, 8381], [7069, 8437], [7094, 8533], [7145, 8580], [7172, 8670], [7178, 8751], [7236, 8752], [7235, 8729], [7303, 8780], [7377, 8744], [7353, 8690], [7399, 8745], [7436, 8729], [7476, 8684], [7413, 8795], [7402, 8910], [7374, 8932], [7369, 8976], [7324, 9009], [7263, 9008], [7238, 9051], [7210, 9191], [7194, 9213], [7159, 9318], [7139, 9335], [7019, 9368], [7027, 9390], [7093, 9384], [7223, 9450], [7299, 9457], [7325, 9430], [7402, 9407], [7463, 9341], [7403, 9282], [7343, 9236], [7359, 9198], [7338, 9166], [7360, 9106], [7449, 9098], [7514, 9042], [7542, 9038], [7591, 9079], [7600, 9064], [7667, 9142], [7689, 9179], [7655, 9230], [7644, 9306], [7615, 9329], [7639, 9386], [7683, 9428], [7668, 9467], [7697, 9484], [7728, 9545], [7765, 9652], [7773, 9713], [7794, 9714], [7870, 9851], [7872, 9851], [7892, 9835], [7898, 9795], [7929, 9801], [7936, 9851], [8020, 9851], [8021, 9833], [8055, 9851], [9732, 9851], [9732, 2582], [9688, 2568], [9659, 2542], [9662, 2497], [9589, 2522], [9379, 2615], [9285, 2633], [9196, 2619], [9107, 2671], [9032, 2637], [8968, 2690], [8806, 2713], [8834, 2751], [8827, 2795], [8896, 2789], [8901, 2761], [8965, 2827], [9012, 2828], [8978, 2893], [8970, 2849], [8950, 2912], [8981, 2954], [8977, 3041], [9017, 3090], [9065, 3076], [9077, 3107], [9018, 3114], [8967, 3143], [8941, 3127], [8863, 3194], [8924, 3204], [8970, 3283], [9035, 3333], [9069, 3391], [9105, 3400], [9077, 3467], [9026, 3422], [8905, 3344], [8881, 3393], [8873, 3489], [8934, 3537], [8932, 3589], [9100, 3657], [9081, 3739], [9090, 3791], [9021, 3859], [8990, 3846], [8984, 3894], [9015, 3941], [8976, 3938], [8948, 3965], [8986, 3990], [9002, 4059], [8960, 4107], [8957, 4148], [8909, 4111], [8846, 4141], [8806, 4125], [8766, 4149], [8730, 4116], [8675, 4127], [8571, 4130], [8583, 4097], [8559, 4075], [8492, 4103], [8447, 4151], [8405, 4175], [8325, 4117], [8284, 4059], [8238, 4073], [8220, 4059], [8177, 4085], [8131, 4069], [8114, 4038], [8058, 4058], [8032, 4093], [8043, 4111], [7978, 4187], [7929, 4227], [7871, 4200], [7843, 4209], [7767, 4189], [7775, 4229], [7716, 4303], [7755, 4326], [7746, 4356], [7685, 4375], [7657, 4432], [7598, 4468], [7559, 4434], [7544, 4450], [7495, 4437], [7461, 4389], [7358, 4378], [7359, 4306], [7305, 4275], [7278, 4286], [7227, 4334], [7171, 4478], [7114, 4511], [7126, 4570], [7180, 4585], [7246, 4572], [7290, 4620], [7320, 4704], [7266, 4719], [7254, 4763], [7183, 4772], [7129, 4751], [7118, 4826], [7024, 4849], [6987, 4904], [6960, 4909], [6966, 4950], [6889, 4976], [6884, 5017], [6907, 5053], [6852, 5115], [6861, 5155], [6840, 5206], [6818, 5198], [6759, 5240], [6715, 5246], [6663, 5224], [6610, 5166], [6584, 5189], [6576, 5237], [6517, 5241], [6489, 5207], [6449, 5241], [6400, 5217], [6371, 5238], [6371, 5279], [6340, 5347], [6284, 5395], [6262, 5427], [6240, 5414], [6248, 5510], [6241, 5547], [6181, 5574], [6177, 5602], [6151, 5595], [6159, 5682], [6194, 5705], [6161, 5739], ], [ [5965, 9116], [5965, 9113], [5965, 9113], [5965, 9113], [5933, 9064], [5966, 9090], [5965, 9113], [5965, 9113], [5965, 9113], [5967, 9115], [5965, 9116], ], ], [ [ [6120, 6424], [6130, 6432], [6151, 6421], [6138, 6413], [6120, 6424], ], ], [ [ [6732, 7851], [6707, 7864], [6714, 7869], [6731, 7863], [6732, 7851], ], ], [ [ [6624, 8069], [6645, 8030], [6594, 8040], [6591, 8054], [6624, 8069], ], ], [ [ [6641, 8087], [6652, 8081], [6676, 8089], [6657, 8072], [6641, 8087], ], ], [ [ [7211, 8811], [7186, 8812], [7174, 8829], [7188, 8834], [7211, 8811], ], ], [ [ [7795, 9756], [7773, 9714], [7788, 9768], [7821, 9784], [7795, 9756], ], ], [ [ [6041, 9195], [6002, 9182], [5996, 9191], [6016, 9204], [6041, 9195], ], ], [ [ [5279, 4758], [5218, 4659], [5310, 4654], [5333, 4669], [5314, 4740], [5326, 4758], [5472, 4718], [5549, 4740], [5594, 4700], [5595, 4571], [5615, 4546], [5604, 4540], [5111, 4489], [5209, 4577], [5134, 4570], [5118, 4544], [5118, 4544], [5118, 4544], [5137, 4642], [5191, 4649], [5231, 4685], [5268, 4759], [5279, 4758], [5279, 4758], ], ], [ [ [5088, 4491], [5086, 4492], [5103, 4518], [5103, 4518], [5088, 4491], ], ], [ [ [7186, 8155], [7163, 8163], [7191, 8181], [7206, 8168], [7216, 8145], [7193, 8153], [7230, 8134], [7199, 8120], [7145, 8136], [7155, 8151], [7186, 8155], ], ], [ [ [5103, 4518], [5118, 4544], [5118, 4544], [5118, 4544], [5117, 4538], [5103, 4518], [5103, 4518], ], ], [ [ [7399, 9803], [7406, 9851], [7585, 9851], [7583, 9843], [7591, 9782], [7564, 9727], [7510, 9677], [7448, 9702], [7399, 9803], ], ], ], }, }, { type: 'Feature', id: 'GB', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.18, 'hc-middle-y': 0.36, 'hc-key': 'gb', 'hc-a2': 'GB', name: 'United Kingdom', labelrank: '2', 'country-abbrev': 'U.K.', subregion: 'Northern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'GBR', 'iso-a2': 'GB', 'woe-id': '-90', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [1201, 3080], [1215, 3052], [1176, 3062], [1178, 3081], [1201, 3080], ], ], [ [ [1423, 3486], [1461, 3456], [1411, 3434], [1382, 3463], [1423, 3486], ], ], [[[968, 4314], [973, 4313], [980, 4292], [962, 4305], [968, 4314]]], [ [ [1043, 4292], [1070, 4288], [1010, 4250], [979, 4298], [986, 4332], [1036, 4324], [1043, 4292], ], ], [ [ [1017, 4928], [983, 4948], [995, 5006], [1025, 4996], [1017, 4928], ], ], [ [ [1052, 5006], [1038, 5025], [1033, 5063], [1050, 5050], [1052, 5006], ], ], [ [ [885, 5073], [888, 5028], [851, 5030], [842, 5065], [811, 5045], [830, 5088], [886, 5105], [885, 5073], ], ], [[[898, 5153], [887, 5135], [874, 5134], [891, 5156], [898, 5153]]], [[[961, 5153], [957, 5129], [905, 5060], [894, 5095], [961, 5153]]], [[[803, 5273], [790, 5294], [831, 5297], [807, 5283], [803, 5273]]], [ [ [946, 5292], [953, 5262], [986, 5245], [991, 5217], [878, 5206], [922, 5254], [894, 5284], [935, 5305], [946, 5292], ], ], [[[862, 5305], [840, 5306], [862, 5321], [885, 5326], [862, 5305]]], [[[763, 5445], [745, 5435], [733, 5442], [754, 5460], [763, 5445]]], [[[935, 5412], [925, 5393], [906, 5415], [929, 5426], [935, 5412]]], [[[796, 5561], [811, 5523], [775, 5475], [769, 5517], [796, 5561]]], [[[811, 5581], [819, 5559], [805, 5558], [790, 5574], [811, 5581]]], [[[838, 5625], [833, 5583], [780, 5621], [795, 5637], [838, 5625]]], [ [ [1551, 5818], [1538, 5794], [1529, 5824], [1542, 5826], [1551, 5818], ], ], [ [ [1501, 5850], [1508, 5826], [1487, 5818], [1473, 5849], [1501, 5850], ], ], [ [ [1527, 5917], [1583, 5845], [1561, 5835], [1544, 5861], [1509, 5854], [1490, 5887], [1502, 5918], [1527, 5917], ], ], [ [ [1607, 5906], [1619, 5887], [1606, 5883], [1600, 5908], [1607, 5906], ], ], [ [ [1548, 5925], [1554, 5910], [1540, 5912], [1538, 5930], [1548, 5925], ], ], [ [ [1590, 5936], [1590, 5908], [1582, 5907], [1578, 5924], [1590, 5936], ], ], [ [ [1647, 5941], [1626, 5926], [1614, 5932], [1619, 5939], [1647, 5941], ], ], [ [ [1569, 5971], [1575, 5943], [1558, 5948], [1549, 5970], [1569, 5971], ], ], [ [ [1936, 6281], [1938, 6271], [1924, 6271], [1919, 6289], [1936, 6281], ], ], [ [ [1871, 6164], [1837, 6082], [1824, 6092], [1855, 6186], [1824, 6165], [1802, 6213], [1845, 6210], [1841, 6261], [1817, 6262], [1863, 6293], [1847, 6234], [1892, 6239], [1871, 6164], ], ], [ [ [1904, 6323], [1916, 6320], [1900, 6254], [1883, 6259], [1904, 6323], ], ], [ [ [1949, 6333], [1938, 6303], [1918, 6307], [1936, 6350], [1949, 6333], ], ], [ [ [1131, 3142], [1108, 3146], [1111, 3154], [1140, 3166], [1131, 3142], ], ], [ [ [1023, 4529], [989, 4528], [1011, 4570], [1049, 4605], [1082, 4612], [1081, 4575], [1023, 4529], ], ], [[[-207, -551], [-210, -560], [-212, -550], [-207, -551]]], [ [ [9095, -490], [9069, -492], [9034, -504], [9046, -485], [9095, -490], ], ], [ [ [9270, -328], [9261, -336], [9242, -332], [9236, -330], [9242, -332], [9237, -333], [9224, -339], [9224, -339], [9223, -335], [9219, -325], [9213, -324], [9213, -324], [9233, -318], [9262, -296], [9262, -296], [9261, -299], [9240, -313], [9270, -328], ], [ [9232, -327], [9232, -324], [9229, -325], [9230, -327], [9232, -327], ], ], [ [ [1830, 3601], [1855, 3592], [1936, 3594], [1915, 3521], [1853, 3503], [1840, 3469], [1808, 3479], [1725, 3455], [1705, 3437], [1628, 3471], [1555, 3474], [1508, 3461], [1496, 3491], [1420, 3494], [1303, 3481], [1290, 3456], [1211, 3481], [1203, 3467], [1138, 3522], [1064, 3519], [1015, 3491], [1009, 3452], [970, 3405], [944, 3406], [885, 3466], [776, 3474], [761, 3448], [714, 3448], [705, 3410], [674, 3387], [633, 3446], [587, 3433], [597, 3463], [644, 3463], [728, 3514], [738, 3539], [784, 3551], [840, 3602], [856, 3659], [889, 3647], [934, 3701], [1004, 3698], [1069, 3668], [1134, 3657], [1142, 3691], [1204, 3735], [1257, 3796], [1213, 3761], [1161, 3761], [1116, 3721], [1053, 3733], [1010, 3807], [985, 3794], [929, 3803], [923, 3866], [870, 3863], [817, 3838], [812, 3872], [776, 3942], [818, 3963], [861, 3953], [986, 4004], [1026, 4074], [1039, 4180], [985, 4185], [961, 4159], [918, 4168], [955, 4201], [1001, 4221], [1048, 4271], [1194, 4279], [1224, 4247], [1220, 4281], [1244, 4294], [1243, 4326], [1286, 4374], [1263, 4388], [1277, 4433], [1324, 4481], [1291, 4516], [1249, 4491], [1225, 4578], [1205, 4617], [1266, 4714], [1298, 4729], [1242, 4752], [1231, 4719], [1190, 4724], [1165, 4701], [1132, 4713], [1101, 4753], [1094, 4689], [1025, 4757], [1006, 4744], [1011, 4691], [980, 4761], [1017, 4840], [1101, 4927], [1065, 4997], [1080, 5048], [1101, 5062], [1100, 5109], [1065, 5045], [1039, 5069], [1010, 5064], [1006, 5031], [970, 4998], [950, 4923], [903, 4915], [958, 5036], [958, 5101], [1001, 5152], [978, 5167], [1013, 5213], [1069, 5218], [1025, 5232], [1071, 5292], [995, 5245], [951, 5291], [971, 5303], [922, 5320], [932, 5335], [982, 5321], [988, 5362], [1054, 5463], [1027, 5491], [1037, 5556], [1062, 5536], [1051, 5587], [1058, 5629], [1093, 5647], [1112, 5620], [1131, 5643], [1167, 5614], [1127, 5685], [1148, 5677], [1145, 5729], [1192, 5729], [1185, 5753], [1229, 5825], [1273, 5794], [1400, 5774], [1464, 5786], [1521, 5771], [1498, 5737], [1500, 5708], [1474, 5681], [1325, 5602], [1324, 5566], [1362, 5562], [1274, 5481], [1382, 5502], [1401, 5520], [1462, 5496], [1488, 5501], [1546, 5480], [1637, 5469], [1654, 5405], [1613, 5366], [1592, 5311], [1554, 5245], [1512, 5212], [1491, 5171], [1429, 5146], [1432, 5118], [1469, 5088], [1431, 5067], [1403, 5076], [1362, 5041], [1296, 5041], [1370, 5007], [1422, 5032], [1448, 5025], [1519, 4972], [1558, 4882], [1586, 4863], [1584, 4742], [1603, 4625], [1628, 4576], [1711, 4521], [1730, 4457], [1778, 4405], [1750, 4383], [1756, 4346], [1794, 4266], [1763, 4265], [1724, 4304], [1739, 4267], [1791, 4218], [1813, 4142], [1806, 4103], [1743, 4053], [1803, 4017], [1843, 4064], [1911, 4056], [1963, 4037], [2022, 3985], [2034, 3900], [2002, 3841], [1988, 3788], [1913, 3738], [1898, 3712], [1872, 3728], [1844, 3654], [1767, 3648], [1809, 3635], [1781, 3619], [1823, 3604], [1821, 3625], [1842, 3614], [1848, 3599], [1830, 3601], ], ], [ [ [989, 5494], [996, 5479], [1046, 5460], [1035, 5441], [976, 5406], [984, 5454], [937, 5454], [922, 5503], [886, 5554], [922, 5560], [917, 5592], [950, 5557], [973, 5607], [990, 5569], [977, 5518], [989, 5495], [995, 5528], [1011, 5545], [999, 5516], [989, 5494], ], ], [ [ [902, 5785], [935, 5767], [936, 5789], [1032, 5834], [1037, 5783], [993, 5753], [989, 5703], [954, 5676], [875, 5640], [862, 5666], [909, 5691], [872, 5716], [902, 5785], ], ], [ [ [652, 4902], [679, 4888], [706, 4926], [738, 4913], [787, 4923], [845, 4898], [875, 4749], [902, 4722], [907, 4664], [888, 4631], [888, 4687], [855, 4642], [877, 4622], [822, 4614], [780, 4566], [746, 4592], [685, 4588], [690, 4626], [668, 4641], [662, 4684], [639, 4710], [576, 4637], [496, 4684], [459, 4770], [538, 4795], [532, 4831], [581, 4822], [622, 4890], [652, 4902], ], ], ], }, }, { type: 'Feature', id: 'CY', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.19, 'hc-middle-y': 0.71, 'hc-key': 'cy', 'hc-a2': 'CY', name: 'Cyprus', labelrank: '5', 'country-abbrev': 'Cyp.', subregion: 'Western Asia', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'CYP', 'iso-a2': 'CY', 'woe-id': '-90', continent: 'Asia', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [9232, -327], [9230, -327], [9229, -325], [9232, -324], [9232, -327], ], ], [ [ [9291, -290], [9318, -310], [9270, -328], [9240, -313], [9261, -299], [9270, -299], [9291, -290], ], ], [ [ [9224, -339], [9216, -390], [9095, -490], [9046, -485], [9034, -504], [8942, -502], [8881, -414], [8923, -412], [8944, -370], [8955, -373], [8960, -360], [8968, -358], [9008, -383], [9083, -327], [9139, -309], [9162, -352], [9223, -335], [9224, -339], [9224, -339], ], ], [ [ [9236, -330], [9239, -329], [9245, -331], [9242, -332], [9236, -330], ], ], ], }, }, { type: 'Feature', id: 'PT', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.48, 'hc-middle-y': 0.36, 'hc-key': 'pt', 'hc-a2': 'PT', name: 'Portugal', labelrank: '2', 'country-abbrev': 'Port.', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'PRT', 'iso-a2': 'PT', 'woe-id': '23424925', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [-896, 403], [-979, 424], [-941, 512], [-901, 573], [-905, 609], [-867, 611], [-810, 675], [-731, 789], [-719, 832], [-619, 1023], [-609, 1164], [-611, 1246], [-566, 1304], [-534, 1320], [-441, 1327], [-423, 1288], [-463, 1252], [-457, 1228], [-354, 1228], [-338, 1204], [-257, 1193], [-226, 1223], [-107, 1176], [-122, 1124], [-54, 1057], [-134, 993], [-168, 993], [-220, 941], [-249, 936], [-238, 881], [-270, 768], [-262, 740], [-328, 703], [-304, 645], [-361, 562], [-476, 588], [-438, 511], [-449, 478], [-430, 404], [-393, 365], [-423, 324], [-479, 302], [-520, 224], [-481, 131], [-444, 129], [-473, 83], [-533, 84], [-559, 40], [-621, -20], [-621, -134], [-720, -162], [-761, -157], [-805, -120], [-906, -83], [-999, -89], [-917, 33], [-889, 160], [-903, 172], [-858, 231], [-850, 282], [-874, 333], [-937, 322], [-929, 397], [-896, 403], ], [ [-896, 403], [-894, 402], [-893, 403], [-893, 403], [-893, 404], [-850, 411], [-856, 453], [-893, 404], [-893, 404], [-893, 404], [-896, 403], ], ], }, }, { type: 'Feature', id: 'GR', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.21, 'hc-middle-y': 0.4, 'hc-key': 'gr', 'hc-a2': 'GR', name: 'Greece', labelrank: '3', 'country-abbrev': 'Greece', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'GRC', 'iso-a2': 'GR', 'woe-id': '23424833', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [7604, -670], [7608, -677], [7582, -697], [7580, -676], [7604, -670], ], ], [ [ [7631, -545], [7629, -606], [7642, -663], [7609, -618], [7631, -545], ], ], [ [ [6616, -642], [6582, -647], [6584, -593], [6626, -630], [6616, -642], ], ], [ [ [7823, -305], [7805, -407], [7756, -489], [7713, -417], [7751, -352], [7823, -305], ], ], [ [ [7182, -475], [7175, -489], [7154, -487], [7169, -474], [7182, -475], ], ], [ [ [7617, -345], [7625, -359], [7626, -370], [7604, -352], [7617, -345], ], ], [ [ [7396, -360], [7364, -392], [7351, -370], [7370, -374], [7396, -360], ], ], [ [ [7712, -275], [7723, -272], [7731, -295], [7701, -292], [7712, -275], ], ], [ [ [6934, -404], [6941, -431], [6892, -453], [6893, -421], [6934, -404], ], ], [ [ [7139, -377], [7138, -400], [7105, -385], [7113, -363], [7139, -377], ], ], [ [ [7551, -257], [7495, -300], [7519, -256], [7566, -224], [7551, -257], ], ], [ [ [7286, -293], [7247, -333], [7238, -318], [7267, -285], [7286, -293], ], ], [ [ [6946, -321], [6976, -342], [6967, -360], [6944, -328], [6946, -321], ], ], [ [ [7485, -202], [7503, -208], [7503, -228], [7477, -234], [7485, -202], ], ], [ [ [7046, -318], [7057, -279], [7081, -269], [7077, -311], [7046, -318], ], ], [ [ [7438, -167], [7460, -189], [7449, -192], [7429, -173], [7438, -167], ], ], [ [ [7161, -259], [7139, -319], [7104, -279], [7140, -233], [7161, -259], ], ], [ [ [6896, -283], [6906, -283], [6912, -303], [6889, -307], [6896, -283], ], ], [ [ [6670, -285], [6660, -295], [6632, -304], [6650, -286], [6670, -285], ], ], [ [ [6880, -220], [6863, -259], [6857, -221], [6868, -204], [6880, -220], ], ], [ [ [7078, -153], [7107, -159], [7096, -177], [7075, -183], [7078, -153], ], ], [ [ [6996, -203], [6979, -218], [6972, -209], [6981, -174], [6996, -203], ], ], [ [ [7008, -125], [7047, -125], [7046, -153], [6989, -133], [7008, -125], ], ], [ [ [6842, -149], [6851, -166], [6828, -198], [6824, -172], [6842, -149], ], ], [[[7294, -67], [7241, -114], [7221, -109], [7237, -79], [7294, -67]]], [ [ [6639, -190], [6630, -189], [6618, -168], [6650, -162], [6639, -190], ], ], [ [ [7431, 3], [7459, -6], [7400, -38], [7346, -22], [7402, 12], [7431, 3], ], ], [ [ [5994, -248], [6054, -276], [6018, -305], [5965, -262], [5994, -248], ], ], [[[6938, -60], [6962, -58], [6965, -113], [6899, -63], [6938, -60]]], [ [ [6631, -102], [6637, -116], [6621, -132], [6605, -127], [6631, -102], ], ], [ [ [5926, -73], [5995, -185], [5927, -181], [5891, -111], [5913, -123], [5926, -73], ], ], [ [ [7173, 194], [7198, 187], [7214, 118], [7188, 68], [7149, 90], [7172, 121], [7124, 182], [7173, 194], ], ], [[[5956, -15], [5922, -30], [5914, -10], [5935, 41], [5956, -15]]], [[[6817, 208], [6846, 190], [6813, 180], [6793, 232], [6817, 208]]], [[[6561, 245], [6551, 230], [6536, 231], [6549, 254], [6561, 245]]], [[[6579, 258], [6627, 240], [6618, 227], [6600, 227], [6579, 258]]], [[[6648, 257], [6642, 262], [6651, 293], [6659, 292], [6648, 257]]], [ [ [7202, 424], [7264, 345], [7228, 323], [7167, 325], [7082, 354], [7082, 378], [7183, 438], [7202, 424], ], ], [[[5724, 291], [5711, 248], [5738, 200], [5658, 269], [5724, 291]]], [ [ [6940, 577], [6935, 505], [6895, 528], [6865, 505], [6853, 550], [6911, 552], [6940, 577], ], ], [[[6963, 721], [6969, 703], [6950, 692], [6917, 710], [6963, 721]]], [[[6760, 718], [6700, 711], [6718, 764], [6750, 754], [6760, 718]]], [ [ [5744, 264], [5783, 255], [5827, 318], [5801, 361], [5871, 401], [5896, 516], [5934, 546], [5929, 587], [5950, 612], [5928, 589], [5909, 607], [5912, 616], [5923, 633], [5943, 639], [5999, 661], [6044, 658], [6105, 737], [6162, 765], [6216, 761], [6280, 788], [6278, 832], [6313, 844], [6357, 845], [6390, 877], [6462, 882], [6547, 945], [6645, 975], [6671, 941], [6714, 926], [6735, 946], [6831, 918], [6884, 953], [6956, 965], [7004, 992], [7003, 1040], [6967, 1083], [7026, 1104], [7089, 1088], [7113, 1024], [7056, 973], [7081, 892], [7028, 811], [7001, 837], [6909, 825], [6792, 840], [6750, 785], [6693, 803], [6656, 791], [6651, 758], [6606, 719], [6537, 721], [6516, 691], [6698, 573], [6683, 554], [6645, 591], [6585, 607], [6539, 585], [6563, 553], [6615, 538], [6624, 490], [6572, 514], [6539, 553], [6475, 558], [6465, 536], [6562, 466], [6484, 465], [6455, 542], [6391, 557], [6335, 600], [6368, 621], [6348, 644], [6284, 580], [6307, 555], [6293, 492], [6303, 460], [6382, 390], [6406, 343], [6451, 320], [6522, 239], [6421, 274], [6413, 212], [6469, 187], [6414, 128], [6373, 132], [6413, 100], [6482, 95], [6494, 74], [6546, 82], [6561, 42], [6600, 46], [6643, 14], [6710, 7], [6747, -23], [6728, -40], [6771, -143], [6765, -175], [6694, -139], [6639, -80], [6561, -117], [6518, -163], [6560, -167], [6567, -224], [6600, -217], [6659, -253], [6559, -304], [6568, -274], [6468, -264], [6483, -304], [6544, -376], [6599, -470], [6582, -493], [6638, -568], [6536, -516], [6516, -478], [6473, -492], [6460, -548], [6474, -588], [6434, -581], [6425, -525], [6361, -440], [6312, -460], [6310, -537], [6267, -521], [6258, -476], [6217, -423], [6238, -381], [6193, -305], [6081, -240], [6125, -148], [6122, -119], [6178, -130], [6208, -82], [6250, -63], [6320, -96], [6430, -113], [6480, -142], [6472, -115], [6552, -79], [6528, -63], [6420, -38], [6387, -49], [6346, -11], [6348, -44], [6254, -40], [6153, -91], [6112, -64], [6067, -102], [6041, -37], [5962, 66], [6037, 101], [5958, 121], [5942, 72], [5926, 106], [5844, 158], [5781, 221], [5788, 250], [5744, 264], ], ], [[[5953, -97], [5966, -114], [5953, -98], [5953, -97], [5953, -97]]], [ [ [6631, 30], [6624, 62], [6509, 131], [6453, 139], [6520, 197], [6560, 161], [6601, 132], [6666, 117], [6715, 125], [6761, 87], [6757, 52], [6808, -13], [6863, -2], [6866, -56], [6825, -66], [6725, 22], [6724, 42], [6631, 30], ], ], [ [ [7250, -790], [7315, -764], [7313, -812], [7342, -826], [7437, -752], [7449, -825], [7297, -867], [7180, -916], [7094, -936], [7076, -889], [6997, -876], [6845, -893], [6778, -888], [6780, -790], [6813, -814], [6809, -762], [6836, -803], [6921, -771], [6955, -832], [7059, -791], [7119, -780], [7144, -796], [7250, -790], ], ], [[[5953, -97], [5936, -73], [5949, -66], [5953, -97], [5953, -97]]], ], }, }, { type: 'Feature', id: 'LT', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.6, 'hc-middle-y': 0.49, 'hc-key': 'lt', 'hc-a2': 'LT', name: 'Lithuania', labelrank: '5', 'country-abbrev': 'Lith.', subregion: 'Northern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'LTU', 'iso-a2': 'LT', 'woe-id': '23424875', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [5326, 4758], [5306, 4834], [5272, 4895], [5254, 4987], [5276, 4994], [5291, 5038], [5404, 5112], [5500, 5110], [5529, 5132], [5570, 5111], [5594, 5133], [5661, 5141], [5729, 5127], [5783, 5137], [5842, 5202], [5891, 5137], [5981, 5144], [5992, 5129], [6081, 5080], [6104, 5054], [6159, 5044], [6157, 4946], [6218, 4942], [6193, 4890], [6147, 4887], [6131, 4831], [6080, 4791], [6092, 4704], [6071, 4634], [6100, 4633], [6118, 4585], [6086, 4576], [6065, 4618], [6026, 4598], [6009, 4557], [5972, 4554], [5971, 4502], [5952, 4504], [5908, 4464], [5875, 4477], [5784, 4444], [5756, 4450], [5735, 4513], [5628, 4561], [5615, 4546], [5595, 4571], [5594, 4700], [5549, 4740], [5472, 4718], [5326, 4758], ], ], [ [ [5268, 4759], [5285, 4824], [5279, 4758], [5279, 4758], [5268, 4759], ], ], ], }, }, { type: 'Feature', id: 'SI', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.38, 'hc-middle-y': 0.62, 'hc-key': 'si', 'hc-a2': 'SI', name: 'Slovenia', labelrank: '6', 'country-abbrev': 'Slo.', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'SVN', 'iso-a2': 'SI', 'woe-id': '23424945', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [4209, 1816], [4208, 1830], [4232, 1848], [4269, 1861], [4203, 1909], [4209, 1955], [4176, 1965], [4209, 2017], [4152, 2046], [4216, 2116], [4358, 2100], [4386, 2084], [4444, 2153], [4485, 2170], [4565, 2165], [4597, 2198], [4673, 2197], [4685, 2247], [4720, 2250], [4777, 2150], [4722, 2143], [4734, 2110], [4614, 2053], [4602, 2023], [4625, 2002], [4624, 1943], [4581, 1934], [4542, 1900], [4570, 1837], [4525, 1818], [4428, 1842], [4403, 1876], [4369, 1822], [4286, 1828], [4271, 1801], [4209, 1816], ], ], }, }, { type: 'Feature', id: 'BA', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.49, 'hc-middle-y': 0.42, 'hc-key': 'ba', 'hc-a2': 'BA', name: 'Bosnia and Herzegovina', labelrank: '5', 'country-abbrev': 'B.H.', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'BIH', 'iso-a2': 'BA', 'woe-id': '23424761', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [5115, 1130], [5093, 1141], [5098, 1143], [5095, 1184], [5062, 1201], [5019, 1256], [5010, 1291], [4976, 1298], [4890, 1365], [4881, 1385], [4775, 1482], [4747, 1571], [4668, 1659], [4662, 1750], [4705, 1771], [4754, 1721], [4781, 1716], [4805, 1774], [4867, 1774], [4893, 1807], [4950, 1773], [4966, 1787], [5030, 1773], [5051, 1788], [5085, 1763], [5120, 1791], [5164, 1799], [5229, 1777], [5259, 1787], [5308, 1729], [5333, 1734], [5363, 1755], [5405, 1749], [5402, 1704], [5369, 1637], [5388, 1571], [5489, 1511], [5411, 1478], [5467, 1428], [5478, 1370], [5448, 1380], [5419, 1354], [5360, 1334], [5401, 1286], [5364, 1294], [5321, 1259], [5320, 1192], [5282, 1179], [5293, 1114], [5315, 1079], [5293, 1053], [5161, 1114], [5115, 1130], ], ], }, }, { type: 'Feature', id: 'MC', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.47, 'hc-middle-y': 0.63, 'hc-key': 'mc', 'hc-a2': 'MC', name: 'Monaco', labelrank: '6', 'country-abbrev': 'Mco.', subregion: 'Western Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'MCO', 'iso-a2': 'MC', 'woe-id': '23424892', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [2937, 1301], [2930, 1294], [2922, 1295], [2931, 1307], [2937, 1301], ], ], }, }, { type: 'Feature', id: 'AL', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.3, 'hc-middle-y': 0.65, 'hc-key': 'al', 'hc-a2': 'AL', name: 'Albania', labelrank: '6', 'country-abbrev': 'Alb.', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'ALB', 'iso-a2': 'AL', 'woe-id': '23424742', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [[[5907, 643], [5905, 642], [5902, 648], [5906, 645], [5907, 643]]], [ [ [5827, 689], [5837, 642], [5854, 641], [5874, 648], [5902, 648], [5899, 643], [5909, 635], [5909, 634], [5900, 609], [5912, 616], [5909, 607], [5928, 589], [5924, 584], [5929, 587], [5934, 546], [5896, 516], [5871, 401], [5801, 361], [5827, 318], [5783, 255], [5744, 264], [5742, 309], [5697, 364], [5606, 400], [5597, 470], [5552, 520], [5567, 589], [5586, 602], [5563, 670], [5575, 704], [5543, 743], [5572, 801], [5568, 869], [5519, 873], [5511, 904], [5511, 941], [5532, 960], [5508, 1011], [5560, 1115], [5593, 1064], [5642, 1094], [5686, 1036], [5749, 1011], [5782, 938], [5778, 915], [5765, 818], [5792, 778], [5782, 752], [5827, 689], ], ], [[[5503, 1000], [5503, 997], [5502, 997], [5503, 1000]]], ], }, }, { type: 'Feature', id: 'CNM', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.66, 'hc-middle-y': 0.61, 'hc-key': 'cnm', 'hc-a2': 'CN', name: 'Cyprus No Mans Area', labelrank: '9', 'country-abbrev': null, subregion: 'Western Asia', 'region-wb': 'Europe & Central Asia', 'iso-a3': '-99', 'iso-a2': null, 'woe-id': '-99', continent: 'Asia', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [9288, -289], [9288, -289], [9291, -290], [9270, -299], [9261, -299], [9262, -296], [9276, -291], [9288, -289], ], ], [ [ [8944, -370], [8947, -367], [8947, -367], [8952, -370], [8956, -361], [8958, -360], [8960, -360], [8955, -373], [8944, -370], ], ], [ [ [8968, -358], [8968, -358], [8973, -358], [9012, -377], [9084, -318], [9132, -299], [9160, -323], [9213, -324], [9213, -324], [9219, -325], [9223, -335], [9162, -352], [9139, -309], [9083, -327], [9008, -383], [8968, -358], ], ], ], }, }, { type: 'Feature', id: 'NC', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.59, 'hc-middle-y': 0.61, 'hc-key': 'nc', 'hc-a2': 'NC', name: 'Northern Cyprus', labelrank: '6', 'country-abbrev': 'N. Cy.', subregion: 'Western Asia', 'region-wb': 'Europe & Central Asia', 'iso-a3': '-99', 'iso-a2': 'NC', 'woe-id': '-90', continent: 'Asia', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [9160, -323], [9132, -299], [9084, -318], [9012, -377], [8973, -358], [9011, -353], [9001, -280], [9126, -260], [9253, -171], [9359, -64], [9360, -79], [9246, -235], [9288, -289], [9276, -291], [9262, -296], [9262, -296], [9233, -318], [9213, -324], [9213, -324], [9160, -323], ], ], [ [ [8947, -367], [8951, -364], [8956, -361], [8952, -370], [8947, -367], ], ], ], }, }, { type: 'Feature', id: 'RS', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.47, 'hc-middle-y': 0.51, 'hc-key': 'rs', 'hc-a2': 'RS', name: 'Republic of Serbia', labelrank: '5', 'country-abbrev': 'Serb.', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'SRB', 'iso-a2': 'RS', 'woe-id': '-90', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [5333, 1734], [5332, 1816], [5399, 1831], [5390, 1853], [5313, 1878], [5308, 1936], [5265, 2001], [5272, 2037], [5302, 2065], [5342, 2061], [5393, 2121], [5468, 2131], [5533, 2124], [5557, 2094], [5657, 2038], [5663, 1963], [5714, 1924], [5826, 1887], [5805, 1838], [5841, 1827], [5814, 1802], [5881, 1761], [5954, 1762], [5997, 1730], [6036, 1801], [6113, 1770], [6059, 1736], [6116, 1666], [6105, 1620], [6067, 1588], [6066, 1533], [6118, 1443], [6229, 1382], [6192, 1283], [6146, 1270], [6144, 1181], [6170, 1136], [6140, 1104], [6119, 1116], [5976, 1056], [5999, 1185], [5913, 1193], [5912, 1226], [5882, 1230], [5837, 1284], [5780, 1298], [5772, 1323], [5728, 1295], [5747, 1275], [5690, 1184], [5685, 1207], [5636, 1220], [5590, 1254], [5522, 1261], [5419, 1354], [5448, 1380], [5478, 1370], [5467, 1428], [5411, 1478], [5489, 1511], [5388, 1571], [5369, 1637], [5402, 1704], [5405, 1749], [5363, 1755], [5333, 1734], ], ], }, }, { type: 'Feature', id: 'RO', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.45, 'hc-middle-y': 0.54, 'hc-key': 'ro', 'hc-a2': 'RO', name: 'Romania', labelrank: '3', 'country-abbrev': 'Rom.', subregion: 'Eastern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'ROU', 'iso-a2': 'RO', 'woe-id': '23424933', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [6059, 1736], [6113, 1770], [6036, 1801], [5997, 1730], [5954, 1762], [5881, 1761], [5814, 1802], [5841, 1827], [5805, 1838], [5826, 1887], [5714, 1924], [5663, 1963], [5657, 2038], [5557, 2094], [5533, 2124], [5575, 2150], [5605, 2141], [5645, 2188], [5703, 2199], [5724, 2302], [5756, 2338], [5767, 2428], [5790, 2458], [5814, 2573], [5856, 2646], [5943, 2693], [5962, 2732], [6000, 2782], [6052, 2762], [6132, 2776], [6223, 2767], [6283, 2792], [6360, 2740], [6400, 2767], [6419, 2808], [6585, 2873], [6596, 2941], [6652, 2968], [6687, 2976], [6729, 2959], [6775, 2912], [6821, 2832], [6884, 2789], [6953, 2710], [7003, 2689], [7070, 2596], [7089, 2531], [7089, 2403], [7132, 2304], [7114, 2288], [7150, 2258], [7186, 2225], [7282, 2223], [7373, 2312], [7445, 2302], [7457, 2266], [7476, 2165], [7469, 2151], [7380, 2113], [7337, 2172], [7324, 2132], [7352, 2077], [7322, 2035], [7356, 2049], [7322, 1963], [7352, 1873], [7353, 1794], [7278, 1781], [7223, 1793], [7199, 1830], [7163, 1808], [7144, 1825], [7089, 1809], [7055, 1833], [7006, 1837], [6838, 1749], [6780, 1652], [6698, 1611], [6610, 1620], [6512, 1615], [6444, 1587], [6264, 1592], [6183, 1561], [6168, 1606], [6193, 1640], [6116, 1666], [6115, 1666], [6059, 1736], ], ], }, }, { type: 'Feature', id: 'ME', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.29, 'hc-middle-y': 0.67, 'hc-key': 'me', 'hc-a2': 'ME', name: 'Montenegro', labelrank: '6', 'country-abbrev': 'Mont.', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'MNE', 'iso-a2': 'ME', 'woe-id': '20069817', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [5642, 1094], [5593, 1064], [5560, 1115], [5508, 1011], [5505, 1006], [5503, 1000], [5502, 997], [5456, 988], [5511, 941], [5511, 904], [5519, 873], [5473, 892], [5463, 922], [5396, 986], [5377, 978], [5344, 1027], [5311, 1013], [5298, 1030], [5293, 1053], [5315, 1079], [5293, 1114], [5282, 1179], [5320, 1192], [5321, 1259], [5364, 1294], [5401, 1286], [5360, 1334], [5419, 1354], [5522, 1261], [5590, 1254], [5636, 1220], [5685, 1207], [5690, 1184], [5626, 1144], [5642, 1094], ], ], }, }, { type: 'Feature', id: 'LI', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.62, 'hc-middle-y': 0.51, 'hc-key': 'li', 'hc-a2': 'LI', name: 'Liechtenstein', labelrank: '6', 'country-abbrev': 'Liech.', subregion: 'Western Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'LIE', 'iso-a2': 'LI', 'woe-id': '23424879', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [3383, 2312], [3402, 2266], [3395, 2252], [3374, 2254], [3383, 2312], ], ], }, }, { type: 'Feature', id: 'AT', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.68, 'hc-middle-y': 0.5, 'hc-key': 'at', 'hc-a2': 'AT', name: 'Austria', labelrank: '4', 'country-abbrev': 'Aust.', subregion: 'Western Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'AUT', 'iso-a2': 'AT', 'woe-id': '23424750', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [3395, 2252], [3402, 2266], [3383, 2312], [3409, 2354], [3390, 2383], [3413, 2380], [3422, 2394], [3467, 2387], [3538, 2323], [3566, 2362], [3558, 2401], [3632, 2385], [3670, 2350], [3724, 2353], [3794, 2409], [3900, 2416], [3902, 2446], [3965, 2426], [4016, 2438], [4021, 2406], [4072, 2390], [4066, 2454], [4041, 2456], [4059, 2492], [4008, 2569], [4062, 2613], [4132, 2649], [4151, 2710], [4189, 2693], [4205, 2765], [4257, 2717], [4304, 2710], [4329, 2736], [4376, 2724], [4392, 2779], [4415, 2776], [4422, 2848], [4476, 2844], [4558, 2815], [4583, 2821], [4627, 2791], [4689, 2788], [4702, 2808], [4787, 2794], [4804, 2763], [4792, 2692], [4860, 2595], [4836, 2551], [4854, 2508], [4801, 2493], [4763, 2511], [4726, 2482], [4770, 2475], [4777, 2426], [4737, 2393], [4759, 2293], [4717, 2291], [4685, 2247], [4673, 2197], [4597, 2198], [4565, 2165], [4485, 2170], [4444, 2153], [4386, 2084], [4358, 2100], [4216, 2116], [4122, 2120], [3956, 2154], [3895, 2240], [3913, 2265], [3823, 2232], [3737, 2234], [3694, 2212], [3676, 2170], [3567, 2197], [3550, 2234], [3500, 2191], [3450, 2218], [3449, 2240], [3395, 2252], ], ], }, }, { type: 'Feature', id: 'SK', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.4, 'hc-middle-y': 0.46, 'hc-key': 'sk', 'hc-a2': 'SK', name: 'Slovakia', labelrank: '6', 'country-abbrev': 'Svk.', subregion: 'Eastern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'SVK', 'iso-a2': 'SK', 'woe-id': '23424877', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [4860, 2595], [4792, 2692], [4804, 2763], [4839, 2840], [4910, 2834], [4968, 2872], [5005, 2912], [5019, 2981], [5077, 3047], [5131, 3062], [5160, 3030], [5198, 3039], [5241, 3102], [5283, 3050], [5310, 3051], [5313, 2997], [5371, 2995], [5381, 3035], [5411, 3063], [5481, 3078], [5533, 3055], [5545, 3087], [5585, 3108], [5692, 3104], [5736, 3063], [5841, 3040], [5819, 2970], [5819, 2928], [5793, 2890], [5798, 2837], [5724, 2806], [5656, 2860], [5600, 2830], [5535, 2843], [5479, 2822], [5459, 2748], [5381, 2693], [5328, 2714], [5305, 2677], [5184, 2641], [5168, 2619], [5187, 2581], [5078, 2545], [4999, 2535], [4947, 2553], [4897, 2596], [4860, 2595], ], ], }, }, { type: 'Feature', id: 'HU', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.45, 'hc-middle-y': 0.54, 'hc-key': 'hu', 'hc-a2': 'HU', name: 'Hungary', labelrank: '5', 'country-abbrev': 'Hun.', subregion: 'Eastern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'HUN', 'iso-a2': 'HU', 'woe-id': '23424844', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [4777, 2150], [4720, 2250], [4685, 2247], [4717, 2291], [4759, 2293], [4737, 2393], [4777, 2426], [4770, 2475], [4726, 2482], [4763, 2511], [4801, 2493], [4854, 2508], [4836, 2551], [4860, 2595], [4897, 2596], [4947, 2553], [4999, 2535], [5078, 2545], [5187, 2581], [5168, 2619], [5184, 2641], [5305, 2677], [5328, 2714], [5381, 2693], [5459, 2748], [5479, 2822], [5535, 2843], [5600, 2830], [5656, 2860], [5724, 2806], [5798, 2837], [5824, 2842], [5848, 2799], [5872, 2803], [5901, 2766], [5928, 2776], [5962, 2732], [5943, 2693], [5856, 2646], [5814, 2573], [5790, 2458], [5767, 2428], [5756, 2338], [5724, 2302], [5703, 2199], [5645, 2188], [5605, 2141], [5575, 2150], [5533, 2124], [5468, 2131], [5393, 2121], [5342, 2061], [5302, 2065], [5272, 2037], [5227, 2026], [5180, 1971], [5138, 1979], [5070, 1968], [5008, 2009], [4959, 2009], [4924, 2054], [4877, 2075], [4851, 2116], [4777, 2150], ], ], }, }, { type: 'Feature', id: 'AD', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.48, 'hc-middle-y': 0.52, 'hc-key': 'ad', 'hc-a2': 'AD', name: 'Andorra', labelrank: '6', 'country-abbrev': 'And.', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'AND', 'iso-a2': 'AD', 'woe-id': '23424744', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [1691, 1033], [1645, 1016], [1634, 1067], [1697, 1064], [1691, 1033], ], ], }, }, { type: 'Feature', id: 'LU', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.5, 'hc-middle-y': 0.58, 'hc-key': 'lu', 'hc-a2': 'LU', name: 'Luxembourg', labelrank: '6', 'country-abbrev': 'Lux.', subregion: 'Western Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'LUX', 'iso-a2': 'LU', 'woe-id': '23424881', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [2791, 2962], [2752, 2975], [2719, 2961], [2688, 2991], [2708, 3020], [2680, 3091], [2737, 3172], [2759, 3155], [2774, 3087], [2825, 3058], [2791, 2962], ], ], }, }, { type: 'Feature', id: 'CH', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.51, 'hc-middle-y': 0.49, 'hc-key': 'ch', 'hc-a2': 'CH', name: 'Switzerland', labelrank: '4', 'country-abbrev': 'Switz.', subregion: 'Western Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'CHE', 'iso-a2': 'CH', 'woe-id': '23424957', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [3006, 2412], [3174, 2408], [3164, 2431], [3205, 2468], [3264, 2425], [3318, 2430], [3319, 2429], [3321, 2426], [3321, 2426], [3378, 2377], [3390, 2383], [3409, 2354], [3383, 2312], [3374, 2254], [3395, 2252], [3449, 2240], [3450, 2218], [3500, 2191], [3550, 2234], [3567, 2197], [3551, 2141], [3562, 2101], [3495, 2121], [3486, 2071], [3509, 2022], [3486, 2010], [3470, 2049], [3389, 2031], [3365, 2089], [3330, 2087], [3331, 2036], [3272, 1939], [3287, 1913], [3255, 1898], [3243, 1967], [3196, 1984], [3162, 2022], [3166, 2075], [3091, 2025], [3097, 1988], [3039, 1928], [2981, 1950], [2908, 1923], [2876, 1937], [2844, 1995], [2835, 2080], [2852, 2092], [2803, 2112], [2741, 2096], [2720, 2051], [2731, 2035], [2664, 2007], [2704, 2071], [2688, 2089], [2706, 2139], [2768, 2184], [2773, 2237], [2805, 2247], [2897, 2346], [2862, 2351], [2892, 2392], [2964, 2369], [3006, 2412], [3006, 2412], ], ], }, }, { type: 'Feature', id: 'BE', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.53, 'hc-middle-y': 0.37, 'hc-key': 'be', 'hc-a2': 'BE', name: 'Belgium', labelrank: '2', 'country-abbrev': 'Belg.', subregion: 'Western Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'BEL', 'iso-a2': 'BE', 'woe-id': '23424757', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [2759, 3155], [2737, 3172], [2680, 3091], [2708, 3020], [2688, 2991], [2629, 2982], [2536, 3076], [2519, 3074], [2510, 3129], [2529, 3175], [2492, 3162], [2486, 3135], [2443, 3122], [2390, 3138], [2408, 3217], [2377, 3244], [2310, 3245], [2310, 3281], [2244, 3311], [2227, 3382], [2161, 3376], [2129, 3413], [2124, 3485], [2239, 3543], [2280, 3553], [2285, 3515], [2330, 3523], [2380, 3495], [2437, 3537], [2452, 3509], [2444, 3537], [2467, 3530], [2486, 3564], [2511, 3546], [2537, 3566], [2561, 3534], [2581, 3557], [2614, 3492], [2660, 3498], [2723, 3456], [2690, 3344], [2746, 3338], [2778, 3297], [2779, 3261], [2804, 3257], [2809, 3209], [2765, 3182], [2759, 3155], ], ], }, }, { type: 'Feature', id: 'KV', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.89, 'hc-middle-y': 0.48, 'hc-key': 'kv', 'hc-a2': 'KV', name: 'Kosovo', labelrank: '6', 'country-abbrev': 'Kos.', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': '-99', 'iso-a2': 'KV', 'woe-id': '-90', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [5778, 915], [5782, 938], [5749, 1011], [5686, 1036], [5642, 1094], [5626, 1144], [5690, 1184], [5747, 1275], [5728, 1295], [5772, 1323], [5780, 1298], [5837, 1284], [5882, 1230], [5912, 1226], [5913, 1193], [5999, 1185], [5976, 1056], [5945, 1049], [5913, 1002], [5878, 1026], [5813, 977], [5816, 931], [5778, 915], ], ], }, }, { type: 'Feature', id: 'PL', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.56, 'hc-middle-y': 0.5, 'hc-key': 'pl', 'hc-a2': 'PL', name: 'Poland', labelrank: '3', 'country-abbrev': 'Pol.', subregion: 'Eastern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'POL', 'iso-a2': 'PL', 'woe-id': '23424923', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [ [ [5615, 4546], [5628, 4561], [5735, 4513], [5756, 4450], [5791, 4360], [5868, 4241], [5895, 4126], [5890, 4104], [5817, 4042], [5789, 3973], [5882, 3930], [5894, 3906], [5886, 3834], [5907, 3769], [5922, 3719], [5976, 3670], [5989, 3635], [6038, 3595], [6010, 3586], [6051, 3510], [6035, 3467], [5994, 3455], [5900, 3310], [5837, 3173], [5861, 3130], [5867, 3073], [5904, 3029], [5841, 3040], [5736, 3063], [5692, 3104], [5585, 3108], [5545, 3087], [5533, 3055], [5481, 3078], [5411, 3063], [5381, 3035], [5371, 2995], [5313, 2997], [5310, 3051], [5283, 3050], [5241, 3102], [5198, 3039], [5160, 3030], [5131, 3062], [5114, 3108], [5088, 3112], [5067, 3169], [4967, 3187], [4931, 3173], [4880, 3222], [4880, 3250], [4830, 3248], [4797, 3277], [4739, 3283], [4762, 3230], [4718, 3186], [4643, 3260], [4615, 3272], [4648, 3301], [4636, 3338], [4591, 3335], [4470, 3369], [4453, 3363], [4435, 3411], [4378, 3418], [4385, 3380], [4354, 3378], [4385, 3489], [4367, 3549], [4327, 3566], [4322, 3611], [4295, 3647], [4322, 3727], [4307, 3777], [4276, 3824], [4292, 3870], [4196, 3943], [4198, 3974], [4231, 4002], [4238, 4067], [4206, 4188], [4249, 4181], [4266, 4236], [4192, 4239], [4187, 4247], [4193, 4256], [4220, 4252], [4288, 4290], [4511, 4381], [4576, 4464], [4637, 4484], [4699, 4531], [4787, 4562], [4858, 4575], [4910, 4497], [4917, 4464], [4989, 4447], [5048, 4464], [5048, 4464], [5027, 4450], [5056, 4436], [5111, 4489], [5604, 4540], [5615, 4546], ], ], [ [ [5086, 4492], [5088, 4491], [5060, 4472], [5060, 4472], [5086, 4492], ], ], [ [ [5048, 4464], [5060, 4472], [5060, 4472], [5050, 4465], [5048, 4464], [5048, 4464], ], ], ], }, }, { type: 'Feature', id: 'MK', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.49, 'hc-middle-y': 0.49, 'hc-key': 'mk', 'hc-a2': 'MK', name: 'Macedonia', labelrank: '6', 'country-abbrev': 'Mkd.', subregion: 'Southern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'MKD', 'iso-a2': 'MK', 'woe-id': '23424890', continent: 'Europe', }, geometry: { type: 'MultiPolygon', coordinates: [ [[[5909, 635], [5910, 635], [5909, 634], [5909, 635]]], [ [ [6140, 1104], [6189, 1058], [6262, 1037], [6313, 957], [6303, 916], [6313, 844], [6278, 832], [6280, 788], [6216, 761], [6162, 765], [6105, 737], [6044, 658], [5999, 661], [5943, 639], [5902, 680], [5907, 643], [5906, 645], [5902, 648], [5902, 648], [5874, 648], [5854, 641], [5866, 703], [5827, 689], [5782, 752], [5792, 778], [5765, 818], [5778, 915], [5816, 931], [5813, 977], [5878, 1026], [5913, 1002], [5945, 1049], [5976, 1056], [6119, 1116], [6140, 1104], ], ], ], }, }, { type: 'Feature', id: 'LV', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.68, 'hc-middle-y': 0.47, 'hc-key': 'lv', 'hc-a2': 'LV', name: 'Latvia', labelrank: '5', 'country-abbrev': 'Lat.', subregion: 'Northern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'LVA', 'iso-a2': 'LV', 'woe-id': '23424874', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [6371, 5238], [6337, 5217], [6307, 5156], [6308, 5118], [6209, 5104], [6192, 5064], [6159, 5044], [6104, 5054], [6081, 5080], [5992, 5129], [5981, 5144], [5891, 5137], [5842, 5202], [5783, 5137], [5729, 5127], [5661, 5141], [5594, 5133], [5570, 5111], [5529, 5132], [5500, 5110], [5404, 5112], [5291, 5038], [5276, 4994], [5254, 4987], [5233, 5037], [5222, 5208], [5266, 5271], [5258, 5343], [5288, 5426], [5332, 5447], [5414, 5508], [5433, 5460], [5517, 5412], [5549, 5343], [5626, 5314], [5663, 5335], [5716, 5410], [5714, 5443], [5669, 5588], [5699, 5617], [5801, 5677], [5861, 5642], [5926, 5637], [5934, 5617], [6022, 5561], [6071, 5605], [6151, 5595], [6177, 5602], [6181, 5574], [6241, 5547], [6248, 5510], [6240, 5414], [6262, 5427], [6284, 5395], [6340, 5347], [6371, 5279], [6371, 5238], ], ], }, }, { type: 'Feature', id: 'BY', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.48, 'hc-middle-y': 0.57, 'hc-key': 'by', 'hc-a2': 'BY', name: 'Belarus', labelrank: '4', 'country-abbrev': 'Bela.', subregion: 'Eastern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'BLR', 'iso-a2': 'BY', 'woe-id': '23424765', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [6159, 5044], [6192, 5064], [6209, 5104], [6308, 5118], [6307, 5156], [6337, 5217], [6371, 5238], [6400, 5217], [6449, 5241], [6489, 5207], [6517, 5241], [6576, 5237], [6584, 5189], [6610, 5166], [6663, 5224], [6715, 5246], [6759, 5240], [6818, 5198], [6840, 5206], [6861, 5155], [6852, 5115], [6907, 5053], [6884, 5017], [6889, 4976], [6966, 4950], [6960, 4909], [6987, 4904], [7024, 4849], [7118, 4826], [7129, 4751], [7183, 4772], [7254, 4763], [7266, 4719], [7320, 4704], [7290, 4620], [7246, 4572], [7180, 4585], [7126, 4570], [7114, 4511], [7171, 4478], [7227, 4334], [7278, 4286], [7228, 4275], [7196, 4244], [7144, 4237], [7114, 4151], [7106, 4084], [7149, 4017], [7140, 3984], [7103, 3994], [7053, 4033], [7005, 4004], [6961, 4007], [6918, 3960], [6865, 4022], [6825, 3992], [6813, 3942], [6780, 3978], [6737, 3959], [6704, 3988], [6687, 3955], [6639, 3956], [6634, 3914], [6616, 3948], [6542, 3930], [6519, 3969], [6462, 3957], [6378, 3967], [6262, 3963], [6159, 3947], [6082, 3911], [6025, 3898], [6008, 3848], [5970, 3801], [5926, 3810], [5907, 3769], [5886, 3834], [5894, 3906], [5882, 3930], [5789, 3973], [5817, 4042], [5890, 4104], [5895, 4126], [5868, 4241], [5791, 4360], [5756, 4450], [5784, 4444], [5875, 4477], [5908, 4464], [5952, 4504], [5971, 4502], [5972, 4554], [6009, 4557], [6026, 4598], [6065, 4618], [6086, 4576], [6118, 4585], [6100, 4633], [6071, 4634], [6092, 4704], [6080, 4791], [6131, 4831], [6147, 4887], [6193, 4890], [6218, 4942], [6157, 4946], [6159, 5044], ], ], }, }, { type: 'Feature', id: 'IS', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.59, 'hc-middle-y': 0.68, 'hc-key': 'is', 'hc-a2': 'IS', name: 'Iceland', labelrank: '3', 'country-abbrev': 'Iceland', subregion: 'Northern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'ISL', 'iso-a2': 'IS', 'woe-id': '23424845', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [23, 7765], [-31, 7764], [-42, 7780], [-86, 7762], [-64, 7754], [-101, 7722], [-209, 7727], [-271, 7767], [-318, 7818], [-367, 7843], [-388, 7915], [-443, 7984], [-435, 8008], [-470, 7988], [-517, 8017], [-554, 8023], [-582, 8046], [-631, 8058], [-594, 8126], [-590, 8089], [-546, 8080], [-466, 8107], [-487, 8122], [-442, 8153], [-483, 8140], [-497, 8153], [-458, 8196], [-397, 8218], [-488, 8200], [-493, 8230], [-466, 8281], [-602, 8368], [-616, 8355], [-649, 8375], [-644, 8415], [-596, 8393], [-542, 8384], [-532, 8401], [-506, 8378], [-474, 8390], [-473, 8368], [-433, 8366], [-370, 8331], [-345, 8373], [-387, 8362], [-439, 8405], [-423, 8419], [-332, 8436], [-332, 8465], [-371, 8459], [-387, 8509], [-413, 8504], [-455, 8548], [-556, 8542], [-556, 8561], [-613, 8605], [-567, 8624], [-538, 8578], [-544, 8617], [-519, 8656], [-469, 8575], [-488, 8630], [-478, 8675], [-451, 8648], [-466, 8697], [-455, 8712], [-432, 8685], [-436, 8718], [-402, 8730], [-378, 8700], [-381, 8676], [-344, 8653], [-330, 8618], [-337, 8579], [-309, 8641], [-344, 8686], [-333, 8728], [-353, 8755], [-336, 8773], [-272, 8752], [-251, 8712], [-259, 8681], [-233, 8670], [-219, 8634], [-229, 8605], [-208, 8600], [-197, 8559], [-209, 8522], [-269, 8453], [-246, 8455], [-266, 8427], [-254, 8402], [-265, 8355], [-201, 8434], [-164, 8447], [-167, 8384], [-110, 8440], [-96, 8526], [-87, 8540], [-45, 8536], [-48, 8465], [-33, 8447], [-39, 8415], [-19, 8396], [-2, 8460], [31, 8489], [61, 8471], [71, 8495], [101, 8497], [121, 8449], [109, 8419], [128, 8404], [123, 8338], [146, 8358], [140, 8395], [160, 8464], [199, 8439], [214, 8374], [237, 8373], [282, 8419], [307, 8391], [363, 8386], [381, 8410], [391, 8477], [452, 8463], [449, 8428], [472, 8410], [453, 8383], [483, 8328], [504, 8358], [527, 8353], [569, 8373], [592, 8356], [537, 8346], [535, 8321], [502, 8309], [508, 8287], [554, 8273], [551, 8240], [502, 8190], [566, 8182], [553, 8170], [604, 8087], [624, 8078], [583, 8028], [604, 8005], [589, 7946], [569, 7931], [532, 7974], [550, 7914], [516, 7902], [505, 7876], [444, 7877], [405, 7807], [384, 7815], [347, 7800], [289, 7807], [204, 7798], [142, 7765], [77, 7752], [64, 7775], [45, 7750], [23, 7765], ], ], }, }, { type: 'Feature', id: 'MD', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.47, 'hc-middle-y': 0.3, 'hc-key': 'md', 'hc-a2': 'MD', name: 'Moldova', labelrank: '6', 'country-abbrev': 'Mda.', subregion: 'Eastern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'MDA', 'iso-a2': 'MD', 'woe-id': '23424885', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [7150, 2258], [7114, 2288], [7132, 2304], [7089, 2403], [7089, 2531], [7070, 2596], [7003, 2689], [6953, 2710], [6884, 2789], [6821, 2832], [6775, 2912], [6729, 2959], [6687, 2976], [6652, 2968], [6685, 3015], [6749, 3021], [6803, 3068], [6850, 3073], [6926, 3031], [6981, 3041], [7015, 3026], [7070, 3029], [7112, 2987], [7141, 3008], [7170, 2984], [7174, 2884], [7248, 2829], [7273, 2849], [7303, 2774], [7302, 2743], [7384, 2725], [7404, 2644], [7448, 2613], [7405, 2591], [7369, 2620], [7355, 2583], [7319, 2610], [7279, 2560], [7258, 2609], [7222, 2574], [7235, 2519], [7256, 2502], [7259, 2448], [7223, 2426], [7228, 2391], [7190, 2327], [7203, 2283], [7150, 2258], ], ], }, }, { type: 'Feature', id: 'CZ', properties: { 'hc-group': 'admin0', 'hc-middle-x': 0.39, 'hc-middle-y': 0.51, 'hc-key': 'cz', 'hc-a2': 'CZ', name: 'Czech Republic', labelrank: '5', 'country-abbrev': 'Cz. Rep.', subregion: 'Eastern Europe', 'region-wb': 'Europe & Central Asia', 'iso-a3': 'CZE', 'iso-a2': 'CZ', 'woe-id': '23424810', continent: 'Europe', }, geometry: { type: 'Polygon', coordinates: [ [ [5131, 3062], [5077, 3047], [5019, 2981], [5005, 2912], [4968, 2872], [4910, 2834], [4839, 2840], [4804, 2763], [4787, 2794], [4702, 2808], [4689, 2788], [4627, 2791], [4583, 2821], [4558, 2815], [4476, 2844], [4422, 2848], [4415, 2776], [4392, 2779], [4376, 2724], [4329, 2736], [4304, 2710], [4257, 2717], [4205, 2765], [4163, 2815], [4139, 2811], [4079, 2860], [4043, 2910], [4004, 2918], [3923, 3034], [3947, 3082], [3894, 3121], [3860, 3197], [3900, 3155], [3940, 3221], [4030, 3255], [4070, 3282], [4109, 3288], [4136, 3323], [4269, 3379], [4256, 3423], [4293, 3419], [4318, 3372], [4354, 3378], [4385, 3380], [4378, 3418], [4435, 3411], [4453, 3363], [4470, 3369], [4591, 3335], [4636, 3338], [4648, 3301], [4615, 3272], [4643, 3260], [4718, 3186], [4762, 3230], [4739, 3283], [4797, 3277], [4830, 3248], [4880, 3250], [4880, 3222], [4931, 3173], [4967, 3187], [5067, 3169], [5088, 3112], [5114, 3108], [5131, 3062], ], ], }, }, ], } ```
/content/code_sandbox/src/pages/chart/highCharts/mapdata/europe.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
70,049
```javascript /* * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * * path_to_url * * Unless required by applicable law or agreed to in writing, * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * specific language governing permissions and limitations */ (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['exports', 'echarts'], factory); } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') { // CommonJS factory(exports, require('echarts')); } else { // Browser globals factory({}, root.echarts); } }(this, function (exports, echarts) { var log = function (msg) { if (typeof console !== 'undefined') { console && console.error && console.error(msg); } } if (!echarts) { log('ECharts is not Loaded'); return; } if (!echarts.registerMap) { log('ECharts Map is not loaded') return; } echarts.registerMap('china', {"type":"FeatureCollection","features":[{"type":"Feature","id":"710000","properties":{"id":"710000","cp":[121.509062,24.044332],"name":"","childNum":6},"geometry":{"type":"MultiPolygon","coordinates":[["@@"],["@@\\sNnxXZGMcl^G@W"],["@@\\p|WoYGIj@"],["@@@V^RqBbAnTXeRzLI"],["@@EEkWq@"],["@@fced"],["@@aI"],["@@h"]],"encodeOffsets":[[[122886,24033]],[[123335,22980]],[[122375,24193]],[[122518,24117]],[[124427,22618]],[[124862,26043]],[[126259,26318]],[[127671,26683]]]}},{"type":"Feature","id":"130000","properties":{"id":"130000","cp":[114.502461,38.045474],"name":"","childNum":3},"geometry":{"type":"MultiPolygon","coordinates":[["@@o~Z]rc_Gs`jnsNX_M`nUKsyrucJe"],["@@U`Tsm"],["@@odeVDJjJ|dzFt~KIv|r}onb}`Rnd^lnl]}Li`^pDc`ZqvFNTHOIbBpXRnndOOQgFo|gSWbosx|hYhgfmnTSpdYUjlp|kfwXjz~qbT@|oMzvZrVwfTqs{SrlNdiGJlr}~KWzRlmL@|q]SvKcwpnWlkT}J~TdpddBVtEP@~k\\rW_FDjYrbG{|rb|H`pkvGpuARhgTS]yEPxXOgIwB|NmHDyIuDdFOhOi`ww^kHtFu{Z}@ULgOw^VbsmA]]wRRlub{DuTQfVna@@yIKfxV@tJ]eRfe|rHA|h~llTbobbx^zSjAyhk`PEFYrqiWi^[|O@xO\\ta\\tt{XjRb^fK[dYfTyuUSy@OiaVcaxXcWUQwsqEH|YQoyMoPmWOv{vISphpjdeQjX[n`Yp@UcM`RKhEbplNutEtqnsgAioHqCXhfgu~WPG^}GC^ziMMTrMc|O_|morDkO\\mJfl@catR^juKUFyVqVadBqPBmamVd^KKonYgXhqaLdupKkhq}Hy]qgo^ZEi`{nOlWhgF[kO_iUtGyl}M}jpEC~FtoQiHkk{m"]],"encodeOffsets":[[[119712,40641]],[[121616,39981]],[[116462,37237]]]}},{"type":"Feature","id":"140000","properties":{"id":"140000","cp":[111.849248,36.857014],"name":"","childNum":1},"geometry":{"type":"Polygon","coordinates":["@@Sra}yWixelokiVZcoTSmnehZg{gtwpXaThp{EhRPPmcmQWoAaJPGSMEruY_dCo]_jK~^kmk]cmQ~_apm~qu{JLs}EycI{IiCfUcp]vD@SMwuYYDbch]nkoQdaM~eDtT@@ZcW|WqOJmlvOIqVD[mI~cehi]~qXen}v[]_`Iobs^}tpW|Fsxd{v|LLV`_bS^|dzY|dzpZbK}tPYznvXnzUdJNMXZ_tldI{NehXnYGRDj|CKqfi~OQ@BTltXh|Mz"],"encodeOffsets":[[116874,41716]]}},{"type":"Feature","id":"150000","properties":{"id":"150000","cp":[111.670801,41.818311],"name":"","childNum":2},"geometry":{"type":"MultiPolygon","coordinates":[["@@PqFB|SC|kHdisPE^Ppy_YtShQaHwsOnsiqjUSi]WgWAR_sgnUIm]jvVeuhwqAaW_jjioQRt@r[l^GOUOBXkk|e]olkVqtajgU^RLnXBz^~wfvypVMEyxp]vvn@V~vwtjyDXxGQuv_iaBwwD{tmQ{EJKP@sCT}wyg}T[kSBXHtSa[P]kGQMq}E\\@gQuFTJ]|mvYua^WoazotCLimHTdwsRg}QA[{duQAMxVvMOmlct[w_jbS_QZ_lwgOie`YYLqI[uTsb[b[fcnC[Qm^mJVmL[{_F{A}WuahB{TQqIZYc|MLeVUK_QWk_ZX\\uUlGTDOrdz]]}UTxgckfWgi\\HkE{etcGahUiiWscCk]w|a}wVaGnM{AJxhPwWOFz^TShQgvBHoul_oGa{q{|HaqZiCE`Xq[l}@OFUsAccocS}IS~lkXmodxuL^T{r@KnkQyXL~}kqIHjoqTt|rSex[eMyupN~yN{gWs_SA@RP}jerLD{iCsKCGS|Xgp{X{ZyohA}fd_YHoMQq|`XxcQstF^it[hAil|yY|DoG\\TrLguYRO\\^bGVg^ujjk@]lVnqYNyNqDYyosNuxZ}F~UfdIx\\GzOpqy@q@IBzsZdzzCDf@KtVAdX{uUhWekfSHKOCQmJmnN~Gj`YQoDg^`t^xRrHxD|wFjwd_djTW|tqUB~FCUpNOKOjjYp{S\\TVDKtKcFlUFMOi}EFxQErWrh\\talDJ|[PllGPW^H]prRn|orwLVnIujkmoncX^Bh`VU}xRj[^xN[~xQ[`HExx^wN|MrdYpoRzNyDs~bcf`Ln|Tcar`[|DxEldHI`\\~Rtf^eMptgjyLVP|VVjpE|c|tKf{FXo\\o}ukX{uUqly[oi{LFLfKoqNwc`uetOjKJqmosqehqsuH{kHRbNu^hMw\\fWluDw\\M[bEn}Vcs"]],"encodeOffsets":[[[129102,52189]]]}},{"type":"Feature","id":"210000","properties":{"id":"210000","cp":[123.429096,41.796767],"name":"","childNum":16},"geometry":{"type":"MultiPolygon","coordinates":[["@@L@@sa"],["@@MnNm"],["@@dc"],["@@eC@b"],["@@fXwkbr`qg"],["@@^jtWQ"],["@@~Y]c"],["@@G`N^_ZM"],["@@iXBY"],["@@YZ"],["@@L_{Epf"],["@@^WqCT\\"],["@@\\[t|_"],["@@m`n_"],["@@x{q_^Giip"],["@@@^BntaU]xPhKV@Y~|EvsL^pGl]xx_fTcPCTVjbgHsddHt`BGJj[hjeXdlwhSVZ^ycPqDMHkvV[WY`XlR`LUVfK{NZdYJRrSA|gbvX~B|E`\\|KUnnI]nR\\Dmbaba\\atSv\\JKrZ_ZfjhPkx`YRIjJcVf~sCNEhmsHyS\\\\RZkISfq[^\\PMupzExanyoluqeW^L}rkqWPUPJooU}[@XDXmGUC{^cjk[qLcuxzZfBWYveCW{^q^sOtCGDr@wKVi}xi]{cOWYa_HoqrLys[OSOMisZFCPq{[Pg}\\ghOk^FMoEqqZFohP{~TlNY{Ps{VUewkVJJmdhcffdF~ed`sxEdQd^~H\\LKpVezNPRJSha[ghwmBhI|VV|p]NBL`bKVpoNZKxpw|EMnzEQIZZNBFmWtZuD|lnPmadaCLkQaOQyA"]],"encodeOffsets":[[[123686,41445]],[[126019,40435]],[[124393,40128]],[[126117,39963]],[[125322,40140]],[[126686,40700]],[[126041,40374]],[[125584,40168]],[[125453,40165]],[[125362,40214]],[[125280,40291]],[[125774,39997]],[[125976,40496]],[[125822,39993]],[[125509,40217]],[[122731,40949]]]}},{"type":"Feature","id":"220000","properties":{"id":"220000","cp":[125.3245,43.886841],"name":"","childNum":1},"geometry":{"type":"Polygon","coordinates":["@@pPClFbbzwBGZilYSgk^SqdRS\\cZiCuXoR}M^oR}oUFuuXHlEmTDufXXAeyYwdvK\\rlid]|DVHWnCW@\\~VppIOVOrXql~K]XrfkvzpmbwyFovNO[_\\erRJYlQ[YTGztngFkMGia`\\xsdkNnuNUuP@vRY\\G~RhQxtcSGnjKDspybXp]vbZu{n^ISEvRh@[~FNrRHl^Ovxs]TsGWATJx~StD@jlWvzZCHAxiukdGgetqmcOzycE}|cZku[oxGikfeT@SUwpiFM^`@vefhePtOlUgzU`l}Uv_i^iB~Egc|DC_mrBxMdYxDVgcw\\YlOvLjM_aW`zM\\swqSAqkRwx^k\\]nr}hM{yMzysnVGXio`Ud\\imBDEhLG{WaYRj}ccjoUb{h{KGslyi`HAe^GK}i\\c]vZm|[M}T`mFKbXQHof{]eptGYnVY^ydkZWWUa~USbwGiW^qFuNEwUtWPuqEzwAVXRQ`GMehccdW_Y\\~GmBuT_LqT^rme\\PpZZbyuybQef]UhDCmvaNSkCwncfv~YG"],"encodeOffsets":[[130196,42528]]}},{"type":"Feature","id":"230000","properties":{"id":"230000","cp":[128.642464,46.756967],"name":"","childNum":2},"geometry":{"type":"MultiPolygon","coordinates":[["@@UNHL|g|apVidd~iQZXb|HKFgCAnjc[V_pjWHUmtyzzNN|g~mq^[lw]xQlrBTxr[tN_yX`biNKuPkZ[xdhUCwZcNAwqnD`{ChdF}Aj]j`Vu~_kVyhVkPsOfgef@u_cNEojVxT@SefjlwH\\pvlYd{F~dyzPndsrhfHcvlwjFGDYyuXikqOLI|FRns|CzxAbfudTrFWAm|sFN}U@muu^owFzNUzouxe]}AyWmKQ]ifX|sZt|Ulk^p{fllWAPVPH]k\\@qsQpRiji`bXrBgxfvuUi^v~JmVpVWrnPBXhX^TjVrijtmtPGxbgRsT`ZozO]FOvpcGsxDR{AEOrx|bWm~DVjNNGxCSt}]SmtuNgTu}BMaQGlG|tvgrrfptnrILisPf_vdxMprLeKVY]I]Kj|p\\kznV|vWlrxm~lEQjOSyQv`cwZS]BzeeOSfmPzmgsJqvUOn_@P}[@g}gWXusNAeLydlVpQsYHe`rFWxkdv|I|NqReUBQ}Lk@unTcf^XmHWxJw_^WroK~CfNwXnexLlOACGYDJg_@A@wqCNKQ[gOWuZJuEWK_d_}}vyuU@grDgCdMFYxwCGR{]L{qqB|c}F}RspgQNqRwnKSeYR@{SJ}D]grjqWham~S]"]],"encodeOffsets":[[[134456,44547]]]}},{"type":"Feature","id":"320000","properties":{"id":"320000","cp":[119.767413,33.041544],"name":"","childNum":1},"geometry":{"type":"Polygon","coordinates":["@@cPi`ZRu\\]~Y`^phbnaTbe{ZNpHr|^mjhSEb\\afv`sz^lkljtgDX|iZB}GLcjayBFC^ctsH]j{sHMQnDDajgiDbPufjDk`dPOhwGPobrYaH]rlwr_{DB_duk|FCyr{XFyekBMvpm`r@hgxnlOtdJlVJqvnO^JZQ}m]Dq}R^ItyQMNtRLhs}OGZzA\\jFOHYJvHNianFQlNMBNtpdfqmQbuJulwhrYxcitjKOCoy`VTa_]^]afYJmY`ZQafusN_k}m[DRLiXyNiNodHcs}~wbCtOPrE^ogIKphM`o"],"encodeOffsets":[[121740,32276]]}},{"type":"Feature","id":"330000","properties":{"id":"330000","cp":[120.153576,29.287459],"name":"","childNum":45},"geometry":{"type":"MultiPolygon","coordinates":[["@@E^dQ]K"],["@@jX^j"],["@@sfbU"],["@@qP\\xz[ck"],["@@RFX}[s_"],["@@Cb\\}"],["@@e|v\\la{u"],["@@v~u}"],["@@QxF}"],["@@nvso"],["@@rSkUEj"],["@@biZP"],["@@p[}INf"],["@@"],["@@dnb"],["@@rSBnR"],["@@g~h}"],["@@FlEk"],["@@OdPc"],["@@v[u\\"],["@@FjL~wyoo~sL\\"],["@@eaN"],["@@\\nq]L\\Q"],["@@A["],["@@Kxv"],["@@@hlIk]"],["@@pW{o||j"],["@@Md|_mC"],["@@XylDXtH"],["@@hl[LykAvyfw^E"],["@@fpMusR"],["@@_ma~LZ"],["@@iMxZ"],["@@ZcYd"],["@@Z~dOSo|AqZv"],["@@@`ENv"],["@@|TY{"],["@@@n@m"],["@@XWkCT\\"],["@@wZRkWO"],["@@XGr\\Xq{"],["@@TGLHmUC"],["@@ax~}dtGcpMjMzjWKQ__BipZgfNrq]NHyLBHqihtv_[mYLQmdMgjcKBco\\xKdg[~xuKsc\\bfSkZB{aMfzfgne@S\\ChiqiAuA_WO\\lttCt`PZuXBsyekOHuXB]\\FpkWt|@Lr~WIZWx`prOgtZ}]FKwsPlU[}Rvn`hq\\nQRWb_rtFIkPJJTC@PzPChl~nmfimntuZjLEFixIhhst"],["@@o\\VzRZ}y"],["@@@mGIan[jfLGr"]],"encodeOffsets":[[[125592,31553]],[[125785,31436]],[[125729,31431]],[[125513,31380]],[[125223,30438]],[[125115,30114]],[[124815,29155]],[[124419,28746]],[[124095,28635]],[[124005,28609]],[[125000,30713]],[[125111,30698]],[[125078,30682]],[[125150,30684]],[[124014,28103]],[[125008,31331]],[[125411,31468]],[[125329,31479]],[[125626,30916]],[[125417,30956]],[[125254,30976]],[[125199,30997]],[[125095,31058]],[[125083,30915]],[[124885,31015]],[[125218,30798]],[[124867,30838]],[[124755,30788]],[[124802,30809]],[[125267,30657]],[[125218,30578]],[[125200,30562]],[[124968,30474]],[[125167,30396]],[[124955,29879]],[[124714,29781]],[[124762,29462]],[[124325,28754]],[[123990,28459]],[[125366,31477]],[[125115,30363]],[[125369,31139]],[[122495,31878]],[[125329,30690]],[[125192,30787]]]}},{"type":"Feature","id":"340000","properties":{"id":"340000","cp":[117.283042,31.26119],"name":"","childNum":3},"geometry":{"type":"MultiPolygon","coordinates":[["@@^iuLX^"],["@@eEhl"],["@@ZmkwhgBqzgthEz|WzqDEl{vcA`C`|qxkq^GbZqpaOHxgPcOl_iCveaOjChibCCmRVA|t^iGtsd]DEzAbidK~HAYj{WChsikkly]_teu[bFaTign{]GqoMY|faSNIm_ma]upZ_{Cgr[_YjOd[I[Q_ngLmvBJhpcO]i]jtsggJwjEFKiYvsmnjemn}kgDOyO@DSIIOjNTtNyrqsWFXmwRIfoGuyH{AFnuPzVd^doG{Sx}KOEds[^Xrxv`KtCvlofzNY~L_|]Flg`benpUh~_rs~c]|rc~`{{iJjz`T]u}fQl{skloNdjzDvoQHIrbtH~BmlRV_TLnHDLLlalK\\RvDcJbt[D@hh~ktz@dbYhZvHr\\JuxAT|dmO[GlpSJLvcPmlwKhgAOmK"]],"encodeOffsets":[[[121722,32278]],[[119475,30423]],[[119168,35472]]]}},{"type":"Feature","id":"350000","properties":{"id":"350000","cp":[118.306239,26.075302],"name":"","childNum":18},"geometry":{"type":"MultiPolygon","coordinates":[["@@zht]"],["@@aj^~GO"],["@@edC}}i"],["@@@vPGsQ"],["@@sBzddW]Q"],["@@SQ{"],["@@NVucW"],["@@qptBAq"],["@@[mu"],["@@Q\\pD]_"],["@@jSwUadpF"],["@@eX~"],["@@AjvFso"],["@@fT_\\v|bajZy"],["@@IjJi"],["@@wJIxAoNe{M"],["@@KeZ"],["@@kEh~cwBkUplI~MebNgZacpPhIQqGj|Ug[Kyv@OptEF\\@AV{XBycppohqqLs^qlhHMCeGDzPOkJAueiSWQcSSWACeRRCZ^dlstjDZpuHoLUjjW^@mOwyJyD}fZdazNjDtjZS~cmxOPlSL|AMgIJ`QFh|J@z|UEttr]MHtAkvsq^abvdfSDZ^xPsrvjJdAdxqAZRMnZYXJyqK@{sXloEY^AvWGPlzftAvWYO_sDss[kPX`BBvjvjx[L[FV`Ip}ccZEoPB@DmzBRWl`]ZTcGHm@_kxXCIbqKOAwaLW[GINxDB_JGsE@uPcuMuwBI]zGguck\\_"]],"encodeOffsets":[[[123250,27563]],[[122541,27268]],[[123020,27189]],[[122916,27125]],[[122887,26845]],[[122808,26762]],[[122568,25912]],[[122778,26197]],[[122515,26757]],[[122816,26587]],[[123388,27005]],[[122450,26243]],[[122578,25962]],[[121255,25103]],[[120987,24903]],[[122339,25802]],[[121042,25093]],[[122439,26024]]]}},{"type":"Feature","id":"360000","properties":{"id":"360000","cp":[115.592151,27.676493],"name":"","childNum":1},"geometry":{"type":"Polygon","coordinates":["@@gMD~e^\\^jcZzdalJ`oz@uYHajlZ[|h}^UpOltQ\\a|CnOjtdF`@SvHXDQgWiPrNltZoCCxrpV{f_Y`_eqAot`@oDXfkp|s\\DSfHn^DhyJhxLPwGT~w|TFnc]xe{vOEmB|GvzHpeJQxnWEXtrwF|MibDTm[r_gmQu~V\\OkxtLE^~Pqo_wmNQYBrwcBciIuqtwO]YCTecaub]trluBGsN^qssFV{OER_IJhNBK{TkOPwnd}TYisCiMP|UHvheoFTu\\OSsMiaXh{gu^gm[zkKNl{XSv_JbVkVPMxl~GBKyV~`gsfIle|~udjuTlXf`Jd[\\L"],"encodeOffsets":[[116689,26234]]}},{"type":"Feature","id":"370000","properties":{"id":"370000","cp":[118.000923,36.275807],"name":"","childNum":13},"geometry":{"type":"MultiPolygon","coordinates":[["@@Xjd]{K"],["@@itbFHy"],["@@HlGk"],["@@TGy"],["@@KU"],["@@WdXc"],["@@PtOs"],["@@LnXhc"],["@@ppVu]Or"],["@@cdzAUa"],["@@udRhnCI"],["@@oIpR"],["@@{fzKM]ZFY]phr^Gz~grlLocvKbgrWhmZpL]LcUnbAnrOAcbUrUEzVLBkbnbhBX@LywClZ|ZWyFYMf~C`_RzwfQnnyINo|sTJULVjDzXPnPL_TBBAfaM{M`dmBjjPM|c^dufPkMl]Lb}su^ke{lCMrD]NFsmoHyG{{rnEZGFjWuCuh^KxC`C\\bx_NCBIy\\kxGDyFQKt]CgASedcuYfyMmhUWpSyGwMPqzKGY@Bm@IogZuTMx}CVK{P_Kpqtkk]gTwosMANMRkmEbMjGuIZGPE[iBEuDP~t]GQMsNPzsUg{J]Qr~C^nR~YI]PumrI[xeLvsY~}ugp_SRP~CydwkSsX|t`ATDda^lDY`v\\ebZHROMFWp["]],"encodeOffsets":[[[123806,39303]],[[123821,39266]],[[123742,39256]],[[123702,39203]],[[123649,39066]],[[123847,38933]],[[123580,38839]],[[123894,37288]],[[123043,36624]],[[123344,38676]],[[123522,38857]],[[123628,38858]],[[118260,36742]]]}},{"type":"Feature","id":"410000","properties":{"id":"410000","cp":[113.665412,33.757975],"name":"","childNum":1},"geometry":{"type":"Polygon","coordinates":["@@LPswIxcEPtXx@QGYfa[u_XC]kbcCSBSi_}mYTtxlczD}OQT[hv~}ZlPRnhctknUdKuIoTkH\\PcnS{wBIv[GquYgZca@ys}lgg@C\\asIduCQ[LkbkKKCGKmS`UQnk}AGsqaJGRpCuyiMcplk|tRkev~^S_iyjI||_d}q^{d}tq`g}VomfaoTTjtRyK{ju{t}uRivGJFjyqQFewixGwYpXUykwZXlKzOjchtoDHr|J}JZ_iPq{tZpkQ]MfaQp]uFunADp}AjmcEaoSDIz^KLi[aAzzD|[gfd|`~oDCsUMhTSDruZEvPZW~tEybos~]tapJ_`^\\u~mfWr}^gjdfJ}\\nCWxJRumFdM{\\d\\Y@@SsC}fNcbpRml^gdaCZZxvNT@uC^n|lGlRjspED}Fio~N~zkHVsj`Pl\\EhgXPk|m"],"encodeOffsets":[[118256,37017]]}},{"type":"Feature","id":"420000","properties":{"id":"420000","cp":[113.298572,30.684355],"name":"","childNum":3},"geometry":{"type":"MultiPolygon","coordinates":[["@@AB"],["@@lskt"],["@@}{rap\\{CyyBb\\jKL]JyCTpbdFin~BCoBmvE^vRobeN^RlYo|sOrjY`~II{GqpCgyl{yPLkWxYlzVWoZHxjwfxGNXlEiIHujQ~v|svi|FhQsSiBgE^{nOU}ZMeypukDsL_uwWq]\\tcFxOKwgIzCg]mGeTC[t{loWeC@ps_Bprf_``Z|eioMqowDDYpsYk}s[cYHKQy]wwxXvRHMcdDSyt[b\\}pIyxNo|Hmj~TujCAwRlbT_[InM\\[Tko@AwyaY\\azknewEuoj_UcF[WvPwhuyBF`RqJUw\\i{jEPfQQ{fL~wXgtHdfJd]HJEoUHhwQsXmgve]DmPoCc_hhYrUeD_N~`z]pQv\\rCTnkaodJqPb|JfX_Z}N_^aypCKLMwrIxjb[n^hYV}^LmJ{JVxsxxMIf\\dDv_~DALVH"]],"encodeOffsets":[[[113712,34000]],[[115612,30507]],[[113649,34054]]]}},{"type":"Feature","id":"430000","properties":{"id":"430000","cp":[111.782279,28.09409],"name":"","childNum":3},"geometry":{"type":"MultiPolygon","coordinates":[["@@nFTs"],["@@XrCORTooQy[BEXaGITxpxedGGhM_U}}pczfgAVM"],["@@KACQBUAtOwD]JiSmbylXHHC^AyuuA^{CJ^[~Nsk]~O@VmQ{jnf~oMuZmZcSCQr}Nrmjr@rTWSsdHz^yUiDYlu{hT}mD[OtM`PDiUUBhedyo`pfmjP~kZaZsdwj@w~^kKvNmX\\aqvF@Vw}S@j}prgNJDK|^LXPEXd^~uMRhsRe`ofI\\iymncjGXeOFi|[jVxrIQ_EzANzLU`cxOTuRLdVi`pvF~dgwb[ZbzxB@plS\\[NmJ\\`SiOBxDivS}inG{pMwzJoToTzCcdP[uWMBrnZ`GA\\pXhRCWGuTI}_EgisPDm{b[RskPRoOV~]{g\\YkbiGZv@py_IkbcydYi[]f]C}Nh"]],"encodeOffsets":[[[115640,30489]],[[112543,27312]],[[116690,26230]]]}},{"type":"Feature","id":"440000","properties":{"id":"440000","cp":[113.280637,23.125178],"name":"","childNum":24},"geometry":{"type":"MultiPolygon","coordinates":[["@@QdAua"],["@@lxDLo"],["@@sbhNLo"],["@@"],["@@WltO[["],["@@Kr]S"],["@@eI]y"],["@@I|Mym"],["@@LSY"],["@@nvBui`"],["@@zdJw"],["@@"],["@@ayAJIx@HAmVofuo"],["@@sAZ~Ph"],["@@vmhQ"],["@@HdSjD}waruZqadYM"],["@@el\\LqqU"],["@@~rMo\\"],["@@f^C"],["@@PojXxQXNv"],["@@go[~tly"],["@@EC"],["@@OP"],["@@wg[VMpaDJG{OBABhlmtPyUucdw_bcmGO|KPI@oo}WCUIIEAwXJL]ZMflntFFk^kfg}Faf`vXxlpqiXRD}@ZsxAR~ETtZfHA\\S^wkRzal|ENZTpBh\\uXtKLG|E~rOvd]nVRpMFbwE\\]ID|]CALvBaF~GEYzkahlVI^CxPsBV@RN]_eavSivc}p}kJeth_x_xN@H}wkNO]ly_WI`uTxYkMjJwn\\hv]h|gWbdNTtP[SvrCZaGubo~zCIzxPn@]V}iiVpKGvYoCsitiayYDm}|m[wZxUO}No_qtqwYtUmRC|KR]GAxHO|mdiYYWOetzTE\\}jYdTXgWOjYQi"]],"encodeOffsets":[[[117381,22988]],[[116552,22934]],[[116790,22617]],[[116973,22545]],[[116444,22536]],[[116931,22515]],[[116496,22490]],[[116453,22449]],[[113301,21439]],[[118726,21604]],[[118709,21486]],[[113210,20816]],[[115482,22082]],[[113171,21585]],[[113199,21590]],[[115232,22102]],[[115739,22373]],[[115134,22184]],[[113056,21175]],[[119573,21271]],[[119957,24020]],[[115859,22356]],[[116561,22649]],[[116285,22746]]]}},{"type":"Feature","id":"450000","properties":{"id":"450000","cp":[108.320004,22.82402],"name":"","childNum":2},"geometry":{"type":"MultiPolygon","coordinates":[["@@HTQA"],["@@LDCzGnrt@Sx~O\\Obw^oLfbIlTBFgaYtVSKnMJEoC^Q^fQzlzU@pn]sxtx@~Jbgk{~c`rV\\la`LCbxErOv[H[~|aBsdAzNsbab`hoFVloRzppSNd`aFDC~nS|gvZkCjzV]LFZgPkiniqczYqRDTdnYYvNp}emi||QFovgem^ucgu}F{HKsLSr[AgoSYM{FbkylQx]T[BGeYSsFQ}BwtY@~CQWjrokwWmcihK~he]llEEsm`gK_sUhOnc`yCezYwa[M]X_]UBdyT^dP`KeR[~udltWoRM\\z}zdv{XF_LTmulkiqfA\\DcFycH_hLc}rn`@VLh\\k~i|gtT^xvKVGrAbUuMJVOqXSl_juYBG^EGzEkN[kducdnYpAy{`]TbkvhJ"]],"encodeOffsets":[[[111707,21520]],[[107619,25527]]]}},{"type":"Feature","id":"460000","properties":{"id":"460000","cp":[109.83119,19.031971],"name":"","childNum":1},"geometry":{"type":"Polygon","coordinates":["@@ilXCrkm@E}[gf\\vjNRZzHb_"],"encodeOffsets":[[112750,20508]]}},{"type":"Feature","id":"510000","properties":{"id":"510000","cp":[104.065735,30.659462],"name":"","childNum":2},"geometry":{"type":"MultiPolygon","coordinates":[["@@LqKr"],["@@[V_pGr~SfyimHH}siaX@itTJJJyJ`OhuhIyCjmwZGTiSsOBfNmsPa{M{E^Hj}gYpaeuowHjMpMumni{fk\\oqCwEZKAy{mLwOSimRIrKBSsFe]fY_PRcueCbobdIHgtrnyPtfoaXxlBowz_{WiEGhuFIxfY]EyFw@gRGvW`Jwi]twOa[]`iLLabbTc}hhBH|kSyiata`UhOLk}FosJmlunJWYAetTGbo{wodOxNPHKv]|BoZ``m~n]w@sru~Io[@qgzaKtV[^@sZpwDneQqGCS]xqOQzti{WzWpJXcFLiVjx}\\NGeJAHfu~dEMA|bhGCMAvV_VwQjZeXQuZqDoy`LgdppZIhzfKpIN|z]FURMGMkir}`mnRozwV]lTUIddh\\cGM}ByFVvwxBtCHN~^u^s{TADJZ~Sn|WzPOb|Q@RSdiez]HqkIQs[ExXl|XwnmErtDcQE^l}Qtoqk@Bw^^RsTQPJvz^fLGCdtRtOfDPbMXZ@Q]ds__PrGeZqBhtOtE[h|YZsxUt|ONbgJy^dY]zgCR`zAjCLR@k\\YW}z@Z}o]^N}NPy`SATeVamdUwv\\uYpZmWh{}WwgaCN[gXx[NLUrxR^JknDX{U~ET{PZcjF@pgB{uyhoDWFGDzkPq]eKxP|[xJsNInYmDuEbee_v}}qTRsM@}aawvZw\\Z{^"]],"encodeOffsets":[[[108815,30935]],[[110617,31811]]]}},{"type":"Feature","id":"520000","properties":{"id":"520000","cp":[106.713478,26.578343],"name":"","childNum":3},"geometry":{"type":"MultiPolygon","coordinates":[["@@G\\lYin"],["@@q|mctVS"],["@@hIsNgHHh_ugSJH|styMDetA{b\\}Gu\\PFqwaDK_bmM[q|hlaI}@swtwm^oDyVkyRe]R[DpJiVFImNLbYbWsbpkiTZHq`_JaeKpx]aP[Pw}T@sqmHyBn]KGgT{HdOjXWrLyzALby_qMrohwVw]Kx|`drcbe`ITFrJk_l_p`ohpa^}D^Xy`d[KvJPhhCr^wZLbrzOIlMMretw|mKjSStEtqFTExOKYPVgmVZwVlzTlct{GAge~daSbaKKj_^\\bPx^sxjI_XHuQh@}GNlT`V~Rtb`tFDu[MfqGHyAztMFe|R_GkChZetov`xbDn{E}ZxNEREn[Pv@{~rABEO|UZ~UfJsB`sfv~dqu[[sbzFhW\\Ios}R]DgVGjmpU[rbNu}`niXda_ftQQgRv}]WcFOWK]{LCIMhqo~@i~TUx@Erub[nWuMLl]x}"]],"encodeOffsets":[[[112158,27383]],[[112105,27474]],[[112095,27476]]]}},{"type":"Feature","id":"530000","properties":{"id":"530000","cp":[101.512251,24.740609],"name":"","childNum":1},"geometry":{"type":"Polygon","coordinates":["@@[x}RHYsniEoYa{cgsAwzFjw}Dx}Ul@HFoJnupTFxaXclHAkhWUs}teSt}FdjZT\\D}OU~GDTsdBuo~ttDizXghhmzR`hrOYmfncbw\\zlvWgmBbkeeZkIKueTsVesbadNpyBElGCwepQpCARQ^u_cPhlsPnD^Upv}BPjxSwlfvq|`HvindhemFyqSX_tryvLzcjnklDzM|cF\\\\JDzKEh~CDhMn^ZafypFk]qla~qljNHNQVE^yM{JLoeygJYoohcKz_prCYvRWfYixRU`UuBNDHgaB{NFcv}eGBIfHM~[iwjUKEdWIoXyXj|sRyPr^wTDHrRmfCoxYt@]\\UsLbyhr@\\pJ}vqt@^xm}n_Y_pA^{LuGOMwPpcx|apHSfsBZXKkESrEFskViTLn{uxhNNJkyPaqKYx]DqgOgILu\\_gz]W~C]bogp_o`kl`IqESJ_fadqc_w{L^xUxgpqN`rzaKBzyKXqiWPcG|Gk_^|_zBZocmhhc\\lMFlyHF]HA^it`kT~WlPzUCNVv[jD[}zmsSh{jl}[gKU@m_~qf^f}Qg^\\A_bW[F{Zgm@|kHU}eBPynGILdW}g{aqaZ`"],"encodeOffsets":[[104636,22969]]}},{"type":"Feature","id":"540000","properties":{"id":"540000","cp":[89.132212,30.860361],"name":"","childNum":1},"geometry":{"type":"Polygon","coordinates":["@@hxxVAar_w~uSqOj]QZUDoYM[Lq{VWVi]yhUadcQ~MxccaSyFkuRqQaG{F@KariVgLaftB^MLhJcxwf]Y|QLnad\\od`tQ|C^J{jrl`[t|StPKd]s_vVjsc_|Avw`aaaeSMw@T\\@oxAstKzr^nG{]G~bgVjzlhfOfdB]pjTOtn}dddYteJ}Alc@sAwxUuzE~ANHdg[ccJVSk^b[}]Nmg@Bg}FyLCI[[Ed{NyCkH@TZAZcvZ|WZqgW|ieZYVqdqbcR@cRGeeQ}J[K|ojNEBnwC]gsgg`JrUtui\\sRb|^kfiM@GMnabOk{\\eMfm{GyWQ}IZsZsTvgsN@@wUTTWxqZobs[cvBM|kTzNYnprRS~VVMBae~Auh`@Ba|zDIIK}r_Ma~SKeBnW|U}LJrl`b`Q@sI@wsQ`{TTSYo|[MWi@Mhp]jOplwscbUWavquSMzeo_^gs@~RiB\\qTGPofQPb{ZIhnszCUmLUoj_u^@tMRgghez\\z~PnMBknKLzuLDzmdFzhgFyb@ymNZRJLYVtt_yz]hz{Xc|qfOgHNPKUxx[xvCT^}sd_KgLBon|H@xBpfAzRxFkRz~[HnVucmMxxB^WdkpwIna~JlxhgTC^errdP|W^LaTWRU[QhlLA\\qR"],"encodeOffsets":[[90849,37210]]}},{"type":"Feature","id":"610000","properties":{"id":"610000","cp":[108.948024,34.263161],"name":"","childNum":1},"geometry":{"type":"Polygon","coordinates":["@@pG}jz{kjBg\\s]jEstRdwW_{jGZ`ec~BgzpYTW|fcuF@NXLRM[|Jkc`sYW@KIcVymWumZyO~sLaYocyZ{yc]{Ta`U_KK{u|cdUYOuFYvCqTSNgVtDCp}cEFGUKB}C`wBc[^axwQOENwwo[_KnK]_dg]m\\iakX{|ZKlhLt[@EtZmJMtIw\\{OwLgBrOlyCHEXCgpzb`wIvA|ho@EiYdOS|}F@oAO{tfFWBh^Wx{@FnP|@^bclYi^Mic[vgv@lJsn|u~a]tJpKKf~UbyIn^MThkoh`[tRd_XPrlXiLHqQCbAJ`dYjiZvRVKkjGePZmK[`shodtK{BpJJY@pHVKepWftsAqCkopHuK@oHhxenSrqRbzylEpx~@dK^mSj"],"encodeOffsets":[[110234,38774]]}},{"type":"Feature","id":"620000","properties":{"id":"620000","cp":[103.823557,36.058039],"name":"","childNum":2},"geometry":{"type":"MultiPolygon","coordinates":[["@@VuUv"],["@@Ett~nkh`QdwAbJDgqBqjlISHbjBaZKJO[|ADx}NHUnrkkpYkMJn[aG[rc}aQxOgsPMnUsncZsKvAtYKdnFwJELatf`hwe|bj}GA~W`MCtLqdfObttu`^ZE`[@szCGRRmfwgG@pzJMmhVyuO{LfUGq\\IIoA|Lcspgt_\\LYngRiHLlUuQjYiZ_cIaBDRrGKjWkOqW\\aQ\\sg_plgSN]mJazV}LeLoIs^bztmEacecN\\dNj]jZkda]@O{mE|@Xwg]AXcwQsV_\\wWhRoVDbhx~Zg|XnYoZv[uxcVbnUSfB_TzOM~M]^pY~y@X~Z[l@QKDiByQ_Dhy^Z]cIzahMPs{Vwt[}X\\gsFsPAgpfYHqOdL\\it^cRHmrYBIouuI]vSQ{U}Q|UZ\\vPNHyAmwVm`]bH`ILvHDlt_JJmDgarYi~NpAbszMzQdvT|Ha|wKxivr^lfPJv}n\\hv|\\Nz]QTIl}vEFIqTvVjwGNOPyVZsoHiYw[\\Xc]jqvm^RgIAtENU\\mQcoII_mkljYzi}Ms}Vm_[n}eUI{DojqYhTo]xMq`B~j@@}tPVufCtG]lUKqDrnN|gVv|WcBUsL@eCDyycYtyAJ@r@rzoPyH[JwcVe}E~U{v@pWxns^wWcJivFc~ceX\\JwksAfL}waoZDMl]eaoF]wYRrvyLFLze]gx}|KK}xklL]cfRtvPoH{tK"]],"encodeOffsets":[[[108619,36299]],[[108589,36341]]]}},{"type":"Feature","id":"630000","properties":{"id":"630000","cp":[96.778916,35.623178],"name":"","childNum":2},"geometry":{"type":"MultiPolygon","coordinates":[["@@InJm"],["@@COs~@@i}Ar_Nw^pSZgrpiC|JV~f\\m`Un~Nt~jyZiknl`JJpdRn[VMFsBJhQ]nuri^d[Wx\\ZjGtpYzUOPMxHiUSurJEFukr{V}O_SR^yM{[u[gtOYkq]juwDPGGuRcNyytaBMoj}ZqbhAnII`ksCGUyCy@BnzGMOJV{LzVR|TbuvJvhHAaONwLmIPscBJK`aQAmOVSQt]]xA@lrspRk~]FRdsCqFnmx{WkwWF\\tRJlGr^yfjcZ|M@R{aPuX{Tm}YICB|St]vs}MAfsPYcc~msPSi^oAecPekgyUih}aH^|H]mqyLstBwnHSS@xNTfbbb_xuB{`dtiUu`^tcLOsTs{\\_kqi|I]D{R_scp[cbKmR{Ze^wxdIgM]]snA{e`\\YjqbL@EH|bRrQvlETzdbhw{LRdcbVgz^jUX|UrK\\NpZCVYRi^rPT}|brqbiGQxPml[s\\U\\fNx|xsZPSqF`VVZL`dIqr\\oFh]Cl\\tTgQHbElbC|Ck[KlATUvdTGsDveOg"]],"encodeOffsets":[[[105308,37219]],[[95370,40081]]]}},{"type":"Feature","id":"640000","properties":{"id":"640000","cp":[106.278179,37.26637],"name":"","childNum":2},"geometry":{"type":"MultiPolygon","coordinates":[["@@KO]QZhvKqS[HnL]c@}woFk{zPByt@@]Yv_ssiLsKDN_X}B~Haif{xge_bsKFIxmELcZsuBLtYdmVtNmtOPhRw~bdq\\H\\bImlNZloqlVmG~QCw{A\\PKNYbFkCsks_\\kJirrAhCU_BixnaM~pOuseQ^dkKwlL~{L~hw^fKyEKzuqQxZ^Epb^fkNCYpxbK~eBltxI[Wf}ddEujIdXx]mtwRXvzZCrMzMZrmUk^Fhiibj"],["@@mfwwMrv@G"]],"encodeOffsets":[[[109366,40242]],[[108600,36303]]]}},{"type":"Feature","id":"650000","properties":{"id":"650000","cp":[85.617733,40.792818],"name":"","childNum":1},"geometry":{"type":"Polygon","coordinates":["@@QX~BjvKXvOi@~ce_E}Qxg@syXo{uXf`CGXMQe|JREjcU_MOFzx[]EP}TBOE}`crudZwGZH}Z|MbakxnMmqCLrVk^UvQkL\\lD{DkaFaGRhSs[Dk^gETc_KYUU_rETOtYw{uMxL[t\\nkOwTFBUww[mG~QyCFmZVQXSbKSX{Kcqqf]DUhgwk}IbmJxolcX]AwwNndvUmG\\}QylEwQyBeoAw@{GpmAKLh`ctWSDu\\wwwVLOMGhPerd{W|yg^yzs`s|}m`x^}HYAn~fzgDIAEYospD[{]uJqU|Sox[kZYrwkrXGbaDA[IB_pDKwbmNfVviHQF{YGdO{P^bl[vtE~hu`HVwW@{Nn{{le^eXj\\c\\q[xob|ZdoG\\CnnxOTxMOv~FR~Nq[nPvb{~npHYfmcDoMSsVWB|XJFY]NAfJrDD`mz\\~D{vJlbpNXW|MTPfKSE`C~hlk~}FafdUXvatjdnrh\\]pLrzPbD\\ZjoLZq\\Lfs|ze{hKTi`u"],"encodeOffsets":[[88824,50096]]}},{"type":"Feature","id":"110000","properties":{"id":"110000","cp":[116.405285,39.904989],"name":"","childNum":1},"geometry":{"type":"Polygon","coordinates":["@@Otmit_Hd`{bwYrS]oqGtm_SoaFLgQN_dV@Zom_\\cxoRcfeogToJu|wPXnOrNzRpZ{GrFtxRVXdWbwUdbjnGnzSeZczi]QaiW|u[qb[swP@P{\\AjX\\MKpA[Hu}}"],"encodeOffsets":[[120023,41045]]}},{"type":"Feature","id":"120000","properties":{"id":"120000","cp":[117.190182,39.125596],"name":"","childNum":1},"geometry":{"type":"Polygon","coordinates":["@@gXEFO_lgzAXe{]gitgIjakSk}{gBqGf{aU^fI{YNkZRoYgcsb@dekI[nlPqCnp{`{PNdqSNNyj]DH]~HOX}xgpgWrDGp^LrzWxZ^T\\|~@IzbjezvLmV_NW~zbvGZmDM~~"],"encodeOffsets":[[120237,41215]]}},{"type":"Feature","id":"310000","properties":{"id":"310000","cp":[121.472644,31.231706],"name":"","childNum":6},"geometry":{"type":"MultiPolygon","coordinates":[["@@Epxc"],["@@"],["@@MA"],["@@QpEC"],["@@bEIm"],["@@^sYDCG@h_pA{oloYj@`gQhr|^MvtbeRYr]"]],"encodeOffsets":[[[124702,32062]],[[124547,32200]],[[124808,31991]],[[124726,32110]],[[124903,32376]],[[124438,32149]]]}},{"type":"Feature","id":"500000","properties":{"id":"500000","cp":[107.304962,29.533155],"name":"","childNum":2},"geometry":{"type":"MultiPolygon","coordinates":[["@@vjG~nGezT}qHq^CIjp\\_Y|[Yxuxbb@~NQtS~r~uf`faJn]j@a{FgLk{Y|WtJxqNKLD|s`]`M~Y`WeI{aOIrap^bmlSqDu[Rw`y_}`MfCVqZgg`dpDOCn^ufnhWtxRGgpVFIG^IcecGshxW}KeXsbkFLgTkN}Gyw\\onmzj@cWj_m~Mvaq\\oVnbqefE^Q~vpE}zcLgEyat\\\\vr_ou_n_AtIVeY}{VPFAB}q@|Ou\\FmQFMw}]|FmCawu_psfgYDHl`{QEfNysBzGrHeN\\CvEs_saQ}_UxqNHd^RweJEvHgFXj`|ypxkAwWpbeOsmzwqChUQlF^lafansrEvfQdUVfv^eftETA\\sJnQTjPxK|nBzLYFDxvr[ehvNoNixGpzbfZo~hGi]F||NbtOMneAtPTLjpYQ|SHYxinzDJgvPg_zIIIISsN"],["@@ifjN@s"]],"encodeOffsets":[[[109628,30765]],[[111725,31320]]]}},{"type":"Feature","id":"810000","properties":{"id":"810000","cp":[114.173355,22.320048],"name":"","childNum":5},"geometry":{"type":"MultiPolygon","coordinates":[["@@AlBk"],["@@mn"],["@@EpFo"],["@@eaplEhj[]C@ljuBXAI[yDU]W`wZkmcMpv}IoJlcafKXJmhItSHnErc"],["@@rMUwASe"]],"encodeOffsets":[[[117111,23002]],[[117072,22876]],[[117045,22887]],[[116975,23082]],[[116882,22747]]]}},{"type":"Feature","id":"820000","properties":{"id":"820000","cp":[113.54909,22.198951],"name":"","childNum":1},"geometry":{"type":"Polygon","coordinates":["@@kds"],"encodeOffsets":[[116279,22639]]}}],"UTF8Encoding":true}); })); ```
/content/code_sandbox/src/pages/chart/ECharts/map/js/china.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
13,548
```javascript import modelExtend from 'dva-model-extend' import api from 'api' const { pathToRegexp } = require("path-to-regexp") import { pageModel } from 'utils/model' const { queryPostList } = api export default modelExtend(pageModel, { namespace: 'post', subscriptions: { setup({ dispatch, history }) { history.listen(location => { if (pathToRegexp('/post').exec(location.pathname)) { dispatch({ type: 'query', payload: { status: 2, ...location.query, }, }) } }) }, }, effects: { *query({ payload }, { call, put }) { const data = yield call(queryPostList, payload) if (data.success) { yield put({ type: 'querySuccess', payload: { list: data.data, pagination: { current: Number(payload.page) || 1, pageSize: Number(payload.pageSize) || 10, total: data.total, }, }, }) } else { throw data } }, }, }) ```
/content/code_sandbox/src/pages/post/model.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
243
```less .table { :global { .ant-table td { white-space: nowrap; } } } ```
/content/code_sandbox/src/pages/post/components/List.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
24
```javascript import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { connect } from 'umi' import { Tabs } from 'antd' import { history } from 'umi' import { stringify } from 'qs' import { t } from "@lingui/macro" import { Page } from 'components' import List from './components/List' const { TabPane } = Tabs const EnumPostStatus = { UNPUBLISH: 1, PUBLISHED: 2, } @connect(({ post, loading }) => ({ post, loading })) class Post extends PureComponent { handleTabClick = key => { const { pathname } = this.props.location history.push({ pathname, search: stringify({ status: key, }), }) } get listProps() { const { post, loading, location } = this.props const { list, pagination } = post const { query, pathname } = location return { pagination, dataSource: list, loading: loading.effects['post/query'], onChange(page) { history.push({ pathname, search: stringify({ ...query, page: page.current, pageSize: page.pageSize, }), }) }, } } render() { const { location } = this.props const { query } = location return ( <Page inner> <Tabs activeKey={ query.status === String(EnumPostStatus.UNPUBLISH) ? String(EnumPostStatus.UNPUBLISH) : String(EnumPostStatus.PUBLISHED) } onTabClick={this.handleTabClick} > <TabPane tab={t`Publised`} key={String(EnumPostStatus.PUBLISHED)} > <List {...this.listProps} /> </TabPane> <TabPane tab={t`Unpublished`} key={String(EnumPostStatus.UNPUBLISH)} > <List {...this.listProps} /> </TabPane> </Tabs> </Page> ) } } Post.propTypes = { post: PropTypes.object, loading: PropTypes.object, location: PropTypes.object, dispatch: PropTypes.func, } export default Post ```
/content/code_sandbox/src/pages/post/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
478
```javascript import React, { PureComponent } from 'react' import { Table, Avatar } from 'antd' import { t } from "@lingui/macro" import { Ellipsis } from 'components' import styles from './List.less' class List extends PureComponent { render() { const { ...tableProps } = this.props const columns = [ { title: t`Image`, dataIndex: 'image', render: text => <Avatar shape="square" src={text} />, }, { title: t`Title`, dataIndex: 'title', render: text => ( <Ellipsis tooltip length={30}> {text} </Ellipsis> ), }, { title: t`Author`, dataIndex: 'author', }, { title: t`Categories`, dataIndex: 'categories', }, { title: t`Tags`, dataIndex: 'tags', }, { title: t`Visibility`, dataIndex: 'visibility', }, { title: t`Comments`, dataIndex: 'comments', }, { title: t`Views`, dataIndex: 'views', }, { title: t`Publish Date`, dataIndex: 'date', }, ] return ( <Table {...tableProps} pagination={{ ...tableProps.pagination, showTotal: total => t`Total ${total} Items`, }} bordered scroll={{ x: 1200 }} className={styles.table} columns={columns} simple rowKey={record => record.id} /> ) } } export default List ```
/content/code_sandbox/src/pages/post/components/List.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
354
```javascript import modelExtend from 'dva-model-extend' const { pathToRegexp } = require("path-to-regexp") import api from 'api' import { pageModel } from 'utils/model' const { queryUserList, createUser, removeUser, updateUser, removeUserList, } = api export default modelExtend(pageModel, { namespace: 'user', state: { currentItem: {}, modalOpen: false, modalType: 'create', selectedRowKeys: [], }, subscriptions: { setup({ dispatch, history }) { history.listen(location => { if (pathToRegexp('/user').exec(location.pathname)) { const payload = location.query || { page: 1, pageSize: 10 } dispatch({ type: 'query', payload, }) } }) }, }, effects: { *query({ payload = {} }, { call, put }) { const data = yield call(queryUserList, payload) if (data) { yield put({ type: 'querySuccess', payload: { list: data.data, pagination: { current: Number(payload.page) || 1, pageSize: Number(payload.pageSize) || 10, total: data.total, }, }, }) } }, *delete({ payload }, { call, put, select }) { const data = yield call(removeUser, { id: payload }) const { selectedRowKeys } = yield select(_ => _.user) if (data.success) { yield put({ type: 'updateState', payload: { selectedRowKeys: selectedRowKeys.filter(_ => _ !== payload), }, }) } else { throw data } }, *multiDelete({ payload }, { call, put }) { const data = yield call(removeUserList, payload) if (data.success) { yield put({ type: 'updateState', payload: { selectedRowKeys: [] } }) } else { throw data } }, *create({ payload }, { call, put }) { const data = yield call(createUser, payload) if (data.success) { yield put({ type: 'hideModal' }) } else { throw data } }, *update({ payload }, { select, call, put }) { const id = yield select(({ user }) => user.currentItem.id) const newUser = { ...payload, id } const data = yield call(updateUser, newUser) if (data.success) { yield put({ type: 'hideModal' }) } else { throw data } }, }, reducers: { showModal(state, { payload }) { return { ...state, ...payload, modalOpen: true } }, hideModal(state) { return { ...state, modalOpen: false } }, }, }) ```
/content/code_sandbox/src/pages/user/model.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
628
```less .table { :global { .ant-table td { white-space: nowrap; } } } ```
/content/code_sandbox/src/pages/user/components/List.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
24
```javascript import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { history } from 'umi' import { connect } from 'umi' import { Row, Col, Button, Popconfirm } from 'antd' import { t } from "@lingui/macro" import { Page } from 'components' import { stringify } from 'qs' import List from './components/List' import Filter from './components/Filter' import Modal from './components/Modal' @connect(({ user, loading }) => ({ user, loading })) class User extends PureComponent { handleRefresh = newQuery => { const { location } = this.props const { query, pathname } = location history.push({ pathname, search: stringify( { ...query, ...newQuery, }, { arrayFormat: 'repeat' } ), }) } handleDeleteItems = () => { const { dispatch, user } = this.props const { list, pagination, selectedRowKeys } = user dispatch({ type: 'user/multiDelete', payload: { ids: selectedRowKeys, }, }).then(() => { this.handleRefresh({ page: list.length === selectedRowKeys.length && pagination.current > 1 ? pagination.current - 1 : pagination.current, }) }) } get modalProps() { const { dispatch, user, loading } = this.props const { currentItem, modalOpen, modalType } = user return { item: modalType === 'create' ? {} : currentItem, open: modalOpen, destroyOnClose: true, maskClosable: false, confirmLoading: loading.effects[`user/${modalType}`], title: `${ modalType === 'create' ? t`Create User` : t`Update User` }`, centered: true, onOk: data => { dispatch({ type: `user/${modalType}`, payload: data, }).then(() => { this.handleRefresh() }) }, onCancel() { dispatch({ type: 'user/hideModal', }) }, } } get listProps() { const { dispatch, user, loading } = this.props const { list, pagination, selectedRowKeys } = user return { dataSource: list, loading: loading.effects['user/query'], pagination, onChange: page => { this.handleRefresh({ page: page.current, pageSize: page.pageSize, }) }, onDeleteItem: id => { dispatch({ type: 'user/delete', payload: id, }).then(() => { this.handleRefresh({ page: list.length === 1 && pagination.current > 1 ? pagination.current - 1 : pagination.current, }) }) }, onEditItem(item) { dispatch({ type: 'user/showModal', payload: { modalType: 'update', currentItem: item, }, }) }, rowSelection: { selectedRowKeys, onChange: keys => { dispatch({ type: 'user/updateState', payload: { selectedRowKeys: keys, }, }) }, }, } } get filterProps() { const { location, dispatch } = this.props const { query } = location return { filter: { ...query, }, onFilterChange: value => { this.handleRefresh({ ...value, }) }, onAdd() { dispatch({ type: 'user/showModal', payload: { modalType: 'create', }, }) }, } } render() { const { user } = this.props const { selectedRowKeys } = user return ( <Page inner> <Filter {...this.filterProps} /> {selectedRowKeys.length > 0 && ( <Row style={{ marginBottom: 24, textAlign: 'right', fontSize: 13 }}> <Col> {`Selected ${selectedRowKeys.length} items `} <Popconfirm title="Are you sure delete these items?" placement="left" onConfirm={this.handleDeleteItems} > <Button type="primary" style={{ marginLeft: 8 }}> Remove </Button> </Popconfirm> </Col> </Row> )} <List {...this.listProps} /> <Modal {...this.modalProps} /> </Page> ) } } User.propTypes = { user: PropTypes.object, location: PropTypes.object, dispatch: PropTypes.func, loading: PropTypes.object, } export default User ```
/content/code_sandbox/src/pages/user/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1,017
```javascript import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { Form, Input, InputNumber, Radio, Modal, Cascader } from 'antd' import { Trans } from "@lingui/macro" import city from 'utils/city' import { t } from "@lingui/macro" const FormItem = Form.Item const formItemLayout = { labelCol: { span: 6, }, wrapperCol: { span: 14, }, } class UserModal extends PureComponent { formRef = React.createRef() handleOk = () => { const { item = {}, onOk } = this.props this.formRef.current.validateFields() .then(values => { const data = { ...values, key: item.key, } data.address = data.address.join(' ') onOk(data) }) .catch(errorInfo => { console.log(errorInfo) }) } render() { const { item = {}, onOk, form, ...modalProps } = this.props return ( (<Modal {...modalProps} onOk={this.handleOk}> <Form ref={this.formRef} name="control-ref" initialValues={{ ...item, address: item.address && item.address.split(' ') }} layout="horizontal"> <FormItem name='name' rules={[{ required: true }]} label={t`Name`} hasFeedback {...formItemLayout}> <Input /> </FormItem> <FormItem name='nickName' rules={[{ required: true }]} label={t`NickName`} hasFeedback {...formItemLayout}> <Input /> </FormItem> <FormItem name='isMale' rules={[{ required: true }]} label={t`Gender`} hasFeedback {...formItemLayout}> <Radio.Group> <Radio value> <Trans>Male</Trans> </Radio> <Radio value={false}> <Trans>Female</Trans> </Radio> </Radio.Group> </FormItem> <FormItem name='age' label={t`Age`} hasFeedback {...formItemLayout}> <InputNumber min={18} max={100} /> </FormItem> <FormItem name='phone' rules={[{ required: true, pattern: /^1[34578]\d{9}$/, message: t`The input is not valid phone!`, }]} label={t`Phone`} hasFeedback {...formItemLayout}> <Input /> </FormItem> <FormItem name='email' rules={[{ required: true, pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/, message: t`The input is not valid E-mail!`, }]} label={t`Email`} hasFeedback {...formItemLayout}> <Input /> </FormItem> <FormItem name='address' rules={[{ required: true, }]} label={t`Address`} hasFeedback {...formItemLayout}> <Cascader style={{ width: '100%' }} options={city} placeholder={t`Pick an address`} /> </FormItem> </Form> </Modal>) ); } } UserModal.propTypes = { type: PropTypes.string, item: PropTypes.object, onOk: PropTypes.func, } export default UserModal ```
/content/code_sandbox/src/pages/user/components/Modal.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
728
```javascript import React, { Component } from 'react' import PropTypes from 'prop-types' import dayjs from 'dayjs' import { FilterItem } from 'components' import { Trans } from "@lingui/macro" import { t } from "@lingui/macro" import { Button, Row, Col, DatePicker, Form, Input, Cascader } from 'antd' import city from 'utils/city' const { Search } = Input const { RangePicker } = DatePicker const ColProps = { xs: 24, sm: 12, style: { marginBottom: 16, }, } const TwoColProps = { ...ColProps, xl: 96, } class Filter extends Component { formRef = React.createRef() handleFields = fields => { const { createTime } = fields if (createTime && createTime.length) { fields.createTime = [ dayjs(createTime[0]).format('YYYY-MM-DD'), dayjs(createTime[1]).format('YYYY-MM-DD'), ] } return fields } handleSubmit = () => { const { onFilterChange } = this.props const values = this.formRef.current.getFieldsValue() const fields = this.handleFields(values) onFilterChange(fields) } handleReset = () => { const fields = this.formRef.current.getFieldsValue() for (let item in fields) { if ({}.hasOwnProperty.call(fields, item)) { if (fields[item] instanceof Array) { fields[item] = [] } else { fields[item] = undefined } } } this.formRef.current.setFieldsValue(fields) this.handleSubmit() } handleChange = (key, values) => { const { onFilterChange } = this.props let fields = this.formRef.current.getFieldsValue() fields[key] = values fields = this.handleFields(fields) onFilterChange(fields) } render() { const { onAdd, filter } = this.props const { name, address } = filter let initialCreateTime = [] if (filter.createTime && filter.createTime[0]) { initialCreateTime[0] = dayjs(filter.createTime[0]) } if (filter.createTime && filter.createTime[1]) { initialCreateTime[1] = dayjs(filter.createTime[1]) } return ( <Form ref={this.formRef} name="control-ref" initialValues={{ name, address, createTime: initialCreateTime }}> <Row gutter={24}> <Col {...ColProps} xl={{ span: 4 }} md={{ span: 8 }}> <Form.Item name="name"> <Search placeholder={t`Search Name`} onSearch={this.handleSubmit} /> </Form.Item> </Col> <Col {...ColProps} xl={{ span: 4 }} md={{ span: 8 }} id="addressCascader" > <Form.Item name="address"> <Cascader style={{ width: '100%' }} options={city} placeholder={t`Please pick an address`} /> </Form.Item> </Col> <Col {...ColProps} xl={{ span: 6 }} md={{ span: 8 }} sm={{ span: 12 }} id="createTimeRangePicker" > <FilterItem label={t`CreateTime`}> <Form.Item name="createTime"> <RangePicker style={{ width: '100%' }} /> </Form.Item> </FilterItem> </Col> <Col {...TwoColProps} xl={{ span: 10 }} md={{ span: 24 }} sm={{ span: 24 }} > <Row type="flex" align="middle" justify="space-between"> <div> <Button type="primary" htmlType="submit" className="margin-right" onClick={this.handleSubmit} > <Trans>Search</Trans> </Button> <Button onClick={this.handleReset}> <Trans>Reset</Trans> </Button> </div> <Button type="ghost" onClick={onAdd}> <Trans>Create</Trans> </Button> </Row> </Col> </Row> </Form> ) } } Filter.propTypes = { onAdd: PropTypes.func, filter: PropTypes.object, onFilterChange: PropTypes.func, } export default Filter ```
/content/code_sandbox/src/pages/user/components/Filter.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
979
```less .content { line-height: 2.4; font-size: 13px; .item { display: flex; & > div { &:first-child { width: 100px; } } } } ```
/content/code_sandbox/src/pages/user/[id]/index.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
53
```javascript import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { connect } from 'umi' import { Page } from 'components' import styles from './index.less' @connect(({ userDetail }) => ({ userDetail })) class UserDetail extends PureComponent { render() { const { userDetail } = this.props const { data } = userDetail const content = [] for (let key in data) { if ({}.hasOwnProperty.call(data, key)) { content.push( <div key={key} className={styles.item}> <div>{key}</div> <div>{String(data[key])}</div> </div> ) } } return ( <Page inner> <div className={styles.content}>{content}</div> </Page> ) } } UserDetail.propTypes = { userDetail: PropTypes.object, } export default UserDetail ```
/content/code_sandbox/src/pages/user/[id]/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
199
```javascript import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { Table, Modal, Avatar } from 'antd' import { DropOption } from 'components' import { t } from "@lingui/macro" import { Trans } from "@lingui/macro" import { Link } from 'umi' import styles from './List.less' const { confirm } = Modal class List extends PureComponent { handleMenuClick = (record, e) => { const { onDeleteItem, onEditItem } = this.props if (e.key === '1') { onEditItem(record) } else if (e.key === '2') { confirm({ title: t`Are you sure delete this record?`, onOk() { onDeleteItem(record.id) }, }) } } render() { const { onDeleteItem, onEditItem, ...tableProps } = this.props const columns = [ { title: <Trans>Avatar</Trans>, dataIndex: 'avatar', key: 'avatar', width: '7%', fixed: 'left', render: text => <Avatar style={{ marginLeft: 8 }} src={text} />, }, { title: <Trans>Name</Trans>, dataIndex: 'name', key: 'name', render: (text, record) => <Link to={`user/${record.id}`}>{text}</Link>, }, { title: <Trans>NickName</Trans>, dataIndex: 'nickName', key: 'nickName', }, { title: <Trans>Age</Trans>, dataIndex: 'age', width: '6%', key: 'age', }, { title: <Trans>Gender</Trans>, dataIndex: 'isMale', key: 'isMale', width: '7%', render: text => <span>{text ? 'Male' : 'Female'}</span>, }, { title: <Trans>Phone</Trans>, dataIndex: 'phone', key: 'phone', }, { title: <Trans>Email</Trans>, dataIndex: 'email', key: 'email', }, { title: <Trans>Address</Trans>, dataIndex: 'address', key: 'address', }, { title: <Trans>CreateTime</Trans>, dataIndex: 'createTime', key: 'createTime', }, { title: <Trans>Operation</Trans>, key: 'operation', fixed: 'right', width: '8%', render: (text, record) => { return ( <DropOption onMenuClick={e => this.handleMenuClick(record, e)} menuOptions={[ { key: '1', name: t`Update` }, { key: '2', name: t`Delete` }, ]} /> ) }, }, ] return ( <Table {...tableProps} pagination={{ ...tableProps.pagination, showTotal: total => t`Total ${total} Items`, }} className={styles.table} bordered scroll={{ x: 1200 }} columns={columns} simple rowKey={record => record.id} /> ) } } List.propTypes = { onDeleteItem: PropTypes.func, onEditItem: PropTypes.func, location: PropTypes.object, } export default List ```
/content/code_sandbox/src/pages/user/components/List.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
743
```javascript const { pathToRegexp } = require("path-to-regexp") import api from 'api' const { queryUser } = api export default { namespace: 'userDetail', state: { data: {}, }, subscriptions: { setup({ dispatch, history }) { history.listen(({ pathname }) => { const match = pathToRegexp('/user/:id').exec(pathname) if (match) { dispatch({ type: 'query', payload: { id: match[1] } }) } }) }, }, effects: { *query({ payload }, { call, put }) { const data = yield call(queryUser, payload) const { success, message, status, ...other } = data if (success) { yield put({ type: 'querySuccess', payload: { data: other, }, }) } else { throw data } }, }, reducers: { querySuccess(state, { payload }) { const { data } = payload return { ...state, data, } }, }, } ```
/content/code_sandbox/src/pages/user/[id]/models/detail.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
243
```javascript import { Component } from 'react' import { Editor, Page } from 'components' import { convertToRaw } from 'draft-js' import { Row, Col, Card } from 'antd' import draftToHtml from 'draftjs-to-html' import draftToMarkdown from 'draftjs-to-markdown' export default class EditorPage extends Component { constructor(props) { super(props) this.state = { editorContent: null, } } onEditorStateChange = editorContent => { this.setState({ editorContent, }) } render() { const { editorContent } = this.state const colProps = { lg: 12, md: 24, style: { marginBottom: 32, } } const textareaStyle = { minHeight: 496, width: '100%', background: '#f7f7f7', borderColor: '#F1F1F1', padding: '16px 8px' } return ( <Page inner> <Row gutter={32}> <Col {...colProps}> <Card title="Editor" style={{ overflow: 'visible' }}> <Editor wrapperStyle={{ minHeight: 500, }} editorStyle={{ minHeight: 376, }} editorState={editorContent} onEditorStateChange={this.onEditorStateChange} /> </Card> </Col> <Col {...colProps}> <Card title="HTML"> <textarea style={textareaStyle} disabled value={ editorContent ? draftToHtml( convertToRaw(editorContent.getCurrentContent()) ) : '' } /> </Card> </Col> <Col {...colProps}> <Card title="Markdown"> <textarea style={textareaStyle} disabled value={ editorContent ? draftToMarkdown( convertToRaw(editorContent.getCurrentContent()) ) : '' } /> </Card> </Col> <Col {...colProps}> <Card title="JSON"> <textarea style={textareaStyle} disabled value={ editorContent ? JSON.stringify( convertToRaw(editorContent.getCurrentContent()) ) : '' } /> </Card> </Col> </Row> </Page> ) } } ```
/content/code_sandbox/src/pages/editor/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
521
```javascript import React, { PureComponent, Fragment } from 'react' import PropTypes from 'prop-types' import { connect } from 'umi' import { Helmet } from 'react-helmet' import { Loader } from 'components' import { queryLayout } from 'utils' import NProgress from 'nprogress' import config from 'utils/config' import { withRouter } from 'umi' import PublicLayout from './PublicLayout' import PrimaryLayout from './PrimaryLayout' import './BaseLayout.less' const LayoutMap = { primary: PrimaryLayout, public: PublicLayout, } @withRouter @connect(({ loading }) => ({ loading })) class BaseLayout extends PureComponent { previousPath = '' render() { const { loading, children, location } = this.props const Container = LayoutMap[queryLayout(config.layouts, location.pathname)] const currentPath = location.pathname + location.search if (currentPath !== this.previousPath) { NProgress.start() } if (!loading.global) { NProgress.done() this.previousPath = currentPath } return ( <Fragment> <Helmet> <title>{config.siteName}</title> </Helmet> <Loader fullScreen spinning={loading.effects['app/query']} /> <Container>{children}</Container> </Fragment> ) } } BaseLayout.propTypes = { loading: PropTypes.object, } export default BaseLayout ```
/content/code_sandbox/src/layouts/BaseLayout.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
298
```less @import '~themes/vars.less'; .backTop { right: 50px; :global { .ant-back-top-content { background: @primary-color; opacity: 0.3; transition: all 0.3s; box-shadow: 0 0 15px 1px rgba(69, 65, 78, 0.1); &:hover { opacity: 1; } } } } .content { padding: 24px; min-height: ~'calc(100% - 72px)'; // overflow-y: scroll; } .container { height: 100vh; flex: 1; width: ~'calc(100% - 256px)'; overflow-y: scroll; overflow-x: hidden; } .footer { background: #fff; margin-top: 0; margin-bottom: 0; padding-top: 24px; padding-bottom: 24px; min-height: 72px; } @media (max-width: 767px) { .content { padding: 12px; } .backTop { right: 20px; bottom: 20px; } .container { height: 100vh; flex: 1; width: 100%; } } ```
/content/code_sandbox/src/layouts/PrimaryLayout.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
292
```less @import '~themes/vars.less'; @import '~themes/index.less'; :global { #nprogress { pointer-events: none; .bar { background: @primary-color; position: fixed; z-index: 2048; top: 0; left: 0; right: 0; width: 100%; height: 2px; } .peg { display: block; position: absolute; right: 0; width: 100px; height: 100%; box-shadow: 0 0 10px @primary-color, 0 0 5px @primary-color; opacity: 1; transform: rotate(3deg) translate(0, -4px); } .spinner { display: block; position: fixed; z-index: 1031; top: 15px; right: 15px; } .spinner-icon { width: 18px; height: 18px; box-sizing: border-box; border: solid 2px transparent; border-top-color: @primary-color; border-left-color: @primary-color; border-radius: 50%; :local { animation: nprogress-spinner 400ms linear infinite; } } } .nprogress-custom-parent { overflow: hidden; position: relative; #nprogress { .bar, .spinner { position: absolute; } } } } @keyframes nprogress-spinner { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } ```
/content/code_sandbox/src/layouts/BaseLayout.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
371
```javascript /* global window */ /* global document */ import React, { PureComponent, Fragment } from 'react' import PropTypes from 'prop-types' import { withRouter } from 'umi' import { connect } from 'umi' import { MyLayout, GlobalFooter } from 'components' import { Drawer, FloatButton, Layout } from 'antd'; import { enquireScreen, unenquireScreen } from 'enquire-js' const { pathToRegexp } = require("path-to-regexp") import { config, getLocale } from 'utils' import Error from '../pages/404' import styles from './PrimaryLayout.less' import store from 'store' const { Content } = Layout const { Header, Bread, Sider } = MyLayout @withRouter @connect(({ app, loading }) => ({ app, loading })) class PrimaryLayout extends PureComponent { state = { isMobile: false, } componentDidMount() { this.enquireHandler = enquireScreen(mobile => { const { isMobile } = this.state if (isMobile !== mobile) { this.setState({ isMobile: mobile, }) } }) } componentWillUnmount() { unenquireScreen(this.enquireHandler) } onCollapseChange = collapsed => { this.props.dispatch({ type: 'app/handleCollapseChange', payload: collapsed, }) } render() { const { app, location, dispatch, children } = this.props const { theme, collapsed, notifications } = app const user = store.get('user') || {} const permissions = store.get('permissions') || {} const routeList = store.get('routeList') || [] const { isMobile } = this.state const { onCollapseChange } = this // Localized route name. const lang = getLocale() const newRouteList = lang !== 'en' ? routeList.map(item => { const { name, ...other } = item return { ...other, name: (item[lang] || {}).name || name, } }) : routeList // Find a route that matches the pathname. const currentRoute = newRouteList.find( _ => _.route && pathToRegexp(_.route).exec(location.pathname) ) // Query whether you have permission to enter this page const hasPermission = currentRoute ? permissions.visit.includes(currentRoute.id) : false // MenuParentId is equal to -1 is not a available menu. const menus = newRouteList.filter(_ => _.menuParentId !== '-1') const headerProps = { menus, collapsed, notifications, onCollapseChange, avatar: user.avatar, username: user.username, fixed: config.fixedHeader, onAllNotificationsRead() { dispatch({ type: 'app/allNotificationsRead' }) }, onSignOut() { dispatch({ type: 'app/signOut' }) }, } const siderProps = { theme, menus, isMobile, collapsed, onCollapseChange, onThemeChange(theme) { dispatch({ type: 'app/handleThemeChange', payload: theme, }) }, } return ( (<Fragment> <Layout> {isMobile ? ( <Drawer maskClosable closable={false} onClose={onCollapseChange.bind(this, !collapsed)} open={!collapsed} placement="left" width={200} rootStyle={{ padding: 0, height: '100vh', }} > <Sider {...siderProps} collapsed={false} /> </Drawer> ) : ( <Sider {...siderProps} /> )} <div className={styles.container} style={{ paddingTop: config.fixedHeader ? 72 : 0 }} id="primaryLayout" > <Header {...headerProps} /> <Content className={styles.content}> <Bread routeList={newRouteList} /> {hasPermission ? children : <Error />} </Content> <FloatButton.BackTop className={styles.backTop} target={() => document.querySelector('#primaryLayout')} /> <GlobalFooter className={styles.footer} copyright={config.copyright} /> </div> </Layout> </Fragment>) ); } } PrimaryLayout.propTypes = { children: PropTypes.element.isRequired, location: PropTypes.object, dispatch: PropTypes.func, app: PropTypes.object, loading: PropTypes.object, } export default PrimaryLayout ```
/content/code_sandbox/src/layouts/PrimaryLayout.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
988
```javascript export default ({ children }) => { return children } ```
/content/code_sandbox/src/layouts/PublicLayout.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
13
```javascript import { message } from 'antd' export default { onError(e, a) { e.preventDefault() if (e.message) { message.error(e.message) } else { /* eslint-disable */ console.error(e) } }, } ```
/content/code_sandbox/src/plugins/onError.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
55
```javascript import React, { Component } from 'react' import { withRouter } from 'umi' import { ConfigProvider } from 'antd' import { i18n } from "@lingui/core" import { I18nProvider } from '@lingui/react' import { getLocale } from 'utils' import { zh, en, pt } from 'make-plural/plurals' import zhCN from 'antd/lib/locale/zh_CN' import enUS from 'antd/lib/locale/en_US' import ptBR from 'antd/lib/locale/pt_BR' import BaseLayout from './BaseLayout' i18n.loadLocaleData({ en: { plurals: en }, zh: { plurals: zh }, 'pt-br': { plurals: pt } }) // antd const languages = { zh: zhCN, en: enUS, 'pt-br': ptBR } const { defaultLanguage } = i18n @withRouter class Layout extends Component { state = { } componentDidMount() { } loadCatalog = async (lan) => { const catalog = await import( `../locales/${lan}/messages.json` ) i18n.load(lan, catalog) i18n.activate(lan) } render() { const { children } = this.props let language = getLocale() if (!languages[language]) language = defaultLanguage this.loadCatalog(language) return ( <ConfigProvider locale={languages[language]}> <I18nProvider i18n={i18n}> <BaseLayout>{children}</BaseLayout> </I18nProvider> </ConfigProvider> ) } } export default Layout ```
/content/code_sandbox/src/layouts/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
364
```javascript import Editor from './Editor' import FilterItem from './FilterItem' import DropOption from './DropOption' import Loader from './Loader' import ScrollBar from './ScrollBar' import GlobalFooter from './GlobalFooter' import Ellipsis from './Ellipsis' import * as MyLayout from './Layout/index.js' import Page from './Page' export { MyLayout, Editor, GlobalFooter, Ellipsis, FilterItem, DropOption, Loader, Page, ScrollBar } ```
/content/code_sandbox/src/components/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
95
```less :global { .ps--active-x > .ps__rail-x, .ps--active-y > .ps__rail-y { background-color: transparent; } .ps__rail-x:hover > .ps__thumb-x, .ps__rail-x:focus > .ps__thumb-x { height: 8px; } .ps__rail-y:hover > .ps__thumb-y, .ps__rail-y:focus > .ps__thumb-y { width: 8px; } .ps__rail-y, .ps__rail-x { z-index: 9; } .ps__thumb-y { width: 4px; right: 4px; } .ps__thumb-x { height: 4px; bottom: 4px; } } ```
/content/code_sandbox/src/components/ScrollBar/index.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
182
```javascript import puppeteer from 'puppeteer' describe('Login', () => { let browser let page beforeAll(async () => { browser = await puppeteer.launch({ args: ['--no-sandbox'] }) }) beforeEach(async () => { page = await browser.newPage() await page.goto('path_to_url { waitUntil: 'networkidle2', }) }) afterEach(() => page.close()) it('should login with failure', async () => { await page.waitFor(selector => !!document.querySelector('#username'), { timeout: 3000, }) await page.type('#username', 'wrong_user') await page.type('#password', 'wrong_password') await page.click('button[type="button"]') await page.waitForSelector('.anticon-close-circle') // should display error }) it('should login successfully', async () => { await page.waitForSelector('#username', { timeout: 3000 }) await page.type('#username', 'admin') await page.type('#password', 'admin') await page.click('button[type="button"]') await page.waitForSelector('.ant-layout-footer') const text = await page.evaluate(() => document.body.innerHTML) expect(text).toContain('Ant Design Admin') }) afterAll(() => browser.close()) }) ```
/content/code_sandbox/src/e2e/login.e2e.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
280
```javascript import ScrollBar from 'react-perfect-scrollbar' import 'react-perfect-scrollbar/dist/css/styles.css' import './index.less' export default ScrollBar ```
/content/code_sandbox/src/components/ScrollBar/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
32
```javascript import React from 'react' import { Editor } from 'react-draft-wysiwyg' import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css' import styles from './Editor.less' const DraftEditor = props => { return ( <Editor toolbarClassName={styles.toolbar} wrapperClassName={styles.wrapper} editorClassName={styles.editor} {...props} /> ) } export default DraftEditor ```
/content/code_sandbox/src/components/Editor/Editor.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
96
```less .bread { margin-bottom: 24px; :global { .ant-breadcrumb { display: flex; align-items: center; } } } @media (max-width: 767px) { .bread { margin-bottom: 12px; } } ```
/content/code_sandbox/src/components/Layout/Bread.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
63
```less .wrapper { height: 500px; :global { .rdw-dropdownoption-default { padding: 6px; } .rdw-dropdown-optionwrapper { box-sizing: content-box; width: 100%; border-radius: 0 0 2px 2px; &:hover { box-shadow: none; } } .rdw-inline-wrapper { flex-wrap: wrap; margin-bottom: 0; .rdw-option-wrapper { margin-bottom: 6px; } } .rdw-option-active { box-shadow: 1px 1px 0 #e8e8e8 inset; } .rdw-colorpicker-option { box-shadow: none; } .rdw-colorpicker-modal, .rdw-embedded-modal, .rdw-emoji-modal, .rdw-image-modal, .rdw-link-modal { box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.05); } .rdw-colorpicker-modal, .rdw-embedded-modal, .rdw-link-modal { height: auto; } .rdw-emoji-modal { width: 214px; } .rdw-colorpicker-modal { width: auto; } .rdw-embedded-modal-btn, .rdw-image-modal-btn, .rdw-link-modal-btn { height: 32px; margin-top: 12px; } .rdw-embedded-modal-input, .rdw-embedded-modal-size-input, .rdw-link-modal-input { padding: 2px 6px; height: 32px; } .rdw-dropdown-selectedtext { color: #000; } .rdw-dropdown-wrapper, .rdw-option-wrapper { min-width: 36px; transition: all 0.2s ease; height: 30px; &:active { box-shadow: 1px 1px 0 #e8e8e8 inset; } &:hover { box-shadow: 1px 1px 0 #e8e8e8; } } .rdw-dropdown-wrapper { min-width: 60px; } .rdw-editor-main { box-sizing: border-box; } } .editor { border: 1px solid #f1f1f1; padding: 5px; border-radius: 2px; height: auto; min-height: 200px; } } ```
/content/code_sandbox/src/components/Editor/Editor.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
580
```javascript import React, { PureComponent, Fragment } from 'react' import PropTypes from 'prop-types' import { Menu } from 'antd' import { NavLink, withRouter } from 'umi' import { pathToRegexp } from 'path-to-regexp' import { arrayToTree, queryAncestors } from 'utils' import iconMap from 'utils/iconMap' import store from 'store' const { SubMenu } = Menu @withRouter class SiderMenu extends PureComponent { state = { openKeys: store.get('openKeys') || [], } onOpenChange = openKeys => { const { menus } = this.props const rootSubmenuKeys = menus.filter(_ => !_.menuParentId).map(_ => _.id) const latestOpenKey = openKeys.find( key => this.state.openKeys.indexOf(key) === -1 ) let newOpenKeys = openKeys if (rootSubmenuKeys.indexOf(latestOpenKey) !== -1) { newOpenKeys = latestOpenKey ? [latestOpenKey] : [] } this.setState({ openKeys: newOpenKeys, }) store.set('openKeys', newOpenKeys) } generateMenus = data => { return data.map(item => { if (item.children) { return ( <SubMenu key={item.id} title={ <Fragment> {item.icon && iconMap[item.icon]} <span>{item.name}</span> </Fragment> } > {this.generateMenus(item.children)} </SubMenu> ) } return ( <Menu.Item key={item.id}> <NavLink to={item.route || '#'}> {item.icon && iconMap[item.icon]} <span>{item.name}</span> </NavLink> </Menu.Item> ) }) } render() { const { collapsed, theme, menus, location, isMobile, onCollapseChange, } = this.props // Generating tree-structured data for menu content. const menuTree = arrayToTree(menus, 'id', 'menuParentId') // Find a menu that matches the pathname. const currentMenu = menus.find( _ => _.route && pathToRegexp(_.route).exec(location.pathname) ) // Find the key that should be selected according to the current menu. const selectedKeys = currentMenu ? queryAncestors(menus, currentMenu, 'menuParentId').map(_ => _.id) : [] const menuProps = collapsed ? {} : { openKeys: this.state.openKeys, } return ( <Menu mode="inline" theme={theme} onOpenChange={this.onOpenChange} selectedKeys={selectedKeys} onClick={ isMobile ? () => { onCollapseChange(true) } : undefined } {...menuProps} > {this.generateMenus(menuTree)} </Menu> ) } } SiderMenu.propTypes = { menus: PropTypes.array, theme: PropTypes.string, isMobile: PropTypes.bool, onCollapseChange: PropTypes.func, } export default SiderMenu ```
/content/code_sandbox/src/components/Layout/Menu.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
695
```javascript import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { Switch, Layout } from 'antd' import { t } from "@lingui/macro" import { Trans } from "@lingui/macro" import { BulbOutlined } from '@ant-design/icons' import ScrollBar from '../ScrollBar' import { config } from 'utils' import SiderMenu from './Menu' import styles from './Sider.less' class Sider extends PureComponent { render() { const { menus, theme, isMobile, collapsed, onThemeChange, onCollapseChange, } = this.props return ( <Layout.Sider width={256} theme={theme} breakpoint="lg" trigger={null} collapsible collapsed={collapsed} onBreakpoint={!isMobile ? onCollapseChange : (broken) => {}} className={styles.sider} > <div className={styles.brand}> <div className={styles.logo}> <img alt="logo" src={config.logoPath} /> {!collapsed && <h1>{config.siteName}</h1>} </div> </div> <div className={styles.menuContainer}> <ScrollBar options={{ // Disabled horizontal scrolling, path_to_url#options suppressScrollX: true, }} > <SiderMenu menus={menus} theme={theme} isMobile={isMobile} collapsed={collapsed} onCollapseChange={onCollapseChange} /> </ScrollBar> </div> {!collapsed && ( <div className={styles.switchTheme}> <span> <BulbOutlined /> <Trans>Switch Theme</Trans> </span> <Switch onChange={onThemeChange.bind( this, theme === 'dark' ? 'light' : 'dark' )} defaultChecked={theme === 'dark'} checkedChildren={t`Dark`} unCheckedChildren={t`Light`} /> </div> )} </Layout.Sider> ) } } Sider.propTypes = { menus: PropTypes.array, theme: PropTypes.string, isMobile: PropTypes.bool, collapsed: PropTypes.bool, onThemeChange: PropTypes.func, onCollapseChange: PropTypes.func, } export default Sider ```
/content/code_sandbox/src/components/Layout/Sider.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
505
```javascript import React, { PureComponent, Fragment } from 'react' import PropTypes from 'prop-types' import { Menu, Layout, Avatar, Popover, Badge, List } from 'antd' import { Ellipsis } from 'components' import { BellOutlined, RightOutlined, MenuFoldOutlined, MenuUnfoldOutlined, } from '@ant-design/icons' import { Trans } from "@lingui/macro" import { getLocale, setLocale } from 'utils' import dayjs from 'dayjs' import classnames from 'classnames' import config from 'config' import styles from './Header.less' const { SubMenu } = Menu class Header extends PureComponent { handleClickMenu = e => { e.key === 'SignOut' && this.props.onSignOut() } render() { const { fixed, avatar, username, collapsed, notifications, onCollapseChange, onAllNotificationsRead, } = this.props const rightContent = [ <Menu key="user" mode="horizontal" onClick={this.handleClickMenu}> <SubMenu title={ <Fragment> <span style={{ color: '#999', marginRight: 4 }}> <Trans>Hi,</Trans> </span> <span>{username}</span> <Avatar style={{ marginLeft: 8 }} src={avatar} /> </Fragment> } > <Menu.Item key="SignOut"> <Trans>Sign out</Trans> </Menu.Item> </SubMenu> </Menu>, ] if (config.i18n) { const { languages } = config.i18n const language = getLocale() const currentLanguage = languages.find( item => item.key === language ) rightContent.unshift( <Menu key="language" selectedKeys={[currentLanguage.key]} onClick={data => { setLocale(data.key) }} mode="horizontal" > <SubMenu title={<Avatar size="small" src={currentLanguage.flag} />}> {languages.map(item => ( <Menu.Item key={item.key}> <Avatar size="small" style={{ marginRight: 8 }} src={item.flag} /> {item.title} </Menu.Item> ))} </SubMenu> </Menu> ) } rightContent.unshift( <Popover placement="bottomRight" trigger="click" key="notifications" overlayClassName={styles.notificationPopover} getPopupContainer={() => document.querySelector('#primaryLayout')} content={ <div className={styles.notification}> <List itemLayout="horizontal" dataSource={notifications} locale={{ emptyText: <Trans>You have viewed all notifications.</Trans>, }} renderItem={item => ( <List.Item className={styles.notificationItem}> <List.Item.Meta title={ <Ellipsis tooltip lines={1}> {item.title} </Ellipsis> } description={dayjs(item.date).fromNow()} /> <RightOutlined style={{ fontSize: 10, color: '#ccc' }} /> </List.Item> )} /> {notifications.length ? ( <div onClick={onAllNotificationsRead} className={styles.clearButton} > <Trans>Clear notifications</Trans> </div> ) : null} </div> } > <Badge count={notifications.length} dot offset={[-10, 10]} className={styles.iconButton} > <BellOutlined className={styles.iconFont} /> </Badge> </Popover> ) return ( <Layout.Header className={classnames(styles.header, { [styles.fixed]: fixed, [styles.collapsed]: collapsed, })} style={{height: 72, backgroundColor: 'white', paddingInline: 0}} id="layoutHeader" > <div className={styles.button} onClick={onCollapseChange.bind(this, !collapsed)} > {collapsed ? <MenuUnfoldOutlined /> : <MenuFoldOutlined />} </div> <div className={styles.rightContainer}>{rightContent}</div> </Layout.Header> ) } } Header.propTypes = { fixed: PropTypes.bool, user: PropTypes.object, menus: PropTypes.array, collapsed: PropTypes.bool, onSignOut: PropTypes.func, notifications: PropTypes.array, onCollapseChange: PropTypes.func, onAllNotificationsRead: PropTypes.func, } export default Header ```
/content/code_sandbox/src/components/Layout/Header.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
972
```javascript import React, { PureComponent, Fragment } from 'react' import PropTypes from 'prop-types' import { Breadcrumb } from 'antd' import { Link, withRouter } from 'umi' import { t } from "@lingui/macro" import iconMap from 'utils/iconMap' const { pathToRegexp } = require('path-to-regexp') import { queryAncestors } from 'utils' import styles from './Bread.less' @withRouter class Bread extends PureComponent { generateBreadcrumbs = (paths) => { return paths.map((item, key) => { const content = item && ( <Fragment> {item.icon && ( <span style={{ marginRight: 4 }}>{iconMap[item.icon]}</span> )} {item.name} </Fragment> ) return ( item && ( <Breadcrumb.Item key={key}> {paths.length - 1 !== key ? ( <Link to={item.route || '#'}>{content}</Link> ) : ( content )} </Breadcrumb.Item> ) ) }) } render() { const { routeList, location } = this.props // Find a route that matches the pathname. const currentRoute = routeList.find( (_) => _.route && pathToRegexp(_.route).exec(location.pathname) ) // Find the breadcrumb navigation of the current route match and all its ancestors. const paths = currentRoute ? queryAncestors(routeList, currentRoute, 'breadcrumbParentId').reverse() : [ routeList[0], { id: 404, name: t`Not Found`, }, ] return ( <Breadcrumb className={styles.bread}> {this.generateBreadcrumbs(paths)} </Breadcrumb> ) } } Bread.propTypes = { routeList: PropTypes.array, } export default Bread ```
/content/code_sandbox/src/components/Layout/Bread.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
403
```less @import '~themes/vars.less'; .header { padding: 0; box-shadow: @shadow-2; position: relative; display: flex; justify-content: space-between; height: 72px; z-index: 9; align-items: center; background-color: #fff; &.fixed { position: fixed; top: 0; right: 0; width: ~'calc(100% - 256px)'; z-index: 29; transition: width 0.2s; &.collapsed { width: ~'calc(100% - 80px)'; } } :global { .ant-menu-submenu-title { height: 72px; display: flex; align-items: center; } .ant-menu-horizontal { line-height: 72px; & > .ant-menu-submenu:hover { color: @primary-color; background-color: @hover-color; } } .ant-menu { border-bottom: none; height: 72px; } .ant-menu-horizontal > .ant-menu-submenu { top: 0; margin-top: 0; } .ant-menu-horizontal > .ant-menu-item, .ant-menu-horizontal > .ant-menu-submenu { border-bottom: none; } .ant-menu-horizontal > .ant-menu-item-active, .ant-menu-horizontal > .ant-menu-item-open, .ant-menu-horizontal > .ant-menu-item-selected, .ant-menu-horizontal > .ant-menu-item:hover, .ant-menu-horizontal > .ant-menu-submenu-active, .ant-menu-horizontal > .ant-menu-submenu-open, .ant-menu-horizontal > .ant-menu-submenu-selected, .ant-menu-horizontal > .ant-menu-submenu:hover { border-bottom: none; } } .rightContainer { display: flex; align-items: center; } .button { width: 72px; height: 72px; line-height: 72px; text-align: center; font-size: 18px; cursor: pointer; transition: @transition-ease-in; &:hover { color: @primary-color; background-color: @hover-color; } } } .iconButton { width: 48px; height: 48px; display: flex; justify-content: center; align-items: center; border-radius: 24px; cursor: pointer; .background-hover(); &:hover { .iconFont { color: @primary-color; } } & + .iconButton { margin-left: 8px; } .iconFont { color: #b2b0c7; font-size: 24px; } } .notification { padding: 24px 0; width: 320px; .notificationItem { transition: all 0.3s; padding: 12px 24px; cursor: pointer; &:hover { background-color: @hover-color; } } .clearButton { text-align: center; height: 48px; line-height: 48px; cursor: pointer; .background-hover(); } } .notificationPopover { :global { .ant-popover-inner-content { padding: 0; } .ant-popover-arrow { display: none; } .ant-list-item-content { flex: 0; margin-left: 16px; } } } @media (max-width: 767px) { .header { width: 100% !important; } } ```
/content/code_sandbox/src/components/Layout/Header.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
813
```javascript import Header from './Header' import Menu from './Menu' import Bread from './Bread' import Sider from './Sider' export { Header, Menu, Bread, Sider } ```
/content/code_sandbox/src/components/Layout/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
39
```less @import '~themes/vars.less'; .sider { box-shadow: fade(@primary-color, 10%) 0 0 28px 0; z-index: 10; :global { .ant-layout-sider-children { display: flex; flex-direction: column; justify-content: space-between; } } } .brand { z-index: 1; height: 72px; display: flex; align-items: center; justify-content: center; padding: 0 24px; box-shadow: 0 1px 9px -3px rgba(0, 0, 0, 0.2); .logo { display: flex; align-items: center; justify-content: center; img { width: 36px; margin-right: 8px; } h1 { vertical-align: text-bottom; font-size: 16px; text-transform: uppercase; display: inline-block; font-weight: 700; color: @primary-color; white-space: nowrap; margin-bottom: 0; .text-gradient(); :local { animation: fadeRightIn 300ms @ease-in-out; animation-fill-mode: both; } } } } .menuContainer { height: ~'calc(100vh - 120px)'; overflow-x: hidden; flex: 1; padding: 24px 0; &::-webkit-scrollbar-thumb { background-color: transparent; } &:hover { &::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.2); } } :global { .ant-menu-inline { border-right: none; } } } .switchTheme { width: 100%; height: 48px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; overflow: hidden; transition: all 0.3s; span { white-space: nowrap; overflow: hidden; font-size: 12px; } :global { .anticon { min-width: 14px; margin-right: 4px; font-size: 14px; } } } @keyframes fadeLeftIn { 0% { transform: translateX(5px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } } ```
/content/code_sandbox/src/components/Layout/Sider.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
564
```less @import '~themes/vars.less'; .contentInner { background: #fff; padding: 24px; box-shadow: @shadow-1; min-height: ~'calc(100vh - 230px)'; position: relative; } @media (max-width: 767px) { .contentInner { padding: 12px; min-height: ~'calc(100vh - 160px)'; } } ```
/content/code_sandbox/src/components/Page/Page.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
95
```javascript import React, { Component } from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import Loader from '../Loader' import styles from './Page.less' export default class Page extends Component { render() { const { className, children, loading = false, inner = false } = this.props const loadingStyle = { height: 'calc(100vh - 184px)', overflow: 'hidden', } return ( <div className={classnames(className, { [styles.contentInner]: inner, })} style={loading ? loadingStyle : null} > {loading ? <Loader spinning /> : ''} {children} </div> ) } } Page.propTypes = { className: PropTypes.string, children: PropTypes.node, loading: PropTypes.bool, inner: PropTypes.bool, } ```
/content/code_sandbox/src/components/Page/Page.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
183
```javascript import React from 'react' import PropTypes from 'prop-types' import { BarsOutlined, DownOutlined } from '@ant-design/icons' import { Dropdown, Button, Menu } from 'antd' const DropOption = ({ onMenuClick, menuOptions = [], buttonStyle, dropdownProps, }) => { const menu = menuOptions.map(item => ( <Menu.Item key={item.key}>{item.name}</Menu.Item> )) return ( <Dropdown overlay={<Menu onClick={onMenuClick}>{menu}</Menu>} {...dropdownProps} > <Button style={{ border: 'none', ...buttonStyle }}> <BarsOutlined style={{ marginRight: 2 }} /> <DownOutlined /> </Button> </Dropdown> ) } DropOption.propTypes = { onMenuClick: PropTypes.func, menuOptions: PropTypes.array.isRequired, buttonStyle: PropTypes.object, dropdownProps: PropTypes.object, } export default DropOption ```
/content/code_sandbox/src/components/DropOption/DropOption.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
204
```xml import React from 'react'; import { TooltipProps } from 'antd/lib/tooltip'; export interface EllipsisTooltipProps extends TooltipProps { title?: undefined; overlayStyle?: undefined; } export interface EllipsisProps { tooltip?: boolean | EllipsisTooltipProps; length?: number; lines?: number; style?: React.CSSProperties; className?: string; fullWidthRecognition?: boolean; } export function getStrFullLength(str: string): number; export function cutStrByFullLength(str: string, maxLength: number): string; export default class Ellipsis extends React.Component<EllipsisProps, any> {} ```
/content/code_sandbox/src/components/Ellipsis/index.d.ts
xml
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
131
```less .ellipsis { display: inline-block; width: 100%; overflow: hidden; word-break: break-all; } .lines { position: relative; .shadow { position: absolute; z-index: -999; display: block; color: transparent; opacity: 0; } } .lineClamp { position: relative; display: -webkit-box; overflow: hidden; text-overflow: ellipsis; } ```
/content/code_sandbox/src/components/Ellipsis/index.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
101
```javascript import { getStrFullLength, cutStrByFullLength } from './index'; describe('test calculateShowLength', () => { it('get full length', () => { expect(getStrFullLength('a,')).toEqual(8); }); it('cut str by full length', () => { expect(cutStrByFullLength('a,', 7)).toEqual('a'); }); it('cut str when length small', () => { expect(cutStrByFullLength('22', 5)).toEqual('22'); }); }); ```
/content/code_sandbox/src/components/Ellipsis/index.test.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
119
```javascript import React from 'react' import PropTypes from 'prop-types' import styles from './FilterItem.less' const FilterItem = ({ label = '', children }) => { const labelArray = label.split('') return ( <div className={styles.filterItem}> {labelArray.length > 0 && ( <div className={styles.labelWrap}> {labelArray.map((item, index) => ( <span className="labelText" key={index}> {item} </span> ))} </div> )} <div className={styles.item}>{children}</div> </div> ) } FilterItem.propTypes = { label: PropTypes.string, children: PropTypes.element.isRequired, } export default FilterItem ```
/content/code_sandbox/src/components/FilterItem/FilterItem.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
156
```less .filterItem { display: flex; justify-content: space-between; .labelWrap { width: 64px; line-height: 28px; margin-right: 12px; justify-content: space-between; display: flex; overflow: hidden; } .item { flex: 1; } } ```
/content/code_sandbox/src/components/FilterItem/FilterItem.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
76
```xml import React from 'react'; export interface GlobalFooterProps { links?: Array<{ key?: string; title: React.ReactNode; href: string; blankTarget?: boolean; }>; copyright?: React.ReactNode; style?: React.CSSProperties; className?: string; } export default class GlobalFooter extends React.Component<GlobalFooterProps, any> {} ```
/content/code_sandbox/src/components/GlobalFooter/index.d.ts
xml
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
78
```less /* @import '~antd/lib/style/themes/default.less'; */ .globalFooter { margin: 48px 0 24px 0; padding: 0 16px; text-align: center; .links { margin-bottom: 8px; a { color: @text-color-secondary; transition: all 0.3s; &:not(:last-child) { margin-right: 40px; } &:hover { color: @text-color; } } } .copyright { color: @text-color-secondary; font-size: @font-size-base; } } ```
/content/code_sandbox/src/components/GlobalFooter/index.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
137
```javascript import React from 'react'; import classNames from 'classnames'; import styles from './index.less'; const GlobalFooter = ({ className, links, copyright }) => { const clsString = classNames(styles.globalFooter, className); return ( <footer className={clsString}> {links && ( <div className={styles.links}> {links.map(link => ( <a key={link.key} title={link.key} target={link.blankTarget ? '_blank' : '_self'} href={link.href} > {link.title} </a> ))} </div> )} {copyright && <div className={styles.copyright}>{copyright}</div>} </footer> ); }; export default GlobalFooter; ```
/content/code_sandbox/src/components/GlobalFooter/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
159
```javascript import React, { Component } from 'react'; import { Tooltip } from 'antd'; import classNames from 'classnames'; import styles from './index.less'; /* eslint react/no-did-mount-set-state: 0 */ /* eslint no-param-reassign: 0 */ const isSupportLineClamp = document.body.style.webkitLineClamp !== undefined; const TooltipOverlayStyle = { overflowWrap: 'break-word', wordWrap: 'break-word', }; export const getStrFullLength = (str = '') => str.split('').reduce((pre, cur) => { const charCode = cur.charCodeAt(0); if (charCode >= 0 && charCode <= 128) { return pre + 1; } return pre + 2; }, 0); export const cutStrByFullLength = (str = '', maxLength) => { let showLength = 0; return str.split('').reduce((pre, cur) => { const charCode = cur.charCodeAt(0); if (charCode >= 0 && charCode <= 128) { showLength += 1; } else { showLength += 2; } if (showLength <= maxLength) { return pre + cur; } return pre; }, ''); }; const getTooltip = ({ tooltip, overlayStyle, title, children }) => { if (tooltip) { const props = tooltip === true ? { overlayStyle, title } : { ...tooltip, overlayStyle, title }; return <Tooltip {...props}>{children}</Tooltip>; } return children; }; const EllipsisText = ({ text, length, tooltip, fullWidthRecognition, ...other }) => { if (typeof text !== 'string') { throw new Error('Ellipsis children must be string.'); } const textLength = fullWidthRecognition ? getStrFullLength(text) : text.length; if (textLength <= length || length < 0) { return <span {...other}>{text}</span>; } const tail = '...'; let displayText; if (length - tail.length <= 0) { displayText = ''; } else { displayText = fullWidthRecognition ? cutStrByFullLength(text, length) : text.slice(0, length); } const spanAttrs = tooltip ? {} : { ...other }; return getTooltip({ tooltip, overlayStyle: TooltipOverlayStyle, title: text, children: ( <span {...spanAttrs}> {displayText} {tail} </span> ), }); }; export default class Ellipsis extends Component { state = { text: '', targetCount: 0, }; componentDidMount() { if (this.node) { this.computeLine(); } } componentDidUpdate(perProps) { const { lines } = this.props; if (lines !== perProps.lines) { this.computeLine(); } } computeLine = () => { const { lines } = this.props; if (lines && !isSupportLineClamp) { const text = this.shadowChildren.innerText || this.shadowChildren.textContent; const lineHeight = parseInt(getComputedStyle(this.root).lineHeight, 10); const targetHeight = lines * lineHeight; this.content.style.height = `${targetHeight}px`; const totalHeight = this.shadowChildren.offsetHeight; const shadowNode = this.shadow.firstChild; if (totalHeight <= targetHeight) { this.setState({ text, targetCount: text.length, }); return; } // bisection const len = text.length; const mid = Math.ceil(len / 2); const count = this.bisection(targetHeight, mid, 0, len, text, shadowNode); this.setState({ text, targetCount: count, }); } }; bisection = (th, m, b, e, text, shadowNode) => { const suffix = '...'; let mid = m; let end = e; let begin = b; shadowNode.innerHTML = text.substring(0, mid) + suffix; let sh = shadowNode.offsetHeight; if (sh <= th) { shadowNode.innerHTML = text.substring(0, mid + 1) + suffix; sh = shadowNode.offsetHeight; if (sh > th || mid === begin) { return mid; } begin = mid; if (end - begin === 1) { mid = 1 + begin; } else { mid = Math.floor((end - begin) / 2) + begin; } return this.bisection(th, mid, begin, end, text, shadowNode); } if (mid - 1 < 0) { return mid; } shadowNode.innerHTML = text.substring(0, mid - 1) + suffix; sh = shadowNode.offsetHeight; if (sh <= th) { return mid - 1; } end = mid; mid = Math.floor((end - begin) / 2) + begin; return this.bisection(th, mid, begin, end, text, shadowNode); }; handleRoot = n => { this.root = n; }; handleContent = n => { this.content = n; }; handleNode = n => { this.node = n; }; handleShadow = n => { this.shadow = n; }; handleShadowChildren = n => { this.shadowChildren = n; }; render() { const { text, targetCount } = this.state; const { children, lines, length, className, tooltip, fullWidthRecognition, ...restProps } = this.props; const cls = classNames(styles.ellipsis, className, { [styles.lines]: lines && !isSupportLineClamp, [styles.lineClamp]: lines && isSupportLineClamp, }); if (!lines && !length) { return ( <span className={cls} {...restProps}> {children} </span> ); } // length if (!lines) { return ( <EllipsisText className={cls} length={length} text={children || ''} tooltip={tooltip} fullWidthRecognition={fullWidthRecognition} {...restProps} /> ); } const id = `antd-pro-ellipsis-${`${new Date().getTime()}${Math.floor(Math.random() * 100)}`}`; // support document.body.style.webkitLineClamp if (isSupportLineClamp) { const style = `#${id}{-webkit-line-clamp:${lines};-webkit-box-orient: vertical;}`; const node = ( <div id={id} className={cls} {...restProps}> <style>{style}</style> {children} </div> ); return getTooltip({ tooltip, overlayStyle: TooltipOverlayStyle, title: children, children: node, }); } const childNode = ( <span ref={this.handleNode}> {targetCount > 0 && text.substring(0, targetCount)} {targetCount > 0 && targetCount < text.length && '...'} </span> ); return ( <div {...restProps} ref={this.handleRoot} className={cls}> <div ref={this.handleContent}> {getTooltip({ tooltip, overlayStyle: TooltipOverlayStyle, title: text, children: childNode, })} <div className={styles.shadow} ref={this.handleShadowChildren}> {children} </div> <div className={styles.shadow} ref={this.handleShadow}> <span>{text}</span> </div> </div> </div> ); } } ```
/content/code_sandbox/src/components/Ellipsis/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1,692
```less .loader { background-color: #fff; width: 100%; position: absolute; top: 0; bottom: 0; left: 0; z-index: 100000; display: flex; justify-content: center; align-items: center; opacity: 1; text-align: center; &.fullScreen { position: fixed; } .warpper { width: 100px; height: 100px; display: inline-flex; flex-direction: column; justify-content: space-around; } .inner { width: 40px; height: 40px; margin: 0 auto; text-indent: -12345px; border-top: 1px solid rgba(0, 0, 0, 0.08); border-right: 1px solid rgba(0, 0, 0, 0.08); border-bottom: 1px solid rgba(0, 0, 0, 0.08); border-left: 1px solid rgba(0, 0, 0, 0.7); border-radius: 50%; z-index: 100001; :local { animation: spinner 600ms infinite linear; } } .text { width: 100px; height: 20px; text-align: center; font-size: 12px; letter-spacing: 4px; color: #000; } &.hidden { z-index: -1; opacity: 0; transition: opacity 1s ease 0.5s, z-index 0.1s ease 1.5s; } } @keyframes spinner { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } ```
/content/code_sandbox/src/components/Loader/Loader.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
421
```javascript import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import styles from './Loader.less' const Loader = ({ spinning = false, fullScreen }) => { return ( <div className={classNames(styles.loader, { [styles.hidden]: !spinning, [styles.fullScreen]: fullScreen, })} > <div className={styles.warpper}> <div className={styles.inner} /> <div className={styles.text}>LOADING</div> </div> </div> ) } Loader.propTypes = { spinning: PropTypes.bool, fullScreen: PropTypes.bool, } export default Loader ```
/content/code_sandbox/src/components/Loader/Loader.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
142
```less // ant-design: // path_to_url // // /* @import '../../node_modules/antd/lib/style/themes/default.less';*/ @border-radius-base: 3px; @border-radius-sm: 2px; @shadow-color: rgba(0, 0, 0, 0.05); @shadow-1-down: 4px 4px 40px @shadow-color; @border-color-split: #f4f4f4; @border-color-base: #e5e5e5; @font-size-base: 13px; @text-color: #666; @hover-color: #f9f9fc; ```
/content/code_sandbox/src/themes/default.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
139
```less @import '~themes/default.less'; @import '~themes/mixin.less'; ```
/content/code_sandbox/src/themes/vars.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
16
```less @import '~themes/default'; @dark-half: #494949; @purple: #d897eb; @shadow-1: 4px 4px 20px 0 rgba(0, 0, 0, 0.01); @shadow-2: 4px 4px 40px 0 rgba(0, 0, 0, 0.05); @transition-ease-in: all 0.3s ease-out; @transition-ease-out: all 0.3s ease-out; @ease-in: ease-in; .text-overflow { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } .text-gradient { background-image: -webkit-gradient( linear, 37.219838% 34.532506%, 36.425669% 93.178216%, from(#29cdff), to(#0a60ff), color-stop(0.37, #148eff) ); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .background-hover { transition: @transition-ease-in; &:hover { background-color: @hover-color; } } ```
/content/code_sandbox/src/themes/mixin.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
263
```less @import '~antd/dist/reset.css'; @import '~themes/vars.less'; body { height: 100%; overflow-y: auto; background-color: #f8f8f8; } ::-webkit-scrollbar-thumb { background-color: #e6e6e6; } ::-webkit-scrollbar { width: 8px; height: 8px; } .margin-right { margin-right: 16px; } :global { .ant-breadcrumb { & > span { &:last-child { color: #999; font-weight: normal; } } } .ant-breadcrumb-link { .anticon + span { margin-left: 4px; } } .ant-table { .ant-table-thead > tr > th { text-align: center; } .ant-table-tbody > tr > td { text-align: center; } &.ant-table-small { .ant-table-thead > tr > th { background: #f7f7f7; } .ant-table-body > table { padding: 0; } } } .ant-table-pagination { float: none !important; display: table; margin: 16px auto !important; } .ant-popover-inner { border: none; border-radius: 0; box-shadow: 0 0 20px rgba(100, 100, 100, 0.2); } .ant-form-item-control { vertical-align: middle; } .ant-modal-mask { background-color: rgba(55, 55, 55, 0.2); } .ant-modal-content { box-shadow: none; } .ant-select-dropdown-menu-item { padding: 12px 16px !important; } a:focus { text-decoration: none; } .ant-table-layout-fixed table { table-layout: auto; } } @media (min-width: 1600px) { :global { .ant-col-xl-48 { width: 20%; } .ant-col-xl-96 { width: 40%; } } } @media (max-width: 767px) { :global { .ant-pagination-item, .ant-pagination-next, .ant-pagination-options, .ant-pagination-prev { margin-bottom: 8px; } .ant-card { .ant-card-head { padding: 0 12px; } .ant-card-body { padding: 12px; } } } } ```
/content/code_sandbox/src/themes/index.less
less
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
574
```jsx import { PayCircleOutlined, ShoppingCartOutlined, MessageOutlined, TeamOutlined, UserOutlined, DashboardOutlined, ApiOutlined, CameraOutlined, EditOutlined, CodeOutlined, LineOutlined, BarChartOutlined, AreaChartOutlined, } from '@ant-design/icons' export default { 'pay-circle-o': <PayCircleOutlined />, 'shopping-cart': <ShoppingCartOutlined />, 'camera-o': <CameraOutlined />, 'line-chart': <LineOutlined />, 'code-o': <CodeOutlined />, 'area-chart': <AreaChartOutlined />, 'bar-chart': <BarChartOutlined />, message: <MessageOutlined />, team: <TeamOutlined />, dashboard: <DashboardOutlined />, user: <UserOutlined />, api: <ApiOutlined />, edit: <EditOutlined />, } ```
/content/code_sandbox/src/utils/iconMap.jsx
jsx
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
179
```javascript import modelExtend from 'dva-model-extend' export const model = { reducers: { updateState(state, { payload }) { return { ...state, ...payload, } }, }, } export const pageModel = modelExtend(model, { state: { list: [], pagination: { showSizeChanger: true, showQuickJumper: true, current: 1, total: 0, pageSize: 10, }, }, reducers: { querySuccess(state, { payload }) { const { list, pagination } = payload return { ...state, list, pagination: { ...state.pagination, ...pagination, }, } }, }, }) ```
/content/code_sandbox/src/utils/model.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
163
```javascript /* global window */ import { history } from 'umi' import { stringify } from 'qs' import store from 'store' const { pathToRegexp } = require("path-to-regexp") import { ROLE_TYPE } from 'utils/constant' import { queryLayout } from 'utils' import { CANCEL_REQUEST_MESSAGE } from 'utils/constant' import api from 'api' import config from 'config' const { queryRouteList, logoutUser, queryUserInfo } = api const goDashboard = () => { if (pathToRegexp(['/', '/login']).exec(window.location.pathname)) { history.push({ pathname: '/dashboard', }) } } export default { namespace: 'app', state: { routeList: [ { id: '1', icon: 'laptop', name: 'Dashboard', zhName: '', router: '/dashboard', }, ], locationPathname: '', locationQuery: {}, theme: store.get('theme') || 'light', collapsed: store.get('collapsed') || false, notifications: [ { title: 'New User is registered.', date: new Date(Date.now() - 10000000), }, { title: 'Application has been approved.', date: new Date(Date.now() - 50000000), }, ], }, subscriptions: { setup({ dispatch }) { dispatch({ type: 'query' }) }, setupHistory({ dispatch, history }) { history.listen(location => { dispatch({ type: 'updateState', payload: { locationPathname: location.pathname, locationQuery: location.query, }, }) }) }, setupRequestCancel({ history }) { history.listen(() => { const { cancelRequest = new Map() } = window cancelRequest.forEach((value, key) => { if (value.pathname !== window.location.pathname) { value.cancel(CANCEL_REQUEST_MESSAGE) cancelRequest.delete(key) } }) }) }, }, effects: { *query({ payload }, { call, put, select }) { // store isInit to prevent query trigger by refresh const isInit = store.get('isInit') if (isInit) { goDashboard() return } const { locationPathname } = yield select(_ => _.app) const { success, user } = yield call(queryUserInfo, payload) if (success && user) { const { list } = yield call(queryRouteList) const { permissions } = user let routeList = list if ( permissions.role === ROLE_TYPE.ADMIN || permissions.role === ROLE_TYPE.DEVELOPER ) { permissions.visit = list.map(item => item.id) } else { routeList = list.filter(item => { const cases = [ permissions.visit.includes(item.id), item.mpid ? permissions.visit.includes(item.mpid) || item.mpid === '-1' : true, item.bpid ? permissions.visit.includes(item.bpid) : true, ] return cases.every(_ => _) }) } store.set('routeList', routeList) store.set('permissions', permissions) store.set('user', user) store.set('isInit', true) goDashboard() } else if (queryLayout(config.layouts, locationPathname) !== 'public') { history.push({ pathname: '/login', search: stringify({ from: locationPathname, }), }) } }, *signOut({ payload }, { call, put }) { const data = yield call(logoutUser) if (data.success) { store.set('routeList', []) store.set('permissions', { visit: [] }) store.set('user', {}) store.set('isInit', false) yield put({ type: 'query' }) } else { throw data } }, }, reducers: { updateState(state, { payload }) { return { ...state, ...payload, } }, handleThemeChange(state, { payload }) { store.set('theme', payload) state.theme = payload }, handleCollapseChange(state, { payload }) { store.set('collapsed', payload) state.collapsed = payload }, allNotificationsRead(state) { state.notifications = [] }, }, } ```
/content/code_sandbox/src/models/app.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
949
```javascript export const ROLE_TYPE = { ADMIN: 'admin', DEFAULT: 'admin', DEVELOPER: 'developer', } export const CANCEL_REQUEST_MESSAGE = 'cancel request' ```
/content/code_sandbox/src/utils/constant.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
38
```javascript module.exports = { siteName: 'AntD Admin', copyright: 'Ant Design Admin 2020 zuiidea', logoPath: '/logo.svg', apiPrefix: '/api/v1', fixedHeader: true, // sticky primary layout header /* Layout configuration, specify which layout to use for route. */ layouts: [ { name: 'primary', include: [/.*/], exclude: [/(\/(en|zh))*\/login/], }, ], /* I18n configuration, `languages` and `defaultLanguage` are required currently. */ i18n: { /* Countrys flags: path_to_url */ languages: [ { key: 'pt-br', title: 'Portugus', flag: '/portugal.svg', }, { key: 'en', title: 'English', flag: '/america.svg', }, { key: 'zh', title: '', flag: '/china.svg', }, ], defaultLanguage: 'en', }, } ```
/content/code_sandbox/src/utils/config.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
234
```javascript module.exports = { Color: { green: '#64ea91', blue: '#8fc9fb', purple: '#d897eb', red: '#f69899', yellow: '#f8c82e', peach: '#f797d6', borderBase: '#e5e5e5', borderSplit: '#f4f4f4', grass: '#d6fbb5', sky: '#c1e0fc', }, } ```
/content/code_sandbox/src/utils/theme.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
108
```javascript import axios from 'axios' import { cloneDeep } from 'lodash' const { parse, compile } = require("path-to-regexp") import { message } from 'antd' import { CANCEL_REQUEST_MESSAGE } from 'utils/constant' const { CancelToken } = axios window.cancelRequest = new Map() export default function request(options) { let { data, url } = options const cloneData = cloneDeep(data) try { let domain = '' const urlMatch = url.match(/[a-zA-z]+:\/\/[^/]*/) if (urlMatch) { ;[domain] = urlMatch url = url.slice(domain.length) } const match = parse(url) url = compile(url)(data) for (const item of match) { if (item instanceof Object && item.name in cloneData) { delete cloneData[item.name] } } url = domain + url } catch (e) { message.error(e.message) } options.url = url options.cancelToken = new CancelToken(cancel => { window.cancelRequest.set(Symbol(Date.now()), { pathname: window.location.pathname, cancel, }) }) return axios(options) .then(response => { const { statusText, status, data } = response let result = {} if (typeof data === 'object') { result = data if (Array.isArray(data)) { result.list = data } } else { result.data = data } return Promise.resolve({ success: true, message: statusText, statusCode: status, ...result, }) }) .catch(error => { const { response, message } = error if (String(message) === CANCEL_REQUEST_MESSAGE) { return { success: false, } } let msg let statusCode if (response && response instanceof Object) { const { data, statusText } = response statusCode = response.status msg = data.message || statusText } else { statusCode = 600 msg = error.message || 'Network Error' } /* eslint-disable */ return Promise.reject({ success: false, statusCode, message: msg, }) }) } ```
/content/code_sandbox/src/utils/request.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
489
```javascript const { pathToRegexp } = require("path-to-regexp") describe('test pathToRegexp', () => { it('get right', () => { expect(pathToRegexp('/user').exec('/zh/user')).toEqual( pathToRegexp('/user').exec('/user') ) expect(pathToRegexp('/user').exec('/user')).toEqual( pathToRegexp('/user').exec('/user') ) expect(pathToRegexp('/user/:id').exec('/zh/user/1')).toEqual( pathToRegexp('/user/:id').exec('/user/1') ) expect(pathToRegexp('/user/:id').exec('/user/1')).toEqual( pathToRegexp('/user/:id').exec('/user/1') ) }) }) ```
/content/code_sandbox/src/utils/index.test.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
172
```javascript import { cloneDeep } from 'lodash' const { pathToRegexp } = require("path-to-regexp") import store from 'store' import { i18n } from './config' import dayjs from 'dayjs' import relativeTime from 'dayjs/plugin/relativeTime' import 'dayjs/locale/zh-cn' dayjs.extend(relativeTime) export classnames from 'classnames' export config from './config' export request from './request' export { Color } from './theme' export const languages = i18n ? i18n.languages.map(item => item.key) : [] export const defaultLanguage = i18n ? i18n.defaultLanguage : '' /** * Query objects that specify keys and values in an array where all values are objects. * @param {array} array An array where all values are objects, like [{key:1},{key:2}]. * @param {string} key The key of the object that needs to be queried. * @param {string} value The value of the object that needs to be queried. * @return {object|undefined} Return frist object when query success. */ export function queryArray(array, key, value) { if (!Array.isArray(array)) { return } return array.find(_ => _[key] === value) } /** * Convert an array to a tree-structured array. * @param {array} array The Array need to Converted. * @param {string} id The alias of the unique ID of the object in the array. * @param {string} parentId The alias of the parent ID of the object in the array. * @param {string} children The alias of children of the object in the array. * @return {array} Return a tree-structured array. */ export function arrayToTree( array, id = 'id', parentId = 'pid', children = 'children' ) { const result = [] const hash = {} const data = cloneDeep(array) data.forEach((item, index) => { hash[data[index][id]] = data[index] }) data.forEach(item => { const hashParent = hash[item[parentId]] if (hashParent) { !hashParent[children] && (hashParent[children] = []) hashParent[children].push(item) } else { result.push(item) } }) return result } /** * In an array object, traverse all parent IDs based on the value of an object. * @param {array} array The Array need to Converted. * @param {string} current Specify the value of the object that needs to be queried. * @param {string} parentId The alias of the parent ID of the object in the array. * @param {string} id The alias of the unique ID of the object in the array. * @return {array} Return a key array. */ export function queryPathKeys(array, current, parentId, id = 'id') { const result = [current] const hashMap = new Map() array.forEach(item => hashMap.set(item[id], item)) const getPath = current => { const currentParentId = hashMap.get(current)[parentId] if (currentParentId) { result.push(currentParentId) getPath(currentParentId) } } getPath(current) return result } /** * In an array of objects, specify an object that traverses the objects whose parent ID matches. * @param {array} array The Array need to Converted. * @param {string} current Specify the object that needs to be queried. * @param {string} parentId The alias of the parent ID of the object in the array. * @param {string} id The alias of the unique ID of the object in the array. * @return {array} Return a key array. */ export function queryAncestors(array, current, parentId, id = 'id') { const result = [current] const hashMap = new Map() array.forEach(item => hashMap.set(item[id], item)) const getPath = current => { const currentParentId = hashMap.get(current[id])[parentId] if (currentParentId) { result.push(hashMap.get(currentParentId)) getPath(hashMap.get(currentParentId)) } } getPath(current) return result } /** * Query which layout should be used for the current path based on the configuration. * @param {layouts} layouts Layout configuration. * @param {pathname} pathname Path name to be queried. * @return {string} Return frist object when query success. */ export function queryLayout(layouts, pathname) { let result = 'public' const isMatch = regepx => { return regepx instanceof RegExp ? regepx.test(pathname) : pathToRegexp(regepx).exec(pathname) } for (const item of layouts) { let include = false let exclude = false if (item.include) { for (const regepx of item.include) { if (isMatch(regepx)) { include = true break } } } if (include && item.exclude) { for (const regepx of item.exclude) { if (isMatch(regepx)) { exclude = true break } } } if (include && !exclude) { result = item.name break } } return result } export function getLocale() { return store.get('locale') || defaultLanguage } export function setLocale(language) { if (getLocale() !== language) { dayjs.locale(language === 'zh' ? 'zh-cn' : language) store.set('locale', language) window.location.reload() } } ```
/content/code_sandbox/src/utils/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
1,290
```javascript export default { queryRouteList: '/routes', queryUserInfo: '/user', logoutUser: '/user/logout', loginUser: 'POST /user/login', queryUser: '/user/:id', queryUserList: '/users', updateUser: 'Patch /user/:id', createUser: 'POST /user', removeUser: 'DELETE /user/:id', removeUserList: 'POST /users/delete', queryPostList: '/posts', queryDashboard: '/dashboard', } ```
/content/code_sandbox/src/services/api.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
109
```javascript import request from 'utils/request' import { apiPrefix } from 'utils/config' import api from './api' const gen = params => { let url = apiPrefix + params let method = 'GET' const paramsArray = params.split(' ') if (paramsArray.length === 2) { method = paramsArray[0] url = apiPrefix + paramsArray[1] } return function(data) { return request({ url, data, method, }) } } const APIFunction = {} for (const key in api) { APIFunction[key] = gen(api[key]) } APIFunction.queryWeather = params => { params.key = 'i7sau1babuzwhycn' return request({ url: `${apiPrefix}/weather/now.json`, data: params, }) } export default APIFunction ```
/content/code_sandbox/src/services/index.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
188
```javascript /* ## Address path_to_url **** ```js var map = {} _.each(_.keys(REGIONS),function(id){ map[id] = REGIONS[ID] }) JSON.stringify(map) ``` */ let DICT = { 110000: '', 110100: '', 110101: '', 110102: '', 110105: '', 110106: '', 110107: '', 110108: '', 110109: '', 110111: '', 110112: '', 110113: '', 110114: '', 110115: '', 110116: '', 110117: '', 110228: '', 110229: '', 110230: '', 120000: '', 120100: '', 120101: '', 120102: '', 120103: '', 120104: '', 120105: '', 120106: '', 120110: '', 120111: '', 120112: '', 120113: '', 120114: '', 120115: '', 120116: '', 120221: '', 120223: '', 120225: '', 120226: '', 130000: '', 130100: '', 130102: '', 130103: '', 130104: '', 130105: '', 130107: '', 130108: '', 130121: '', 130123: '', 130124: '', 130125: '', 130126: '', 130127: '', 130128: '', 130129: '', 130130: '', 130131: '', 130132: '', 130133: '', 130181: '', 130182: '', 130183: '', 130184: '', 130185: '', 130186: '', 130200: '', 130202: '', 130203: '', 130204: '', 130205: '', 130207: '', 130208: '', 130223: '', 130224: '', 130225: '', 130227: '', 130229: '', 130230: '', 130281: '', 130283: '', 130284: '', 130300: '', 130302: '', 130303: '', 130304: '', 130321: '', 130322: '', 130323: '', 130324: '', 130398: '', 130400: '', 130402: '', 130403: '', 130404: '', 130406: '', 130421: '', 130423: '', 130424: '', 130425: '', 130426: '', 130427: '', 130428: '', 130429: '', 130430: '', 130431: '', 130432: '', 130433: '', 130434: '', 130435: '', 130481: '', 130482: '', 130500: '', 130502: '', 130503: '', 130521: '', 130522: '', 130523: '', 130524: '', 130525: '', 130526: '', 130527: '', 130528: '', 130529: '', 130530: '', 130531: '', 130532: '', 130533: '', 130534: '', 130535: '', 130581: '', 130582: '', 130583: '', 130600: '', 130602: '', 130603: '', 130604: '', 130621: '', 130622: '', 130623: '', 130624: '', 130625: '', 130626: '', 130627: '', 130628: '', 130629: '', 130630: '', 130631: '', 130632: '', 130633: '', 130634: '', 130635: '', 130636: '', 130637: '', 130638: '', 130681: '', 130682: '', 130683: '', 130684: '', 130699: '', 130700: '', 130702: '', 130703: '', 130705: '', 130706: '', 130721: '', 130722: '', 130723: '', 130724: '', 130725: '', 130726: '', 130727: '', 130728: '', 130729: '', 130730: '', 130731: '', 130732: '', 130733: '', 130734: '', 130800: '', 130802: '', 130803: '', 130804: '', 130821: '', 130822: '', 130823: '', 130824: '', 130825: '', 130826: '', 130827: '', 130828: '', 130829: '', 130900: '', 130902: '', 130903: '', 130921: '', 130922: '', 130923: '', 130924: '', 130925: '', 130926: '', 130927: '', 130928: '', 130929: '', 130930: '', 130981: '', 130982: '', 130983: '', 130984: '', 130985: '', 131000: '', 131002: '', 131003: '', 131022: '', 131023: '', 131024: '', 131025: '', 131026: '', 131028: '', 131081: '', 131082: '', 131083: '', 131100: '', 131102: '', 131121: '', 131122: '', 131123: '', 131124: '', 131125: '', 131126: '', 131127: '', 131128: '', 131181: '', 131182: '', 131183: '', 140000: '', 140100: '', 140105: '', 140106: '', 140107: '', 140108: '', 140109: '', 140110: '', 140121: '', 140122: '', 140123: '', 140181: '', 140182: '', 140200: '', 140202: '', 140203: '', 140211: '', 140212: '', 140221: '', 140222: '', 140223: '', 140224: '', 140225: '', 140226: '', 140227: '', 140228: '', 140300: '', 140302: '', 140303: '', 140311: '', 140321: '', 140322: '', 140323: '', 140400: '', 140421: '', 140423: '', 140424: '', 140425: '', 140426: '', 140427: '', 140428: '', 140429: '', 140430: '', 140431: '', 140481: '', 140482: '', 140483: '', 140485: '', 140500: '', 140502: '', 140521: '', 140522: '', 140524: '', 140525: '', 140581: '', 140582: '', 140600: '', 140602: '', 140603: '', 140621: '', 140622: '', 140623: '', 140624: '', 140625: '', 140700: '', 140702: '', 140721: '', 140722: '', 140723: '', 140724: '', 140725: '', 140726: '', 140727: '', 140728: '', 140729: '', 140781: '', 140782: '', 140800: '', 140802: '', 140821: '', 140822: '', 140823: '', 140824: '', 140825: '', 140826: '', 140827: '', 140828: '', 140829: '', 140830: '', 140881: '', 140882: '', 140883: '', 140900: '', 140902: '', 140921: '', 140922: '', 140923: '', 140924: '', 140925: '', 140926: '', 140927: '', 140928: '', 140929: '', 140930: '', 140931: '', 140932: '', 140981: '', 140982: '', 141000: '', 141002: '', 141021: '', 141022: '', 141023: '', 141024: '', 141025: '', 141026: '', 141027: '', 141028: '', 141029: '', 141030: '', 141031: '', 141032: '', 141033: '', 141034: '', 141081: '', 141082: '', 141083: '', 141100: '', 141102: '', 141121: '', 141122: '', 141123: '', 141124: '', 141125: '', 141126: '', 141127: '', 141128: '', 141129: '', 141130: '', 141181: '', 141182: '', 141183: '', 150000: '', 150100: '', 150102: '', 150103: '', 150104: '', 150105: '', 150121: '', 150122: '', 150123: '', 150124: '', 150125: '', 150126: '', 150200: '', 150202: '', 150203: '', 150204: '', 150205: '', 150206: '', 150207: '', 150221: '', 150222: '', 150223: '', 150224: '', 150300: '', 150302: '', 150303: '', 150304: '', 150305: '', 150400: '', 150402: '', 150403: '', 150404: '', 150421: '', 150422: '', 150423: '', 150424: '', 150425: '', 150426: '', 150428: '', 150429: '', 150430: '', 150431: '', 150500: '', 150502: '', 150521: '', 150522: '', 150523: '', 150524: '', 150525: '', 150526: '', 150581: '', 150582: '', 150600: '', 150602: '', 150621: '', 150622: '', 150623: '', 150624: '', 150625: '', 150626: '', 150627: '', 150628: '', 150700: '', 150702: '', 150703: '', 150721: '', 150722: '', 150723: '', 150724: '', 150725: '', 150726: '', 150727: '', 150781: '', 150782: '', 150783: '', 150784: '', 150785: '', 150786: '', 150800: '', 150802: '', 150821: '', 150822: '', 150823: '', 150824: '', 150825: '', 150826: '', 150827: '', 150900: '', 150902: '', 150921: '', 150922: '', 150923: '', 150924: '', 150925: '', 150926: '', 150927: '', 150928: '', 150929: '', 150981: '', 150982: '', 152200: '', 152201: '', 152202: '', 152221: '', 152222: '', 152223: '', 152224: '', 152225: '', 152500: '', 152501: '', 152502: '', 152522: '', 152523: '', 152524: '', 152525: '', 152526: '', 152527: '', 152528: '', 152529: '', 152530: '', 152531: '', 152532: '', 152900: '', 152921: '', 152922: '', 152923: '', 152924: '', 210000: '', 210100: '', 210102: '', 210103: '', 210104: '', 210105: '', 210106: '', 210111: '', 210112: '', 210113: '', 210114: '', 210122: '', 210123: '', 210124: '', 210181: '', 210184: '', 210185: '', 210200: '', 210202: '', 210203: '', 210204: '', 210211: '', 210212: '', 210213: '', 210224: '', 210281: '', 210282: '', 210283: '', 210298: '', 210300: '', 210302: '', 210303: '', 210304: '', 210311: '', 210321: '', 210323: '', 210381: '', 210382: '', 210400: '', 210402: '', 210403: '', 210404: '', 210411: '', 210421: '', 210422: '', 210423: '', 210424: '', 210500: '', 210502: '', 210503: '', 210504: '', 210505: '', 210521: '', 210522: '', 210523: '', 210600: '', 210602: '', 210603: '', 210604: '', 210624: '', 210681: '', 210682: '', 210683: '', 210700: '', 210702: '', 210703: '', 210711: '', 210726: '', 210727: '', 210781: '', 210782: '', 210783: '', 210800: '', 210802: '', 210803: '', 210804: '', 210811: '', 210881: '', 210882: '', 210883: '', 210900: '', 210902: '', 210903: '', 210904: '', 210905: '', 210911: '', 210921: '', 210922: '', 210923: '', 211000: '', 211002: '', 211003: '', 211004: '', 211005: '', 211011: '', 211021: '', 211081: '', 211082: '', 211100: '', 211102: '', 211103: '', 211121: '', 211122: '', 211123: '', 211200: '', 211202: '', 211204: '', 211221: '', 211223: '', 211224: '', 211281: '', 211282: '', 211283: '', 211300: '', 211302: '', 211303: '', 211321: '', 211322: '', 211324: '', 211381: '', 211382: '', 211383: '', 211400: '', 211402: '', 211403: '', 211404: '', 211421: '', 211422: '', 211481: '', 211482: '', 220000: '', 220100: '', 220102: '', 220103: '', 220104: '', 220105: '', 220106: '', 220112: '', 220122: '', 220181: '', 220182: '', 220183: '', 220188: '', 220200: '', 220202: '', 220203: '', 220204: '', 220211: '', 220221: '', 220281: '', 220282: '', 220283: '', 220284: '', 220285: '', 220300: '', 220302: '', 220303: '', 220322: '', 220323: '', 220381: '', 220382: '', 220383: '', 220400: '', 220402: '', 220403: '', 220421: '', 220422: '', 220423: '', 220500: '', 220502: '', 220503: '', 220521: '', 220523: '', 220524: '', 220581: '', 220582: '', 220583: '', 220600: '', 220602: '', 220621: '', 220622: '', 220623: '', 220625: '', 220681: '', 220682: '', 220700: '', 220702: '', 220721: '', 220722: '', 220723: '', 220724: '', 220725: '', 220800: '', 220802: '', 220821: '', 220822: '', 220881: '', 220882: '', 220883: '', 222400: '', 222401: '', 222402: '', 222403: '', 222404: '', 222405: '', 222406: '', 222424: '', 222426: '', 222427: '', 230000: '', 230100: '', 230102: '', 230103: '', 230104: '', 230106: '', 230108: '', 230109: '', 230111: '', 230123: '', 230124: '', 230125: '', 230126: '', 230127: '', 230128: '', 230129: '', 230181: '', 230182: '', 230183: '', 230184: '', 230186: '', 230200: '', 230202: '', 230203: '', 230204: '', 230205: '', 230206: '', 230207: '', 230208: '', 230221: '', 230223: '', 230224: '', 230225: '', 230227: '', 230229: '', 230230: '', 230231: '', 230281: '', 230282: '', 230300: '', 230302: '', 230303: '', 230304: '', 230305: '', 230306: '', 230307: '', 230321: '', 230381: '', 230382: '', 230383: '', 230400: '', 230402: '', 230403: '', 230404: '', 230405: '', 230406: '', 230407: '', 230421: '', 230422: '', 230423: '', 230500: '', 230502: '', 230503: '', 230505: '', 230506: '', 230521: '', 230522: '', 230523: '', 230524: '', 230525: '', 230600: '', 230602: '', 230603: '', 230604: '', 230605: '', 230606: '', 230621: '', 230622: '', 230623: '', 230624: '', 230625: '', 230700: '', 230702: '', 230703: '', 230704: '', 230705: '', 230706: '', 230707: '', 230708: '', 230709: '', 230710: '', 230711: '', 230712: '', 230713: '', 230714: '', 230715: '', 230716: '', 230722: '', 230781: '', 230782: '', 230800: '', 230803: '', 230804: '', 230805: '', 230811: '', 230822: '', 230826: '', 230828: '', 230833: '', 230881: '', 230882: '', 230883: '', 230900: '', 230902: '', 230903: '', 230904: '', 230921: '', 230922: '', 231000: '', 231002: '', 231003: '', 231004: '', 231005: '', 231024: '', 231025: '', 231081: '', 231083: '', 231084: '', 231085: '', 231086: '', 231100: '', 231102: '', 231121: '', 231123: '', 231124: '', 231181: '', 231182: '', 231183: '', 231200: '', 231202: '', 231221: '', 231222: '', 231223: '', 231224: '', 231225: '', 231226: '', 231281: '', 231282: '', 231283: '', 231284: '', 232700: '', 232702: '', 232703: '', 232704: '', 232721: '', 232722: '', 232723: '', 232724: '', 232725: '', 310000: '', 310100: '', 310101: '', 310104: '', 310105: '', 310106: '', 310107: '', 310108: '', 310109: '', 310110: '', 310112: '', 310113: '', 310114: '', 310115: '', 310116: '', 310117: '', 310118: '', 310120: '', 310230: '', 310231: '', 320000: '', 320100: '', 320102: '', 320104: '', 320105: '', 320106: '', 320111: '', 320113: '', 320114: '', 320115: '', 320116: '', 320124: '', 320125: '', 320126: '', 320200: '', 320202: '', 320203: '', 320204: '', 320205: '', 320206: '', 320211: '', 320281: '', 320282: '', 320297: '', 320300: '', 320302: '', 320303: '', 320305: '', 320311: '', 320321: '', 320322: '', 320323: '', 320324: '', 320381: '', 320382: '', 320383: '', 320400: '', 320402: '', 320404: '', 320405: '', 320411: '', 320412: '', 320481: '', 320482: '', 320483: '', 320500: '', 320505: '', 320506: '', 320507: '', 320508: '', 320581: '', 320582: '', 320583: '', 320584: '', 320585: '', 320596: '', 320600: '', 320602: '', 320611: '', 320612: '', 320621: '', 320623: '', 320681: '', 320682: '', 320684: '', 320694: '', 320700: '', 320703: '', 320705: '', 320706: '', 320721: '', 320722: '', 320723: '', 320724: '', 320725: '', 320800: '', 320802: '', 320803: '', 320804: '', 320811: '', 320826: '', 320829: '', 320830: '', 320831: '', 320832: '', 320900: '', 320902: '', 320903: '', 320921: '', 320922: '', 320923: '', 320924: '', 320925: '', 320981: '', 320982: '', 320983: '', 321000: '', 321002: '', 321003: '', 321023: '', 321081: '', 321084: '', 321088: '', 321093: '', 321100: '', 321102: '', 321111: '', 321112: '', 321181: '', 321182: '', 321183: '', 321184: '', 321200: '', 321202: '', 321203: '', 321281: '', 321282: '', 321283: '', 321284: '', 321285: '', 321300: '', 321302: '', 321311: '', 321322: '', 321323: '', 321324: '', 321325: '', 330000: '', 330100: '', 330102: '', 330103: '', 330104: '', 330105: '', 330106: '', 330108: '', 330109: '', 330110: '', 330122: '', 330127: '', 330182: '', 330183: '', 330185: '', 330186: '', 330200: '', 330203: '', 330204: '', 330205: '', 330206: '', 330211: '', 330212: '', 330225: '', 330226: '', 330281: '', 330282: '', 330283: '', 330284: '', 330300: '', 330302: '', 330303: '', 330304: '', 330322: '', 330324: '', 330326: '', 330327: '', 330328: '', 330329: '', 330381: '', 330382: '', 330383: '', 330400: '', 330402: '', 330411: '', 330421: '', 330424: '', 330481: '', 330482: '', 330483: '', 330484: '', 330500: '', 330502: '', 330503: '', 330521: '', 330522: '', 330523: '', 330524: '', 330600: '', 330602: '', 330621: '', 330624: '', 330681: '', 330682: '', 330683: '', 330684: '', 330700: '', 330702: '', 330703: '', 330723: '', 330726: '', 330727: '', 330781: '', 330782: '', 330783: '', 330784: '', 330785: '', 330800: '', 330802: '', 330803: '', 330822: '', 330824: '', 330825: '', 330881: '', 330882: '', 330900: '', 330902: '', 330903: '', 330921: '', 330922: '', 330923: '', 331000: '', 331002: '', 331003: '', 331004: '', 331021: '', 331022: '', 331023: '', 331024: '', 331081: '', 331082: '', 331083: '', 331100: '', 331102: '', 331121: '', 331122: '', 331123: '', 331124: '', 331125: '', 331126: '', 331127: '', 331181: '', 331182: '', 340000: '', 340100: '', 340102: '', 340103: '', 340104: '', 340111: '', 340121: '', 340122: '', 340123: '', 340192: '', 340200: '', 340202: '', 340203: '', 340207: '', 340208: '', 340221: '', 340222: '', 340223: '', 340224: '', 340300: '', 340302: '', 340303: '', 340304: '', 340311: '', 340321: '', 340322: '', 340323: '', 340324: '', 340400: '', 340402: '', 340403: '', 340404: '', 340405: '', 340406: '', 340421: '', 340422: '', 340500: '', 340503: '', 340504: '', 340506: '', 340521: '', 340522: '', 340600: '', 340602: '', 340603: '', 340604: '', 340621: '', 340622: '', 340700: '', 340702: '', 340703: '', 340711: '', 340721: '', 340722: '', 340800: '', 340802: '', 340803: '', 340811: '', 340822: '', 340823: '', 340824: '', 340825: '', 340826: '', 340827: '', 340828: '', 340881: '', 340882: '', 341000: '', 341002: '', 341003: '', 341004: '', 341021: '', 341022: '', 341023: '', 341024: '', 341025: '', 341100: '', 341102: '', 341103: '', 341122: '', 341124: '', 341125: '', 341126: '', 341181: '', 341182: '', 341183: '', 341200: '', 341202: '', 341203: '', 341204: '', 341221: '', 341222: '', 341225: '', 341226: '', 341282: '', 341283: '', 341300: '', 341302: '', 341321: '', 341322: '', 341323: '', 341324: '', 341325: '', 341400: '', 341421: '', 341422: '', 341423: '', 341424: '', 341500: '', 341502: '', 341503: '', 341521: '', 341522: '', 341523: '', 341524: '', 341525: '', 341526: '', 341600: '', 341602: '', 341621: '', 341622: '', 341623: '', 341624: '', 341700: '', 341702: '', 341721: '', 341722: '', 341723: '', 341724: '', 341800: '', 341802: '', 341821: '', 341822: '', 341823: '', 341824: '', 341825: '', 341881: '', 341882: '', 350000: '', 350100: '', 350102: '', 350103: '', 350104: '', 350105: '', 350111: '', 350121: '', 350122: '', 350123: '', 350124: '', 350125: '', 350128: '', 350181: '', 350182: '', 350183: '', 350200: '', 350203: '', 350205: '', 350206: '', 350211: '', 350212: '', 350213: '', 350214: '', 350300: '', 350302: '', 350303: '', 350304: '', 350305: '', 350322: '', 350323: '', 350400: '', 350402: '', 350403: '', 350421: '', 350423: '', 350424: '', 350425: '', 350426: '', 350427: '', 350428: '', 350429: '', 350430: '', 350481: '', 350482: '', 350500: '', 350502: '', 350503: '', 350504: '', 350505: '', 350521: '', 350524: '', 350525: '', 350526: '', 350527: '', 350581: '', 350582: '', 350583: '', 350584: '', 350600: '', 350602: '', 350603: '', 350622: '', 350623: '', 350624: '', 350625: '', 350626: '', 350627: '', 350628: '', 350629: '', 350681: '', 350682: '', 350700: '', 350702: '', 350721: '', 350722: '', 350723: '', 350724: '', 350725: '', 350781: '', 350782: '', 350783: '', 350784: '', 350785: '', 350800: '', 350802: '', 350821: '', 350822: '', 350823: '', 350824: '', 350825: '', 350881: '', 350882: '', 350900: '', 350902: '', 350921: '', 350922: '', 350923: '', 350924: '', 350925: '', 350926: '', 350981: '', 350982: '', 350983: '', 360000: '', 360100: '', 360102: '', 360103: '', 360104: '', 360105: '', 360111: '', 360121: '', 360122: '', 360123: '', 360124: '', 360128: '', 360200: '', 360202: '', 360203: '', 360222: '', 360281: '', 360282: '', 360300: '', 360302: '', 360313: '', 360321: '', 360322: '', 360323: '', 360324: '', 360400: '', 360402: '', 360403: '', 360421: '', 360423: '', 360424: '', 360425: '', 360426: '', 360427: '', 360428: '', 360429: '', 360430: '', 360481: '', 360482: '', 360483: '', 360500: '', 360502: '', 360521: '', 360522: '', 360600: '', 360602: '', 360622: '', 360681: '', 360682: '', 360700: '', 360702: '', 360721: '', 360722: '', 360723: '', 360724: '', 360725: '', 360726: '', 360727: '', 360728: '', 360729: '', 360730: '', 360731: '', 360732: '', 360733: '', 360734: '', 360735: '', 360781: '', 360782: '', 360783: '', 360800: '', 360802: '', 360803: '', 360821: '', 360822: '', 360823: '', 360824: '', 360825: '', 360826: '', 360827: '', 360828: '', 360829: '', 360830: '', 360881: '', 360882: '', 360900: '', 360902: '', 360921: '', 360922: '', 360923: '', 360924: '', 360925: '', 360926: '', 360981: '', 360982: '', 360983: '', 360984: '', 361000: '', 361002: '', 361021: '', 361022: '', 361023: '', 361024: '', 361025: '', 361026: '', 361027: '', 361028: '', 361029: '', 361030: '', 361031: '', 361100: '', 361102: '', 361121: '', 361122: '', 361123: '', 361124: '', 361125: '', 361126: '', 361127: '', 361128: '', 361129: '', 361130: '', 361181: '', 361182: '', 370000: '', 370100: '', 370102: '', 370103: '', 370104: '', 370105: '', 370112: '', 370113: '', 370124: '', 370125: '', 370126: '', 370181: '', 370182: '', 370200: '', 370202: '', 370203: '', 370211: '', 370212: '', 370213: '', 370214: '', 370281: '', 370282: '', 370283: '', 370285: '', 370286: '', 370300: '', 370302: '', 370303: '', 370304: '', 370305: '', 370306: '', 370321: '', 370322: '', 370323: '', 370324: '', 370400: '', 370402: '', 370403: '', 370404: '', 370405: '', 370406: '', 370481: '', 370482: '', 370500: '', 370502: '', 370503: '', 370521: '', 370522: '', 370523: '', 370591: '', 370600: '', 370602: '', 370611: '', 370612: '', 370613: '', 370634: '', 370681: '', 370682: '', 370683: '', 370684: '', 370685: '', 370686: '', 370687: '', 370688: '', 370700: '', 370702: '', 370703: '', 370704: '', 370705: '', 370724: '', 370725: '', 370781: '', 370782: '', 370783: '', 370784: '', 370785: '', 370786: '', 370787: '', 370800: '', 370802: '', 370811: '', 370826: '', 370827: '', 370828: '', 370829: '', 370830: '', 370831: '', 370832: '', 370881: '', 370882: '', 370883: '', 370884: '', 370900: '', 370902: '', 370903: '', 370921: '', 370923: '', 370982: '', 370983: '', 370984: '', 371000: '', 371002: '', 371081: '', 371082: '', 371083: '', 371084: '', 371100: '', 371102: '', 371103: '', 371121: '', 371122: '', 371123: '', 371200: '', 371202: '', 371203: '', 371204: '', 371300: '', 371302: '', 371311: '', 371312: '', 371321: '', 371322: '', 371323: '', 371324: '', 371325: '', 371326: '', 371327: '', 371328: '', 371329: '', 371330: '', 371400: '', 371402: '', 371421: '', 371422: '', 371423: '', 371424: '', 371425: '', 371426: '', 371427: '', 371428: '', 371481: '', 371482: '', 371483: '', 371500: '', 371502: '', 371521: '', 371522: '', 371523: '', 371524: '', 371525: '', 371526: '', 371581: '', 371582: '', 371600: '', 371602: '', 371621: '', 371622: '', 371623: '', 371624: '', 371625: '', 371626: '', 371627: '', 371700: '', 371702: '', 371721: '', 371722: '', 371723: '', 371724: '', 371725: '', 371726: '', 371727: '', 371728: '', 371729: '', 410000: '', 410100: '', 410102: '', 410103: '', 410104: '', 410105: '', 410106: '', 410108: '', 410122: '', 410181: '', 410182: '', 410183: '', 410184: '', 410185: '', 410188: '', 410200: '', 410202: '', 410203: '', 410204: '', 410205: '', 410211: '', 410221: '', 410222: '', 410223: '', 410224: '', 410225: '', 410226: '', 410300: '', 410302: '', 410303: '', 410304: '', 410305: '', 410306: '', 410307: '', 410322: '', 410323: '', 410324: '', 410325: '', 410326: '', 410327: '', 410328: '', 410329: '', 410381: '', 410400: '', 410402: '', 410403: '', 410404: '', 410411: '', 410421: '', 410422: '', 410423: '', 410425: '', 410481: '', 410482: '', 410483: '', 410500: '', 410502: '', 410503: '', 410505: '', 410506: '', 410522: '', 410523: '', 410526: '', 410527: '', 410581: '', 410582: '', 410600: '', 410602: '', 410603: '', 410611: '', 410621: '', 410622: '', 410623: '', 410700: '', 410702: '', 410703: '', 410704: '', 410711: '', 410721: '', 410724: '', 410725: '', 410726: '', 410727: '', 410728: '', 410781: '', 410782: '', 410783: '', 410800: '', 410802: '', 410803: '', 410804: '', 410811: '', 410821: '', 410822: '', 410823: '', 410825: '', 410881: '', 410882: '', 410883: '', 410884: '', 410900: '', 410902: '', 410922: '', 410923: '', 410926: '', 410927: '', 410928: '', 410929: '', 411000: '', 411002: '', 411023: '', 411024: '', 411025: '', 411081: '', 411082: '', 411083: '', 411100: '', 411102: '', 411103: '', 411104: '', 411121: '', 411122: '', 411123: '', 411200: '', 411202: '', 411221: '', 411222: '', 411224: '', 411281: '', 411282: '', 411283: '', 411300: '', 411302: '', 411303: '', 411321: '', 411322: '', 411323: '', 411324: '', 411325: '', 411326: '', 411327: '', 411328: '', 411329: '', 411330: '', 411381: '', 411382: '', 411400: '', 411402: '', 411403: '', 411421: '', 411422: '', 411423: '', 411424: '', 411425: '', 411426: '', 411481: '', 411482: '', 411500: '', 411502: '', 411503: '', 411521: '', 411522: '', 411523: '', 411524: '', 411525: '', 411526: '', 411527: '', 411528: '', 411529: '', 411600: '', 411602: '', 411621: '', 411622: '', 411623: '', 411624: '', 411625: '', 411626: '', 411627: '', 411628: '', 411681: '', 411682: '', 411700: '', 411702: '', 411721: '', 411722: '', 411723: '', 411724: '', 411725: '', 411726: '', 411727: '', 411728: '', 411729: '', 411730: '', 420000: '', 420100: '', 420102: '', 420103: '', 420104: '', 420105: '', 420106: '', 420107: '', 420111: '', 420112: '', 420113: '', 420114: '', 420115: '', 420116: '', 420117: '', 420118: '', 420200: '', 420202: '', 420203: '', 420204: '', 420205: '', 420222: '', 420281: '', 420282: '', 420300: '', 420302: '', 420303: '', 420321: '', 420322: '', 420323: '', 420324: '', 420325: '', 420381: '', 420383: '', 420500: '', 420502: '', 420503: '', 420504: '', 420505: '', 420506: '', 420525: '', 420526: '', 420527: '', 420528: '', 420529: '', 420581: '', 420582: '', 420583: '', 420584: '', 420600: '', 420602: '', 420606: '', 420607: '', 420624: '', 420625: '', 420626: '', 420682: '', 420683: '', 420684: '', 420685: '', 420700: '', 420702: '', 420703: '', 420704: '', 420705: '', 420800: '', 420802: '', 420804: '', 420821: '', 420822: '', 420881: '', 420882: '', 420900: '', 420902: '', 420921: '', 420922: '', 420923: '', 420981: '', 420982: '', 420984: '', 420985: '', 421000: '', 421002: '', 421003: '', 421022: '', 421023: '', 421024: '', 421081: '', 421083: '', 421087: '', 421088: '', 421100: '', 421102: '', 421121: '', 421122: '', 421123: '', 421124: '', 421125: '', 421126: '', 421127: '', 421181: '', 421182: '', 421183: '', 421200: '', 421202: '', 421221: '', 421222: '', 421223: '', 421224: '', 421281: '', 421283: '', 421300: '', 421302: '', 421321: '', 421381: '', 421382: '', 422800: '', 422801: '', 422802: '', 422822: '', 422823: '', 422825: '', 422826: '', 422827: '', 422828: '', 422829: '', 429004: '', 429005: '', 429006: '', 429021: '', 430000: '', 430100: '', 430102: '', 430103: '', 430104: '', 430105: '', 430111: '', 430121: '', 430122: '', 430124: '', 430181: '', 430182: '', 430200: '', 430202: '', 430203: '', 430204: '', 430211: '', 430221: '', 430223: '', 430224: '', 430225: '', 430281: '', 430282: '', 430300: '', 430302: '', 430304: '', 430321: '', 430381: '', 430382: '', 430383: '', 430400: '', 430405: '', 430406: '', 430407: '', 430408: '', 430412: '', 430421: '', 430422: '', 430423: '', 430424: '', 430426: '', 430481: '', 430482: '', 430483: '', 430500: '', 430502: '', 430503: '', 430511: '', 430521: '', 430522: '', 430523: '', 430524: '', 430525: '', 430527: '', 430528: '', 430529: '', 430581: '', 430582: '', 430600: '', 430602: '', 430603: '', 430611: '', 430621: '', 430623: '', 430624: '', 430626: '', 430681: '', 430682: '', 430683: '', 430700: '', 430702: '', 430703: '', 430721: '', 430722: '', 430723: '', 430724: '', 430725: '', 430726: '', 430781: '', 430782: '', 430800: '', 430802: '', 430811: '', 430821: '', 430822: '', 430823: '', 430900: '', 430902: '', 430903: '', 430921: '', 430922: '', 430923: '', 430981: '', 430982: '', 431000: '', 431002: '', 431003: '', 431021: '', 431022: '', 431023: '', 431024: '', 431025: '', 431026: '', 431027: '', 431028: '', 431081: '', 431082: '', 431100: '', 431102: '', 431103: '', 431121: '', 431122: '', 431123: '', 431124: '', 431125: '', 431126: '', 431127: '', 431128: '', 431129: '', 431130: '', 431200: '', 431202: '', 431221: '', 431222: '', 431223: '', 431224: '', 431225: '', 431226: '', 431227: '', 431228: '', 431229: '', 431230: '', 431281: '', 431282: '', 431300: '', 431302: '', 431321: '', 431322: '', 431381: '', 431382: '', 431383: '', 433100: '', 433101: '', 433122: '', 433123: '', 433124: '', 433125: '', 433126: '', 433127: '', 433130: '', 433131: '', 440000: '', 440100: '', 440103: '', 440104: '', 440105: '', 440106: '', 440111: '', 440112: '', 440113: '', 440114: '', 440115: '', 440116: '', 440183: '', 440184: '', 440189: '', 440200: '', 440203: '', 440204: '', 440205: '', 440222: '', 440224: '', 440229: '', 440232: '', 440233: '', 440281: '', 440282: '', 440283: '', 440300: '', 440303: '', 440304: '', 440305: '', 440306: '', 440307: '', 440308: '', 440309: '', 440320: '', 440321: '', 440322: '', 440323: '', 440400: '', 440402: '', 440403: '', 440404: '', 440488: '', 440500: '', 440507: '', 440511: '', 440512: '', 440513: '', 440514: '', 440515: '', 440523: '', 440524: '', 440600: '', 440604: '', 440605: '', 440606: '', 440607: '', 440608: '', 440609: '', 440700: '', 440703: '', 440704: '', 440705: '', 440781: '', 440783: '', 440784: '', 440785: '', 440786: '', 440800: '', 440802: '', 440803: '', 440804: '', 440811: '', 440823: '', 440825: '', 440881: '', 440882: '', 440883: '', 440884: '', 440900: '', 440902: '', 440903: '', 440923: '', 440981: '', 440982: '', 440983: '', 440984: '', 441200: '', 441202: '', 441203: '', 441223: '', 441224: '', 441225: '', 441226: '', 441283: '', 441284: '', 441285: '', 441300: '', 441302: '', 441303: '', 441322: '', 441323: '', 441324: '', 441325: '', 441400: '', 441402: '', 441421: '', 441422: '', 441423: '', 441424: '', 441426: '', 441427: '', 441481: '', 441482: '', 441500: '', 441502: '', 441521: '', 441523: '', 441581: '', 441582: '', 441600: '', 441602: '', 441621: '', 441622: '', 441623: '', 441624: '', 441625: '', 441626: '', 441700: '', 441702: '', 441721: '', 441723: '', 441781: '', 441782: '', 441800: '', 441802: '', 441821: '', 441823: '', 441825: '', 441826: '', 441827: '', 441881: '', 441882: '', 441883: '', 441900: '', 442000: '', 442101: '', 445100: '', 445102: '', 445121: '', 445122: '', 445186: '', 445200: '', 445202: '', 445221: '', 445222: '', 445224: '', 445281: '', 445285: '', 445300: '', 445302: '', 445321: '', 445322: '', 445323: '', 445381: '', 445382: '', 450000: '', 450100: '', 450102: '', 450103: '', 450105: '', 450107: '', 450108: '', 450109: '', 450122: '', 450123: '', 450124: '', 450125: '', 450126: '', 450127: '', 450128: '', 450200: '', 450202: '', 450203: '', 450204: '', 450205: '', 450221: '', 450222: '', 450223: '', 450224: '', 450225: '', 450226: '', 450227: '', 450300: '', 450302: '', 450303: '', 450304: '', 450305: '', 450311: '', 450321: '', 450322: '', 450323: '', 450324: '', 450325: '', 450326: '', 450327: '', 450328: '', 450329: '', 450330: '', 450331: '', 450332: '', 450333: '', 450400: '', 450403: '', 450405: '', 450406: '', 450421: '', 450422: '', 450423: '', 450481: '', 450482: '', 450500: '', 450502: '', 450503: '', 450512: '', 450521: '', 450522: '', 450600: '', 450602: '', 450603: '', 450621: '', 450681: '', 450682: '', 450700: '', 450702: '', 450703: '', 450721: '', 450722: '', 450723: '', 450800: '', 450802: '', 450803: '', 450804: '', 450821: '', 450881: '', 450882: '', 450900: '', 450902: '', 450903: '', 450921: '', 450922: '', 450923: '', 450924: '', 450981: '', 450982: '', 451000: '', 451002: '', 451021: '', 451022: '', 451023: '', 451024: '', 451025: '', 451026: '', 451027: '', 451028: '', 451029: '', 451030: '', 451031: '', 451032: '', 451100: '', 451102: '', 451119: '', 451121: '', 451122: '', 451123: '', 451124: '', 451200: '', 451202: '', 451221: '', 451222: '', 451223: '', 451224: '', 451225: '', 451226: '', 451227: '', 451228: '', 451229: '', 451281: '', 451282: '', 451300: '', 451302: '', 451321: '', 451322: '', 451323: '', 451324: '', 451381: '', 451382: '', 451400: '', 451402: '', 451421: '', 451422: '', 451423: '', 451424: '', 451425: '', 451481: '', 451482: '', 460000: '', 460100: '', 460105: '', 460106: '', 460107: '', 460108: '', 460109: '', 460200: '', 460300: '', 460321: '', 460322: '', 460323: '', 469001: '', 469002: '', 469003: '', 469005: '', 469006: '', 469007: '', 469025: '', 469026: '', 469027: '', 469028: '', 469030: '', 469031: '', 469033: '', 469034: '', 469035: '', 469036: '', 471005: '', 500000: '', 500100: '', 500101: '', 500102: '', 500103: '', 500104: '', 500105: '', 500106: '', 500107: '', 500108: '', 500109: '', 500110: '', 500111: '', 500112: '', 500113: '', 500114: '', 500115: '', 500222: '', 500223: '', 500224: '', 500225: '', 500226: '', 500227: '', 500228: '', 500229: '', 500230: '', 500231: '', 500232: '', 500233: '', 500234: '', 500235: '', 500236: '', 500237: '', 500238: '', 500240: '', 500241: '', 500242: '', 500243: '', 500381: '', 500382: '', 500383: '', 500384: '', 500385: '', 510000: '', 510100: '', 510104: '', 510105: '', 510106: '', 510107: '', 510108: '', 510112: '', 510113: '', 510114: '', 510115: '', 510121: '', 510122: '', 510124: '', 510129: '', 510131: '', 510132: '', 510181: '', 510182: '', 510183: '', 510184: '', 510185: '', 510300: '', 510302: '', 510303: '', 510304: '', 510311: '', 510321: '', 510322: '', 510323: '', 510400: '', 510402: '', 510403: '', 510411: '', 510421: '', 510422: '', 510423: '', 510500: '', 510502: '', 510503: '', 510504: '', 510521: '', 510522: '', 510524: '', 510525: '', 510526: '', 510600: '', 510603: '', 510623: '', 510626: '', 510681: '', 510682: '', 510683: '', 510684: '', 510700: '', 510703: '', 510704: '', 510722: '', 510723: '', 510724: '', 510725: '', 510726: '', 510727: '', 510781: '', 510782: '', 510800: '', 510802: '', 510811: '', 510812: '', 510821: '', 510822: '', 510823: '', 510824: '', 510825: '', 510900: '', 510903: '', 510904: '', 510921: '', 510922: '', 510923: '', 510924: '', 511000: '', 511002: '', 511011: '', 511024: '', 511025: '', 511028: '', 511029: '', 511100: '', 511102: '', 511111: '', 511112: '', 511113: '', 511123: '', 511124: '', 511126: '', 511129: '', 511132: '', 511133: '', 511181: '', 511182: '', 511300: '', 511302: '', 511303: '', 511304: '', 511321: '', 511322: '', 511323: '', 511324: '', 511325: '', 511381: '', 511382: '', 511400: '', 511402: '', 511421: '', 511422: '', 511423: '', 511424: '', 511425: '', 511426: '', 511500: '', 511502: '', 511521: '', 511522: '', 511523: '', 511524: '', 511525: '', 511526: '', 511527: '', 511528: '', 511529: '', 511530: '', 511600: '', 511602: '', 511603: '', 511621: '', 511622: '', 511623: '', 511681: '', 511683: '', 511700: '', 511702: '', 511721: '', 511722: '', 511723: '', 511724: '', 511725: '', 511781: '', 511782: '', 511800: '', 511802: '', 511821: '', 511822: '', 511823: '', 511824: '', 511825: '', 511826: '', 511827: '', 511828: '', 511900: '', 511902: '', 511903: '', 511921: '', 511922: '', 511923: '', 511924: '', 512000: '', 512002: '', 512021: '', 512022: '', 512081: '', 512082: '', 513200: '', 513221: '', 513222: '', 513223: '', 513224: '', 513225: '', 513226: '', 513227: '', 513228: '', 513229: '', 513230: '', 513231: '', 513232: '', 513233: '', 513234: '', 513300: '', 513321: '', 513322: '', 513323: '', 513324: '', 513325: '', 513326: '', 513327: '', 513328: '', 513329: '', 513330: '', 513331: '', 513332: '', 513333: '', 513334: '', 513335: '', 513336: '', 513337: '', 513338: '', 513339: '', 513400: '', 513401: '', 513422: '', 513423: '', 513424: '', 513425: '', 513426: '', 513427: '', 513428: '', 513429: '', 513430: '', 513431: '', 513432: '', 513433: '', 513434: '', 513435: '', 513436: '', 513437: '', 513438: '', 520000: '', 520100: '', 520102: '', 520103: '', 520111: '', 520112: '', 520113: '', 520121: '', 520122: '', 520123: '', 520151: '', 520181: '', 520182: '', 520200: '', 520201: '', 520203: '', 520221: '', 520222: '', 520223: '', 520300: '', 520302: '', 520303: '', 520321: '', 520322: '', 520323: '', 520324: '', 520325: '', 520326: '', 520327: '', 520328: '', 520329: '', 520330: '', 520381: '', 520382: '', 520383: '', 520400: '', 520402: '', 520421: '', 520422: '', 520423: '', 520424: '', 520425: '', 520426: '', 522200: '', 522201: '', 522222: '', 522223: '', 522224: '', 522225: '', 522226: '', 522227: '', 522228: '', 522229: '', 522230: '', 522231: '', 522300: '', 522301: '', 522322: '', 522323: '', 522324: '', 522325: '', 522326: '', 522327: '', 522328: '', 522329: '', 522400: '', 522401: '', 522422: '', 522423: '', 522424: '', 522425: '', 522426: '', 522427: '', 522428: '', 522429: '', 522600: '', 522601: '', 522622: '', 522623: '', 522624: '', 522625: '', 522626: '', 522627: '', 522628: '', 522629: '', 522630: '', 522631: '', 522632: '', 522633: '', 522634: '', 522635: '', 522636: '', 522637: '', 522700: '', 522701: '', 522702: '', 522722: '', 522723: '', 522725: '', 522726: '', 522727: '', 522728: '', 522729: '', 522730: '', 522731: '', 522732: '', 522733: '', 530000: '', 530100: '', 530102: '', 530103: '', 530111: '', 530112: '', 530113: '', 530121: '', 530122: '', 530124: '', 530125: '', 530126: '', 530127: '', 530128: '', 530129: '', 530181: '', 530182: '', 530300: '', 530302: '', 530321: '', 530322: '', 530323: '', 530324: '', 530325: '', 530326: '', 530328: '', 530381: '', 530382: '', 530400: '', 530402: '', 530421: '', 530422: '', 530423: '', 530424: '', 530425: '', 530426: '', 530427: '', 530428: '', 530429: '', 530500: '', 530502: '', 530521: '', 530522: '', 530523: '', 530524: '', 530525: '', 530600: '', 530602: '', 530621: '', 530622: '', 530623: '', 530624: '', 530625: '', 530626: '', 530627: '', 530628: '', 530629: '', 530630: '', 530631: '', 530700: '', 530702: '', 530721: '', 530722: '', 530723: '', 530724: '', 530725: '', 530800: '', 530802: '', 530821: '', 530822: '', 530823: '', 530824: '', 530825: '', 530826: '', 530827: '', 530828: '', 530829: '', 530830: '', 530900: '', 530902: '', 530921: '', 530922: '', 530923: '', 530924: '', 530925: '', 530926: '', 530927: '', 530928: '', 532300: '', 532301: '', 532322: '', 532323: '', 532324: '', 532325: '', 532326: '', 532327: '', 532328: '', 532329: '', 532331: '', 532332: '', 532500: '', 532501: '', 532502: '', 532522: '', 532523: '', 532524: '', 532525: '', 532526: '', 532527: '', 532528: '', 532529: '', 532530: '', 532531: '', 532532: '', 532533: '', 532600: '', 532621: '', 532622: '', 532623: '', 532624: '', 532625: '', 532626: '', 532627: '', 532628: '', 532629: '', 532800: '', 532801: '', 532822: '', 532823: '', 532824: '', 532900: '', 532901: '', 532922: '', 532923: '', 532924: '', 532925: '', 532926: '', 532927: '', 532928: '', 532929: '', 532930: '', 532931: '', 532932: '', 532933: '', 533100: '', 533102: '', 533103: '', 533122: '', 533123: '', 533124: '', 533125: '', 533300: '', 533321: '', 533323: '', 533324: '', 533325: '', 533326: '', 533400: '', 533421: '', 533422: '', 533423: '', 533424: '', 540000: '', 540100: '', 540102: '', 540121: '', 540122: '', 540123: '', 540124: '', 540125: '', 540126: '', 540127: '', 540128: '', 542100: '', 542121: '', 542122: '', 542123: '', 542124: '', 542125: '', 542126: '', 542127: '', 542128: '', 542129: '', 542132: '', 542133: '', 542134: '', 542200: '', 542221: '', 542222: '', 542223: '', 542224: '', 542225: '', 542226: '', 542227: '', 542228: '', 542229: '', 542231: '', 542232: '', 542233: '', 542234: '', 542300: '', 542301: '', 542322: '', 542323: '', 542324: '', 542325: '', 542326: '', 542327: '', 542328: '', 542329: '', 542330: '', 542331: '', 542332: '', 542333: '', 542334: '', 542335: '', 542336: '', 542337: '', 542338: '', 542339: '', 542400: '', 542421: '', 542422: '', 542423: '', 542424: '', 542425: '', 542426: '', 542427: '', 542428: '', 542429: '', 542430: '', 542431: '', 542432: '', 542500: '', 542521: '', 542522: '', 542523: '', 542524: '', 542525: '', 542526: '', 542527: '', 542528: '', 542600: '', 542621: '', 542622: '', 542623: '', 542624: '', 542625: '', 542626: '', 542627: '', 542628: '', 610000: '', 610100: '', 610102: '', 610103: '', 610104: '', 610111: '', 610112: '', 610113: '', 610114: '', 610115: '', 610116: '', 610122: '', 610124: '', 610125: '', 610126: '', 610127: '', 610200: '', 610202: '', 610203: '', 610204: '', 610222: '', 610223: '', 610300: '', 610302: '', 610303: '', 610304: '', 610322: '', 610323: '', 610324: '', 610326: '', 610327: '', 610328: '', 610329: '', 610330: '', 610331: '', 610332: '', 610400: '', 610402: '', 610403: '', 610404: '', 610422: '', 610423: '', 610424: '', 610425: '', 610426: '', 610427: '', 610428: '', 610429: '', 610430: '', 610431: '', 610481: '', 610482: '', 610500: '', 610502: '', 610521: '', 610522: '', 610523: '', 610524: '', 610525: '', 610526: '', 610527: '', 610528: '', 610581: '', 610582: '', 610583: '', 610600: '', 610602: '', 610621: '', 610622: '', 610623: '', 610624: '', 610625: '', 610626: '', 610627: '', 610628: '', 610629: '', 610630: '', 610631: '', 610632: '', 610633: '', 610700: '', 610702: '', 610721: '', 610722: '', 610723: '', 610724: '', 610725: '', 610726: '', 610727: '', 610728: '', 610729: '', 610730: '', 610731: '', 610800: '', 610802: '', 610821: '', 610822: '', 610823: '', 610824: '', 610825: '', 610826: '', 610827: '', 610828: '', 610829: '', 610830: '', 610831: '', 610832: '', 610900: '', 610902: '', 610921: '', 610922: '', 610923: '', 610924: '', 610925: '', 610926: '', 610927: '', 610928: '', 610929: '', 610930: '', 611000: '', 611002: '', 611021: '', 611022: '', 611023: '', 611024: '', 611025: '', 611026: '', 611027: '', 620000: '', 620100: '', 620102: '', 620103: '', 620104: '', 620105: '', 620111: '', 620121: '', 620122: '', 620123: '', 620124: '', 620200: '', 620300: '', 620302: '', 620321: '', 620322: '', 620400: '', 620402: '', 620403: '', 620421: '', 620422: '', 620423: '', 620424: '', 620500: '', 620502: '', 620503: '', 620521: '', 620522: '', 620523: '', 620524: '', 620525: '', 620526: '', 620600: '', 620602: '', 620621: '', 620622: '', 620623: '', 620624: '', 620700: '', 620702: '', 620721: '', 620722: '', 620723: '', 620724: '', 620725: '', 620726: '', 620800: '', 620802: '', 620821: '', 620822: '', 620823: '', 620824: '', 620825: '', 620826: '', 620827: '', 620900: '', 620902: '', 620921: '', 620922: '', 620923: '', 620924: '', 620981: '', 620982: '', 620983: '', 621000: '', 621002: '', 621021: '', 621022: '', 621023: '', 621024: '', 621025: '', 621026: '', 621027: '', 621028: '', 621100: '', 621102: '', 621121: '', 621122: '', 621123: '', 621124: '', 621125: '', 621126: '', 621127: '', 621200: '', 621202: '', 621221: '', 621222: '', 621223: '', 621224: '', 621225: '', 621226: '', 621227: '', 621228: '', 621229: '', 622900: '', 622901: '', 622921: '', 622922: '', 622923: '', 622924: '', 622925: '', 622926: '', 622927: '', 622928: '', 623000: '', 623001: '', 623021: '', 623022: '', 623023: '', 623024: '', 623025: '', 623026: '', 623027: '', 623028: '', 630000: '', 630100: '', 630102: '', 630103: '', 630104: '', 630105: '', 630121: '', 630122: '', 630123: '', 630124: '', 632100: '', 632121: '', 632122: '', 632123: '', 632126: '', 632127: '', 632128: '', 632129: '', 632200: '', 632221: '', 632222: '', 632223: '', 632224: '', 632225: '', 632300: '', 632321: '', 632322: '', 632323: '', 632324: '', 632325: '', 632500: '', 632521: '', 632522: '', 632523: '', 632524: '', 632525: '', 632526: '', 632600: '', 632621: '', 632622: '', 632623: '', 632624: '', 632625: '', 632626: '', 632627: '', 632700: '', 632721: '', 632722: '', 632723: '', 632724: '', 632725: '', 632726: '', 632727: '', 632800: '', 632801: '', 632802: '', 632821: '', 632822: '', 632823: '', 632824: '', 640000: '', 640100: '', 640104: '', 640105: '', 640106: '', 640121: '', 640122: '', 640181: '', 640182: '', 640200: '', 640202: '', 640205: '', 640221: '', 640222: '', 640300: '', 640302: '', 640303: '', 640323: '', 640324: '', 640381: '', 640382: '', 640400: '', 640402: '', 640422: '', 640423: '', 640424: '', 640425: '', 640426: '', 640500: '', 640502: '', 640521: '', 640522: '', 640523: '', 650000: '', 650100: '', 650102: '', 650103: '', 650104: '', 650105: '', 650106: '', 650107: '', 650109: '', 650121: '', 650122: '', 650200: '', 650202: '', 650203: '', 650204: '', 650205: '', 650206: '', 652100: '', 652101: '', 652122: '', 652123: '', 652124: '', 652200: '', 652201: '', 652222: '', 652223: '', 652224: '', 652300: '', 652301: '', 652302: '', 652323: '', 652324: '', 652325: '', 652327: '', 652328: '', 652329: '', 652700: '', 652701: '', 652702: '', 652722: '', 652723: '', 652724: '', 652800: '', 652801: '', 652822: '', 652823: '', 652824: '', 652825: '', 652826: '', 652827: '', 652828: '', 652829: '', 652830: '', 652900: '', 652901: '', 652922: '', 652923: '', 652924: '', 652925: '', 652926: '', 652927: '', 652928: '', 652929: '', 652930: '', 653000: '', 653001: '', 653022: '', 653023: '', 653024: '', 653025: '', 653100: '', 653101: '', 653121: '', 653122: '', 653123: '', 653124: '', 653125: '', 653126: '', 653127: '', 653128: '', 653129: '', 653130: '', 653131: '', 653132: '', 653200: '', 653201: '', 653221: '', 653222: '', 653223: '', 653224: '', 653225: '', 653226: '', 653227: '', 653228: '', 654000: '', 654002: '', 654003: '', 654021: '', 654022: '', 654023: '', 654024: '', 654025: '', 654026: '', 654027: '', 654028: '', 654029: '', 654200: '', 654201: '', 654202: '', 654221: '', 654223: '', 654224: '', 654225: '', 654226: '', 654227: '', 654300: '', 654301: '', 654321: '', 654322: '', 654323: '', 654324: '', 654325: '', 654326: '', 654327: '', 659001: '', 659002: '', 659003: '', 659004: '', 710000: '', 710100: '', 710101: '', 710102: '', 710103: '', 710104: '', 710105: '', 710106: '', 710107: '', 710108: '', 710109: '', 710110: '', 710111: '', 710112: '', 710113: '', 710200: '', 710201: '', 710202: '', 710203: '', 710204: '', 710205: '', 710206: '', 710207: '', 710208: '', 710209: '', 710210: '', 710211: '', 710212: '', 710241: '', 710242: '', 710243: '', 710244: '', 710245: '', 710246: '', 710247: '', 710248: '', 710249: '', 710250: '', 710251: '', 710252: '', 710253: '', 710254: '', 710255: '', 710256: '', 710257: '', 710258: '', 710259: '', 710260: '', 710261: '', 710262: '', 710263: '', 710264: '', 710265: '', 710266: '', 710267: '', 710268: '', 710300: '', 710301: '', 710302: '', 710303: '', 710304: '', 710305: '', 710306: '', 710307: '', 710339: '', 710340: '', 710341: '', 710342: '', 710343: '', 710344: '', 710345: '', 710346: '', 710347: '', 710348: '', 710349: '', 710350: '', 710351: '', 710352: '', 710353: '', 710354: '', 710355: '', 710356: '', 710357: '', 710358: '', 710359: '', 710360: '', 710361: '', 710362: '', 710363: '', 710364: '', 710365: '', 710366: '', 710367: '', 710368: '', 710369: '', 710400: '', 710401: '', 710402: '', 710403: '', 710404: '', 710405: '', 710406: '', 710407: '', 710408: '', 710409: '', 710431: '', 710432: '', 710433: '', 710434: '', 710435: '', 710436: '', 710437: '', 710438: '', 710439: '', 710440: '', 710441: '', 710442: '', 710443: '', 710444: '', 710445: '', 710446: '', 710447: '', 710448: '', 710449: '', 710450: '', 710451: '', 710500: '', 710507: '', 710508: '', 710509: '', 710510: '', 710511: '', 710512: '', 710600: '', 710614: '', 710615: '', 710616: '', 710617: '', 710618: '', 710619: '', 710620: '', 710621: '', 710622: '', 710623: '', 710624: '', 710625: '', 710626: '', 710700: '', 710701: '', 710702: '', 710703: '', 710704: '', 710705: '', 710706: '', 710707: '', 710708: '', 710800: '', 710801: '', 710802: '', 710803: '', 710804: '', 710900: '', 710901: '', 710902: '', 710903: '', 711100: '', 711130: '', 711131: '', 711132: '', 711133: '', 711134: '', 711135: '', 711136: '', 711137: '', 711138: '', 711139: '', 711140: '', 711141: '', 711142: '', 711143: '', 711144: '', 711145: '', 711146: '', 711147: '', 711148: '', 711149: '', 711150: '', 711151: '', 711152: '', 711153: '', 711154: '', 711155: '', 711156: '', 711157: '', 711158: '', 711200: '', 711214: '', 711215: '', 711216: '', 711217: '', 711218: '', 711219: '', 711220: '', 711221: '', 711222: '', 711223: '', 711224: '', 711225: '', 711226: '', 711300: '', 711314: '', 711315: '', 711316: '', 711317: '', 711318: '', 711319: '', 711320: '', 711321: '', 711322: '', 711323: '', 711324: '', 711325: '', 711326: '', 711400: '', 711414: '', 711415: '', 711416: '', 711417: '', 711418: '', 711419: '', 711420: '', 711421: '', 711422: '', 711423: '', 711424: '', 711425: '', 711426: '', 711500: '', 711519: '', 711520: '', 711521: '', 711522: '', 711523: '', 711524: '', 711525: '', 711526: '', 711527: '', 711528: '', 711529: '', 711530: '', 711531: '', 711532: '', 711533: '', 711534: '', 711535: '', 711536: '', 711700: '', 711727: '', 711728: '', 711729: '', 711730: '', 711731: '', 711732: '', 711733: '', 711734: '', 711735: '', 711736: '', 711737: '', 711738: '', 711739: '', 711740: '', 711741: '', 711742: '', 711743: '', 711744: '', 711745: '', 711746: '', 711747: '', 711748: '', 711749: '', 711750: '', 711751: '', 711752: '', 711900: '', 711919: '', 711920: '', 711921: '', 711922: '', 711923: '', 711924: '', 711925: '', 711926: '', 711927: '', 711928: '', 711929: '', 711930: '', 711931: '', 711932: '', 711933: '', 711934: '', 711935: '', 711936: '', 712100: '', 712121: '', 712122: '', 712123: '', 712124: '', 712125: '', 712126: '', 712127: '', 712128: '', 712129: '', 712130: '', 712131: '', 712132: '', 712133: '', 712134: '', 712135: '', 712136: '', 712137: '', 712138: '', 712139: '', 712140: '', 712400: '', 712434: '', 712435: '', 712436: '', 712437: '', 712438: '', 712439: '', 712440: '', 712441: '', 712442: '', 712443: '', 712444: '', 712445: '', 712446: '', 712447: '', 712448: '', 712449: '', 712450: '', 712451: '', 712452: '', 712453: '', 712454: '', 712455: '', 712456: '', 712457: '', 712458: '', 712459: '', 712460: '', 712461: '', 712462: '', 712463: '', 712464: '', 712465: '', 712466: '', 712500: '', 712517: '', 712518: '', 712519: '', 712520: '', 712521: '', 712522: '', 712523: '', 712524: '', 712525: '', 712526: '', 712527: '', 712528: '', 712529: '', 712530: '', 712531: '', 712532: '', 712600: '', 712615: '', 712616: '', 712617: '', 712618: '', 712619: '', 712620: '', 712621: '', 712622: '', 712623: '', 712624: '', 712625: '', 712626: '', 712627: '', 712628: '', 712700: '', 712707: '', 712708: '', 712709: '', 712710: '', 712711: '', 712712: '', 712800: '', 712805: '', 712806: '', 712807: '', 712808: '', 810000: '', 810100: '', 810101: '', 810102: '', 810103: '', 810104: '', 810200: '', 810201: '', 810202: '', 810203: '', 810204: '', 810205: '', 810300: '', 810301: '', 810302: '', 810303: '', 810304: '', 810305: '', 810306: '', 810307: '', 810308: '', 810309: '', 820000: '', 820100: '', 820200: '', 990000: '', 990100: '', } const tree = list => { let hashTable = Object.create(null) list.forEach(aData => (hashTable[aData.id] = { ...aData, children: [] })) let dataTree = [] list.forEach(aData => { if (aData.pid) { if (hashTable[aData.pid]) hashTable[aData.pid].children.push(hashTable[aData.id]) } else dataTree.push(hashTable[aData.id]) }) return dataTree } let DICT_FIXED = (function() { let fixed = [] for (let id in DICT) { if ({}.hasOwnProperty.call(DICT, id)) { let pid const tmpObj = { id, value: DICT[id], label: DICT[id] } if (id.slice(2, 6) !== '0000') { pid = id.slice(4, 6) === '00' ? `${id.slice(0, 2)}0000` : `${id.slice(0, 4)}00` } if (pid) tmpObj.pid = pid fixed.push(tmpObj) } } return tree(fixed) })() export default DICT_FIXED ```
/content/code_sandbox/src/utils/city.js
javascript
2016-01-25T07:46:15
2024-08-16T00:03:22
antd-admin
zuiidea/antd-admin
9,618
24,303
```swift import Foundation import UIKit import React.RCTBridgeModule import React.RCTConvert import React.RCTEventEmitter @objc(ZLPNotificationsEvents) class ZLPNotificationsEvents: RCTEventEmitter { static var currentInstance: ZLPNotificationsEvents? = nil override func startObserving() -> Void { super.startObserving() ZLPNotificationsEvents.currentInstance = self } override func stopObserving() -> Void { ZLPNotificationsEvents.currentInstance = nil super.stopObserving() } @objc override func supportedEvents() -> [String] { return ["response"] } @objc class func userNotificationCenter( _ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: () -> Void ) { currentInstance?.sendEvent( withName: "response", // The RCTJSONClean was copied over from // @react-native-community/push-notification-ios; possibly we don't // need it. body: RCTJSONClean( response.notification.request.content.userInfo ) ) completionHandler() } } @objc(ZLPNotificationsStatus) class ZLPNotificationsStatus: NSObject { /// Whether the app can receive remote notifications. // Ideally we could subscribe to changes in this value, but there // doesn't seem to be an API for that. The caller can poll, e.g., by // re-checking when the user has returned to the app, which they might // do after changing the notification settings. @objc func areNotificationsAuthorized( _ resolve: @escaping RCTPromiseResolveBlock, rejecter reject: RCTPromiseRejectBlock ) -> Void { UNUserNotificationCenter.current() .getNotificationSettings(completionHandler: { (settings) -> Void in resolve(settings.authorizationStatus == UNAuthorizationStatus.authorized) }) } } ```
/content/code_sandbox/ios/ZulipMobile/ZLPNotifications.swift
swift
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
415
```xml #import "AppDelegate.h" #import <React/RCTBridge.h> #import <React/RCTBundleURLProvider.h> #import <React/RCTRootView.h> #import <React/RCTLinkingManager.h> #import <asl.h> #import <React/RCTLog.h> #import <UserNotifications/UserNotifications.h> #import <RNCPushNotificationIOS.h> #import <React/RCTAppSetupUtils.h> #import "ExpoModulesCore-Swift.h" #import "ZulipMobile-Swift.h" #if RCT_NEW_ARCH_ENABLED #import <React/CoreModulesPlugins.h> #import <React/RCTCxxBridgeDelegate.h> #import <React/RCTFabricSurfaceHostingProxyRootView.h> #import <React/RCTSurfacePresenter.h> #import <React/RCTSurfacePresenterBridgeAdapter.h> #import <ReactCommon/RCTTurboModuleManager.h> #import <react/config/ReactNativeConfig.h> @interface AppDelegate () <RCTCxxBridgeDelegate, RCTTurboModuleManagerDelegate> { RCTTurboModuleManager *_turboModuleManager; RCTSurfacePresenterBridgeAdapter *_bridgeAdapter; std::shared_ptr<const facebook::react::ReactNativeConfig> _reactNativeConfig; facebook::react::ContextContainer::Shared _contextContainer; } @end #endif @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { RCTAppSetupPrepareApp(application); RCTSetLogThreshold(RCTLogLevelError); RCTBridge *bridge = [self.reactDelegate createBridgeWithDelegate:self launchOptions:launchOptions]; #if RCT_NEW_ARCH_ENABLED _contextContainer = std::make_shared<facebook::react::ContextContainer const>(); _reactNativeConfig = std::make_shared<facebook::react::EmptyReactNativeConfig const>(); _contextContainer->insert("ReactNativeConfig", _reactNativeConfig); _bridgeAdapter = [[RCTSurfacePresenterBridgeAdapter alloc] initWithBridge:bridge contextContainer:_contextContainer]; bridge.surfacePresenter = _bridgeAdapter.surfacePresenter; #endif RCTRootView *rootView = [self.reactDelegate createRootViewWithBridge:bridge moduleName:@"ZulipMobile" initialProperties:nil]; UIView* loadingView = [[UIView alloc] initWithFrame:[UIScreen mainScreen].bounds]; loadingView.backgroundColor = [UIColor colorNamed:@"Brand"]; rootView.loadingView = loadingView; self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; UIViewController *rootViewController = [self.reactDelegate createRootViewController]; rootViewController.view = rootView; self.window.rootViewController = rootViewController; [self.window makeKeyAndVisible]; // Define UNUserNotificationCenter UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; center.delegate = self; // Requested by "Expo modules" // (path_to_url [super application:application didFinishLaunchingWithOptions:launchOptions]; return YES; } - (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge { // If you'd like to export some custom RCTBridgeModules, add them here! return @[]; } - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { // The template upstream has some `#if DEBUG` goo around this, to // use the `main.jsbundle` resource instead when in release mode. // Skip the goo, because RCTBundleURLProvider is already smart enough // to do exactly that. return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; } // Allow listening to incoming zulip:// links during the app's // execution; see path_to_url Those // links are part of our social-auth protocol; see // path_to_url#narrow/stream/16-desktop/topic/desktop.20app.20OAuth/near/803919. - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options { return [super application:application openURL:url options:options] || [RCTLinkingManager application:application openURL:url options:options]; } // Required to register for notifications - (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings { [RNCPushNotificationIOS didRegisterUserNotificationSettings:notificationSettings]; } // Required for the register event. - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { [RNCPushNotificationIOS didRegisterForRemoteNotificationsWithDeviceToken:deviceToken]; } // Required for the registrationError event. - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { [RNCPushNotificationIOS didFailToRegisterForRemoteNotificationsWithError:error]; } // Required for localNotification event - (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)(void))completionHandler { [ZLPNotificationsEvents userNotificationCenter:center didReceive:response withCompletionHandler:completionHandler]; } // Called when a notification is delivered to a foreground app. -(void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler { // Update the badge count. Do not play sound or show an alert. For // these options see // path_to_url completionHandler( UNNotificationPresentationOptionBadge | UNNotificationPresentationOptionSound | UNNotificationPresentationOptionBanner // Deprecated; we use this to get banners on iOS <14. | UNNotificationPresentationOptionAlert ); } #if RCT_NEW_ARCH_ENABLED #pragma mark - RCTCxxBridgeDelegate - (std::unique_ptr<facebook::react::JSExecutorFactory>)jsExecutorFactoryForBridge:(RCTBridge *)bridge { _turboModuleManager = [[RCTTurboModuleManager alloc] initWithBridge:bridge delegate:self jsInvoker:bridge.jsCallInvoker]; return RCTAppSetupDefaultJsExecutorFactory(bridge, _turboModuleManager); } #pragma mark RCTTurboModuleManagerDelegate - (Class)getModuleClassFromName:(const char *)name { return RCTCoreModulesClassProvider(name); } - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:(const std::string &)name jsInvoker:(std::shared_ptr<facebook::react::CallInvoker>)jsInvoker { return nullptr; } - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:(const std::string &)name initParams: (const facebook::react::ObjCTurboModule::InitParams &)params { return nullptr; } - (id<RCTTurboModule>)getModuleInstanceFromClass:(Class)moduleClass { return RCTAppSetupDefaultModuleFromClass(moduleClass); } #endif @end ```
/content/code_sandbox/ios/ZulipMobile/AppDelegate.mm
xml
2016-05-08T05:41:48
2024-08-15T07:25:47
zulip-mobile
zulip/zulip-mobile
1,274
1,499