{"_id":"echarts-wordcloud","_rev":"19-8696bdd60af4b573bbf0b49538c1c10a","name":"echarts-wordcloud","description":"ECharts wordcloud extension based on wordcloud2.js","dist-tags":{"latest":"2.1.0","beta":"2.1.0-beta"},"versions":{"1.0.0":{"name":"echarts-wordcloud","version":"1.0.0","description":"ECharts wordcloud extension based on wordcloud2.js","main":"index.js","author":"","license":"ISC","dependencies":{"echarts":"^3.2.2","zrender":"^3.1.2"},"repository":{"type":"git","url":"https://github.com/ecomfe/echarts-wordcloud.git"},"devDependencies":{"esprima":"^2.7.2","fs-extra":"^0.30.0","glob":"^7.0.3"},"gitHead":"8f50affbed60fff272d2234be9e7d1d134963059","bugs":{"url":"https://github.com/ecomfe/echarts-wordcloud/issues"},"_id":"echarts-wordcloud@1.0.0","scripts":{},"_shasum":"bf33850be04195ea2164b397a8f548317bff8c97","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"ecomfe","email":"ecomfe@gmail.com"},"maintainers":[{"name":"ecomfe","email":"ecomfe@gmail.com"}],"dist":{"shasum":"bf33850be04195ea2164b397a8f548317bff8c97","tarball":"https://registry.npmjs.org/echarts-wordcloud/-/echarts-wordcloud-1.0.0.tgz","integrity":"sha512-GrnwMhRv7HEhh3o7T6BUkmCOY9IUqHIrhz5PNpKXjDe4d+mnYiXXxQOf1XJdmh2t43vdxxxdUiXC80Ve5j4M6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEmCAO89zB9HUf2lU5hhbGL/4qOUfQda8x+nbCZHII4CAiEAkra2MxtcQeP2/pODQmIK3rMHXP0oPn6h9lYaJGhFyHA="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/echarts-wordcloud-1.0.0.tgz_1468481067628_0.7492695718538016"},"directories":{}},"1.0.1":{"name":"echarts-wordcloud","version":"1.0.1","description":"ECharts wordcloud extension based on wordcloud2.js","main":"index.js","author":"","license":"ISC","dependencies":{"echarts":"^3.2.2","zrender":"^3.1.2"},"repository":{"type":"git","url":"https://github.com/ecomfe/echarts-wordcloud.git"},"devDependencies":{"esprima":"^2.7.2","fs-extra":"^0.30.0","glob":"^7.0.3"},"gitHead":"2f0d2b5c57f0896b3a5582cff1844afe55a37070","bugs":{"url":"https://github.com/ecomfe/echarts-wordcloud/issues"},"_id":"echarts-wordcloud@1.0.1","scripts":{},"_shasum":"f29c448d20430c0fb4220b2f0b52c90fef51f214","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"ecomfe","email":"ecomfe@gmail.com"},"maintainers":[{"name":"ecomfe","email":"ecomfe@gmail.com"}],"dist":{"shasum":"f29c448d20430c0fb4220b2f0b52c90fef51f214","tarball":"https://registry.npmjs.org/echarts-wordcloud/-/echarts-wordcloud-1.0.1.tgz","integrity":"sha512-zmoxkXW+p1aHo/D1hGeKJX9mOOYrH+D64c5bkfv8fDb5ZpXyMW3G19+iAID8f5EMxUsA3WVy2iC/g6a5IOgPOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEV2eGWVwJWDCnxVriwTmeZVC9Ull7LzrR66rzkXt2EhAiEAx63MsHlUdppT5Tjsmsrga+KmAJVX9atAu+Jbyj2xaPo="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/echarts-wordcloud-1.0.1.tgz_1468551797091_0.4769359843339771"},"directories":{}},"1.0.2":{"name":"echarts-wordcloud","version":"1.0.2","description":"ECharts wordcloud extension based on wordcloud2.js","main":"index.js","author":"","license":"ISC","dependencies":{"echarts":"^3.2.2","zrender":"^3.1.2"},"repository":{"type":"git","url":"https://github.com/ecomfe/echarts-wordcloud.git"},"devDependencies":{"esprima":"^2.7.2","fs-extra":"^0.30.0","glob":"^7.0.3"},"gitHead":"fb60c6b749dad2245c3518de2d2a2e969d814780","bugs":{"url":"https://github.com/ecomfe/echarts-wordcloud/issues"},"_id":"echarts-wordcloud@1.0.2","scripts":{},"_shasum":"83a0a69aa5e8f6c2f75d66de51ad33d45b27e6ff","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"ecomfe","email":"ecomfe@gmail.com"},"maintainers":[{"name":"ecomfe","email":"ecomfe@gmail.com"}],"dist":{"shasum":"83a0a69aa5e8f6c2f75d66de51ad33d45b27e6ff","tarball":"https://registry.npmjs.org/echarts-wordcloud/-/echarts-wordcloud-1.0.2.tgz","integrity":"sha512-tgsVq6jNU6gaDUbO0PXT5qtTiScCEgbOfI365pSYsdJNpmE79it9wPVWwbhUO1fD2k0/xCHblNSkwv/EE8iebQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBFSD/r64l0KnMKGC5EKGsibvnKKMD5mjfHm/8gaj8Y+AiAEvbVZTi+Okdqdczx71bblVmWonGpiK9gwwO16T7TVTA=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/echarts-wordcloud-1.0.2.tgz_1468813703072_0.4674193214159459"},"directories":{}},"1.0.3":{"name":"echarts-wordcloud","version":"1.0.3","description":"ECharts wordcloud extension based on wordcloud2.js","main":"index.js","author":"","license":"ISC","dependencies":{"echarts":"^3.2.2","zrender":"^3.1.2"},"repository":{"type":"git","url":"https://github.com/ecomfe/echarts-wordcloud.git"},"devDependencies":{"esprima":"^2.7.2","fs-extra":"^0.30.0","glob":"^7.0.3"},"gitHead":"2cb2fc31c8fb7563a9f471243b71948c1dfa5f25","bugs":{"url":"https://github.com/ecomfe/echarts-wordcloud/issues"},"_id":"echarts-wordcloud@1.0.3","scripts":{},"_shasum":"5f0008d5fa7f8cd45edba7c1ddca9b258c546e96","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"ecomfe","email":"ecomfe@gmail.com"},"maintainers":[{"name":"ecomfe","email":"ecomfe@gmail.com"}],"dist":{"shasum":"5f0008d5fa7f8cd45edba7c1ddca9b258c546e96","tarball":"https://registry.npmjs.org/echarts-wordcloud/-/echarts-wordcloud-1.0.3.tgz","integrity":"sha512-RQRVDi5GcZmAZoXnWBENew71jxfHcxbu7I1zWxX4trLlyop8TZDqN7nK0zoGJHhkcOl5GYW1/7Xx0rpp2ygbZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFzc3wEwam8q6uMNEerfexGnWmsCOL8mccDPef6WssURAiEAg8t+ontBNx2twTUHlPR0lGQKDgdp/ozX4stpM9kwcNQ="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/echarts-wordcloud-1.0.3.tgz_1480778225586_0.41036373283714056"},"directories":{}},"1.1.0":{"name":"echarts-wordcloud","version":"1.1.0","description":"ECharts wordcloud extension based on wordcloud2.js","main":"index.js","author":"","license":"ISC","dependencies":{"echarts":"^3.6.2"},"repository":{"type":"git","url":"git+https://github.com/ecomfe/echarts-wordcloud.git"},"devDependencies":{"esprima":"^2.7.2","fs-extra":"^0.30.0","glob":"^7.0.3"},"gitHead":"fe3dcf957d0498ddb471c9690c829a130972e623","bugs":{"url":"https://github.com/ecomfe/echarts-wordcloud/issues"},"homepage":"https://github.com/ecomfe/echarts-wordcloud#readme","_id":"echarts-wordcloud@1.1.0","scripts":{},"_shasum":"cc308bc583c39bce93c9e4a0bd9f39c63be2ddf7","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"ecomfe","email":"ecomfe@gmail.com"},"maintainers":[{"name":"ecomfe","email":"ecomfe@gmail.com"}],"dist":{"shasum":"cc308bc583c39bce93c9e4a0bd9f39c63be2ddf7","tarball":"https://registry.npmjs.org/echarts-wordcloud/-/echarts-wordcloud-1.1.0.tgz","integrity":"sha512-n4gdCTh6b7zQX5DtXDbbaOxQQX/ex1rdjZ4B90Wa61NFtxG4GKINEm57prRyGyydPX5QT/r2Oh+2qHBaa0yiTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID/rEh2b1atc1vl0pHwh8E9U9S49VoXxYTENfHm3SOBsAiA1davo+O72pss1ceNwFDwHejlgvsdVekMRk8u8cu6HDA=="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/echarts-wordcloud-1.1.0.tgz_1498199695650_0.9201958407647908"},"directories":{}},"1.1.1":{"name":"echarts-wordcloud","version":"1.1.1","description":"ECharts wordcloud extension based on wordcloud2.js","main":"index.js","author":"","license":"ISC","dependencies":{"echarts":"^3.7.0"},"repository":{"type":"git","url":"git+https://github.com/ecomfe/echarts-wordcloud.git"},"devDependencies":{"esprima":"^2.7.2","fs-extra":"^0.30.0","glob":"^7.0.3"},"gitHead":"c7b3fbe9e03c56c4a15d15e4c538b375af464e34","bugs":{"url":"https://github.com/ecomfe/echarts-wordcloud/issues"},"homepage":"https://github.com/ecomfe/echarts-wordcloud#readme","_id":"echarts-wordcloud@1.1.1","scripts":{},"_shasum":"0d6c24acfac18306d324a61f1408b30369d4ad1a","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"ecomfe","email":"ecomfe@gmail.com"},"maintainers":[{"name":"ecomfe","email":"ecomfe@gmail.com"}],"dist":{"shasum":"0d6c24acfac18306d324a61f1408b30369d4ad1a","tarball":"https://registry.npmjs.org/echarts-wordcloud/-/echarts-wordcloud-1.1.1.tgz","integrity":"sha512-LUWiePCDnQA0tAr7SqzSkIC1p3vZmo998z1nvbXF+su0poeXe0XmPvptYJvZwMItKmDYGlxGRR6ZiDmJdctbaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGym7qK1VEEcPnv0BEJJl/rgRp/9dSr0Mpct5yQ/Nwm7AiB9Dj5Q7dpW0PEFXyKxc5dO0YNHZ6axCFmG61r+RPXE6g=="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/echarts-wordcloud-1.1.1.tgz_1503970968584_0.3860840308479965"},"directories":{}},"1.1.2":{"name":"echarts-wordcloud","version":"1.1.2","description":"ECharts wordcloud extension based on wordcloud2.js","main":"index.js","author":"","license":"ISC","dependencies":{"echarts":"^3.7.0"},"repository":{"type":"git","url":"git+https://github.com/ecomfe/echarts-wordcloud.git"},"devDependencies":{"esprima":"^2.7.2","fs-extra":"^0.30.0","glob":"^7.0.3"},"gitHead":"6e68728a72baeea93e73ed9db572978e2e85cbbd","bugs":{"url":"https://github.com/ecomfe/echarts-wordcloud/issues"},"homepage":"https://github.com/ecomfe/echarts-wordcloud#readme","_id":"echarts-wordcloud@1.1.2","_npmVersion":"5.4.2","_nodeVersion":"8.5.0","_npmUser":{"name":"ecomfe","email":"ecomfe@gmail.com"},"maintainers":[{"name":"ecomfe","email":"ecomfe@gmail.com"}],"dist":{"integrity":"sha512-cFNzQyVjE6CukIYIWdNEgiJckRqUd/ZvfjQZvSzwqUjPPcXLr5vY8/nOILnqpSVs9NuK5eSylNqZjAyuuLmBcQ==","shasum":"3616f0e5f26172d359365e49e37c62b280652c1b","tarball":"https://registry.npmjs.org/echarts-wordcloud/-/echarts-wordcloud-1.1.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBtFTiYBoX8MW5VWUCt+iZhLXNSpHmpGjShx2uLq6ULcAiA4Kk2shUJLmAVzrLlcWRZ4Tj8GR71dtGjjwpYvdt3TAQ=="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/echarts-wordcloud-1.1.2.tgz_1508296172370_0.702796115539968"},"directories":{}},"1.1.3":{"name":"echarts-wordcloud","version":"1.1.3","description":"ECharts wordcloud extension based on wordcloud2.js","main":"index.js","author":"","license":"ISC","dependencies":{},"repository":{"type":"git","url":"git+https://github.com/ecomfe/echarts-wordcloud.git"},"devDependencies":{"esprima":"^2.7.2","fs-extra":"^0.30.0","glob":"^7.0.3"},"gitHead":"52ce56c5a939e9ccbc6045ce79ceeb2073de8394","bugs":{"url":"https://github.com/ecomfe/echarts-wordcloud/issues"},"homepage":"https://github.com/ecomfe/echarts-wordcloud#readme","_id":"echarts-wordcloud@1.1.3","_npmVersion":"5.4.2","_nodeVersion":"8.5.0","_npmUser":{"name":"ecomfe","email":"ecomfe@gmail.com"},"maintainers":[{"name":"ecomfe","email":"ecomfe@gmail.com"}],"dist":{"integrity":"sha512-Et8D5xEAoYkidmHun+hEH+2lF9dhCt6D0JJ390vlr2r/1zwhhZAbcL01CEvG93QcMcJpSvSPK8vRiGkTbMHRxg==","shasum":"07b140c8ba76b19c317b43c310f3d5dc99289ff2","tarball":"https://registry.npmjs.org/echarts-wordcloud/-/echarts-wordcloud-1.1.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG/H8NR4ytHVLI100DxWxcNRUC+lXax/bDIX/ojuRvzaAiEArGUKXPtklShHhSu4FSrwDCqgAEwGmLVm+u6PLmr3KFY="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/echarts-wordcloud-1.1.3.tgz_1510579327366_0.6917888959869742"},"directories":{}},"2.0.0":{"name":"echarts-wordcloud","version":"2.0.0","description":"ECharts wordcloud extension based on wordcloud2.js","main":"index.js","author":"","license":"ISC","scripts":{"dev":"npx webpack --mode development --watch","build":"npx webpack --mode development","release":"npx webpack --mode production && npx webpack --mode development"},"peerDependencies":{"echarts":"^5.0.1"},"repository":{"type":"git","url":"git+https://github.com/ecomfe/echarts-wordcloud.git"},"devDependencies":{"echarts":"^5.0.1","webpack":"^5.11.1","webpack-cli":"^4.3.1"},"gitHead":"7e9a6ff7958aa54346d54115bcf72ffde3285604","bugs":{"url":"https://github.com/ecomfe/echarts-wordcloud/issues"},"homepage":"https://github.com/ecomfe/echarts-wordcloud#readme","_id":"echarts-wordcloud@2.0.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","_npmUser":{"name":"lang","email":"shenyi.914@gmail.com"},"dist":{"integrity":"sha512-K7l6pTklqdW7ZWzT/1CS0KhBSINr/cd7c5N1fVMzZMwLQHEwT7x+nivK7g5hkVh7WNcAv4Dn6/ZS5zMKRozC1g==","shasum":"52ef817895801ffe9e99dd1bacab7686b2dec04a","tarball":"https://registry.npmjs.org/echarts-wordcloud/-/echarts-wordcloud-2.0.0.tgz","fileCount":12,"unpackedSize":247769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAooSCRA9TVsSAnZWagAAIl4QAI6ok+745n0oi4cknEa4\nJjmuPbyP7g89eTZgWg70i4+JYwjCMmq5/1tXDcInhthjIey8VJM5Su4/o+4c\n419KAkaw1X5cR5sHRJOkGZdBjHQlZ351BDkF3i6oI32XDC5Wf3J2k4YyfWPt\nhonHrxt5CKy30TB7BrLxNP3D8kxiHeewSzPn1kUwIhJ+HEHwDsmlfA5mDAV9\nLNYN8phrTI8i7GoGYx58IGvLe+ZBMEXsp5eM4PBFsCddeFdjUGjbwC9G7/T/\nhp26GpOTs8j5vzwwjv/xcZnea9ETf8fNAT18OfO/gX4K0SxR4t/vZ4oU22At\n1VZ8Ap9NHU+XsE+jKgkYtThqS2M+AD6QOXad8nY6K9OYlHAG7g0iGn+wliZg\nBqH5de9IUkcjT4l0Wxblz8FBrl+TVicGDlDPntwyZcW5JY4ClcjA2CG0JzUq\nAW61glEJ43noDDQTX6VpOOllYQPDVmB+SiMAC37r3tTbKmuqxUJ33InNTfKJ\nuymCRl2CUfOUodQOF4GnPe+7vZlM9C7NmhGzYwI3WQ6WGUhQnqKBCBj0eX27\n77xPFKOAegz7Mn12Gy7JhCxylZJDhZTCNNkyzjH3Nk0cN2fW3DcF9mw5dYey\n7z4WhUxGI5C8MrEkkzffyV3ilLuhxP/xb5mld4gPq8QM54YHKV/OUR70RU7Q\nR6xQ\r\n=7ZZ9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPZDFii585kjYoI4oxDtq5yMei+I0bj3lujg76xuO93QIhANVDqQ7GnKysRaRt2bh+VyPffFLu4aZPnVclfY4pQoDb"}]},"directories":{},"maintainers":[{"name":"ecomfe-core","email":"ecomfe@gmail.com"},{"name":"lang","email":"shenyi.914@gmail.com"},{"name":"errorrik","email":"errorrik@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/echarts-wordcloud_2.0.0_1610779154058_0.8194577433794319"},"_hasShrinkwrap":false},"2.1.0-beta":{"name":"echarts-wordcloud","version":"2.1.0-beta","description":"ECharts wordcloud extension based on wordcloud2.js","main":"index.js","author":"","license":"ISC","scripts":{"dev":"npx webpack --mode development --watch","build":"npx webpack --mode development","release":"npx webpack --mode production && npx webpack --mode development"},"peerDependencies":{"echarts":"^5.0.1"},"repository":{"type":"git","url":"git+https://github.com/ecomfe/echarts-wordcloud.git"},"devDependencies":{"echarts":"^5.2.2","prettier":"^2.5.1","webpack":"^5.11.1","webpack-cli":"^4.3.1"},"readme":"# echarts-wordcloud\n\nThird-party Wordcloud extension based on [wordcloud2.js](https://github.com/timdream/wordcloud2.js) for [Apache ECharts](https://github.com/apache/echarts).\n\n![](./example/word-cloud.png)\n\n## Examples\n\n[Google Trends](https://ecomfe.github.io/echarts-wordcloud/example/wordCloud.html)\n\n[ECharts Option Keywords](https://ecomfe.github.io/echarts-wordcloud/example/optionKeywords.html)\n\n## Install\n\n```html\n<script src=\"echarts.min.js\"></script>\n<script src=\"echarts-wordcloud.min.js\"></script>\n```\n\nOr\n\n```shell\nnpm install echarts\nnpm install echarts-wordcloud\n```\n\n```js\nimport * as echarts from 'echarts';\nimport 'echarts-wordcloud';\n```\n\nNOTE:\n\necharts-wordcloud@2 is for echarts@5\necharts-wordcloud@1 is for echarts@4\n\n## Usage\n\n```js\nvar chart = echarts.init(document.getElementById('main'));\n\nchart.setOption({\n    ...\n    series: [{\n        type: 'wordCloud',\n\n        // The shape of the \"cloud\" to draw. Can be any polar equation represented as a\n        // callback function, or a keyword present. Available presents are circle (default),\n        // cardioid (apple or heart shape curve, the most known polar equation), diamond (\n        // alias of square), triangle-forward, triangle, (alias of triangle-upright, pentagon, and star.\n\n        shape: 'circle',\n\n        // Keep aspect ratio of maskImage or 1:1 for shapes\n        // This option is supported from echarts-wordcloud@2.1.0\n        keepAspect: false,\n\n        // A silhouette image which the white area will be excluded from drawing texts.\n        // The shape option will continue to apply as the shape of the cloud to grow.\n\n        maskImage: maskImage,\n\n        // Folllowing left/top/width/height/right/bottom are used for positioning the word cloud\n        // Default to be put in the center and has 75% x 80% size.\n\n        left: 'center',\n        top: 'center',\n        width: '70%',\n        height: '80%',\n        right: null,\n        bottom: null,\n\n        // Text size range which the value in data will be mapped to.\n        // Default to have minimum 12px and maximum 60px size.\n\n        sizeRange: [12, 60],\n\n        // Text rotation range and step in degree. Text will be rotated randomly in range [-90, 90] by rotationStep 45\n\n        rotationRange: [-90, 90],\n        rotationStep: 45,\n\n        // size of the grid in pixels for marking the availability of the canvas\n        // the larger the grid size, the bigger the gap between words.\n\n        gridSize: 8,\n\n        // set to true to allow word being draw partly outside of the canvas.\n        // Allow word bigger than the size of the canvas to be drawn\n        drawOutOfBound: false,\n\n        // If perform layout animation.\n        // NOTE disable it will lead to UI blocking when there is lots of words.\n        layoutAnimation: true,\n\n        // Global text style\n        textStyle: {\n            fontFamily: 'sans-serif',\n            fontWeight: 'bold',\n            // Color can be a callback function or a color string\n            color: function () {\n                // Random color\n                return 'rgb(' + [\n                    Math.round(Math.random() * 160),\n                    Math.round(Math.random() * 160),\n                    Math.round(Math.random() * 160)\n                ].join(',') + ')';\n            }\n        },\n        emphasis: {\n            focus: 'self',\n\n            textStyle: {\n                textShadowBlur: 10,\n                textShadowColor: '#333'\n            }\n        },\n\n        // Data is an array. Each array item must have name and value property.\n        data: [{\n            name: 'Farrah Abraham',\n            value: 366,\n            // Style of single text\n            textStyle: {\n            }\n        }]\n    }]\n});\n```\n","readmeFilename":"README.md","gitHead":"9c2572d43eada81f34e958246e4224b1ef127d5a","bugs":{"url":"https://github.com/ecomfe/echarts-wordcloud/issues"},"homepage":"https://github.com/ecomfe/echarts-wordcloud#readme","_id":"echarts-wordcloud@2.1.0-beta","_nodeVersion":"16.13.0","_npmVersion":"6.14.15","_npmUser":{"name":"lang","email":"shenyi.914@gmail.com"},"dist":{"integrity":"sha512-2+ynXOEmtg86/okdMqbMkpQql10QjgCHwSRTpI1bHhtoU3hhUZrGFNWzg3xpJVYxFeSg2lCL3Nv5J0/MABREfA==","shasum":"f567fe3fccf7b40e6a658dc921efb414897dd829","tarball":"https://registry.npmjs.org/echarts-wordcloud/-/echarts-wordcloud-2.1.0-beta.tgz","fileCount":18,"unpackedSize":254287,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3T/UCRA9TVsSAnZWagAAiE4P/1rBGilAEM9iTypncqcl\nvRCtkw1+vg+166ZMzUcrjoUk66EDAkbgNy0964yai0A+oqOJ1p8i1ja4lRuK\nrogxBHw6uZKKRKzVEvqOHn0UDskDsTKJXoLvYFj4m0IJUieyKRmWtrlnh8Sk\nTFVe8L7rcxiY1BgMg6xX/GbmL2ik1yTqR2mXY1Zd6RbWFY/fmmyOGwmJSiwT\n1OakqBSVlPDegu1xxt/5J5k74N1LLfxNLP5H5ik86CzkiPq9FaMVyMH8oMB1\nB6t6O61JXqEXpsKjMQ+ky48foGOH0upTye9K/Q/566WlWCMd2OqqoFajqJds\n3YEeGObEwAPPP57WgV0FAVA4ssh9h4pzMxd1mCjFHkWvi1Or6cFzp3nUQgrk\n4ymmh+6uD/ijOnlCzVrYvnfVzsqz368L4wR2bH6/hXIzT5hifjGPWSWwNz/D\nurmNKz29USQWuidBIGC+wd5ZSNjRBPxaMwCpTNmTe0nKeu6gN5osOJR2SkRr\nRXHeS0K681deONWk3adylTjYfNlxRrnj9cSZxhN2VCOWaOwo4w6otfjTsckK\nHCFkXW3Nf9Tw5c4+4DUDrjiMqV7RAgQEhFC7GLweR0Lwuz3ZcWxBMajiV526\nu6ZfTDNRXF1sPoKRLxNDyKamCtHbe5BLqLso9FoKaSjagrsotoHWqdHuE3/e\nsXOy\r\n=ukgF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCV2Qq8+r5BuCHfTm4JzrV41pZWCR/lyrwWJqRfE64vHwIgRiQIzocWplrrKaR61c3Y5An3WodIRjVvDMpLiR8TwoA="}]},"directories":{},"maintainers":[{"name":"ecomfe-core","email":"ecomfe@gmail.com"},{"name":"lang","email":"shenyi.914@gmail.com"},{"name":"errorrik","email":"errorrik@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/echarts-wordcloud_2.1.0-beta_1641889748136_0.5703388636264131"},"_hasShrinkwrap":false},"2.1.0":{"name":"echarts-wordcloud","version":"2.1.0","description":"ECharts wordcloud extension based on wordcloud2.js","main":"index.js","author":"","license":"ISC","scripts":{"dev":"npx webpack --mode development --watch","build":"npx webpack --mode development","release":"npx webpack --mode production && npx webpack --mode development"},"peerDependencies":{"echarts":"^5.0.1"},"repository":{"type":"git","url":"git+https://github.com/ecomfe/echarts-wordcloud.git"},"devDependencies":{"echarts":"^5.4.0","prettier":"^2.5.1","webpack":"^5.11.1","webpack-cli":"^4.3.1"},"types":"./index.d.ts","gitHead":"ada5d364119941548c32a911470be020e24e8093","bugs":{"url":"https://github.com/ecomfe/echarts-wordcloud/issues"},"homepage":"https://github.com/ecomfe/echarts-wordcloud#readme","_id":"echarts-wordcloud@2.1.0","_nodeVersion":"16.13.1","_npmVersion":"8.12.1","dist":{"integrity":"sha512-Kt1JmbcROgb+3IMI48KZECK2AP5lG6bSsOEs+AsuwaWJxQom31RTNd6NFYI01E/YaI1PFZeueaupjlmzSQasjQ==","shasum":"c3de6fe267044f6c3343e4ff0e05eedb01c05096","tarball":"https://registry.npmjs.org/echarts-wordcloud/-/echarts-wordcloud-2.1.0.tgz","fileCount":17,"unpackedSize":254991,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHxQ6lo4oiQp8ZidRXGoABq077JS2n4Xxdxq70yVYpmDAiEA/7xQZP56d2N4AlwiEbobHmVj5aIS+z0Pe0wjOHIN2wM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfylgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmru8g//YM4cTjMb2ctV9cqhjNJxr5oLlm30h+QhitwCWKgDsxPoLhlW\r\newVV5wZ+rB1EFpozdEEDjkedYGAl+SGeaCUu3S+Zq9BRN/msM7KC/s88fukb\r\nC2EVHgJD2tTs2akd0fWVruG/e1OYOBSgIFks07qr+YRl5ybif30H18lfwqXl\r\nYgyXEQNkLWUkrwdVXd5LT4EKna/6kvqwlRofwXi9hLzngrssebPtII9THJib\r\nb4qU5ZsGvm3hdkOM6pXqCp57NQTU8PvW1lyAdUgvToxh+cJmQvb6t7utCAMy\r\nHWtCeGFmH3HotYtt6wXA72H1DkWTeoNVaO71tGTOg1W52xeTXr5p2mDJhQVF\r\nI3N/qS+h3AbbzJrvWz0YiaTv1QCYAZ2LpQ92fJF74JOO/S0D+XyHOISxCeNH\r\nLNEBgQ1S0gKzSkub76HKlisLb/4azmFmwiOnDNUeKbbik309nSoh7JJW2Vr1\r\nUIQ8cRg779fajEPQGYFTR6jCOTkauNVtoxPg9AVZzQ/6O07ZP390MYF7FQkU\r\nfdw+r3Sl0SGaCfCRNz/gQYxHMnGY2H3d/S/8g+lHdb0DyifQtp9z2Gq5sjQI\r\npeA/mJiGqmXhAJ13oGbvQ5Cc+NhLVy56P/Kvxd6u7a/J0rRQtSE5ZrL5JVXJ\r\nl5PUUyVsjEyd+VtZs0bZemYybZwfupSHR9Y=\r\n=yj0s\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ovilia","email":"me@zhangwenli.com"},"directories":{},"maintainers":[{"name":"ecomfe-core","email":"ecomfe@gmail.com"},{"name":"ovilia","email":"me@zhangwenli.com"},{"name":"lang","email":"shenyi.914@gmail.com"},{"name":"errorrik","email":"errorrik@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/echarts-wordcloud_2.1.0_1669278048608_0.38791335777541636"},"_hasShrinkwrap":false}},"readme":"# echarts-wordcloud\n\nThird-party Wordcloud extension based on [wordcloud2.js](https://github.com/timdream/wordcloud2.js) for [Apache ECharts](https://github.com/apache/echarts).\n\n![](./example/word-cloud.png)\n\n## Examples\n\n[Google Trends](https://ecomfe.github.io/echarts-wordcloud/example/wordCloud.html)\n\n[ECharts Option Keywords](https://ecomfe.github.io/echarts-wordcloud/example/optionKeywords.html)\n\n## Install\n\n```html\n<script src=\"echarts.min.js\"></script>\n<script src=\"echarts-wordcloud.min.js\"></script>\n```\n\nOr\n\n```shell\nnpm install echarts\nnpm install echarts-wordcloud\n```\n\n```js\nimport * as echarts from 'echarts';\nimport 'echarts-wordcloud';\n```\n\n⚠️ NOTE:\n\necharts-wordcloud@2 is for echarts@5\necharts-wordcloud@1 is for echarts@4\n\n## Usage\n\n```js\nvar chart = echarts.init(document.getElementById('main'));\n\nchart.setOption({\n    ...\n    series: [{\n        type: 'wordCloud',\n\n        // The shape of the \"cloud\" to draw. Can be any polar equation represented as a\n        // callback function, or a keyword present. Available presents are circle (default),\n        // cardioid (apple or heart shape curve, the most known polar equation), diamond (\n        // alias of square), triangle-forward, triangle, (alias of triangle-upright, pentagon, and star.\n\n        shape: 'circle',\n\n        // Keep aspect ratio of maskImage or 1:1 for shapes\n        // This option is supported from echarts-wordcloud@2.1.0\n        keepAspect: false,\n\n        // A silhouette image which the white area will be excluded from drawing texts.\n        // The shape option will continue to apply as the shape of the cloud to grow.\n\n        maskImage: maskImage,\n\n        // Folllowing left/top/width/height/right/bottom are used for positioning the word cloud\n        // Default to be put in the center and has 75% x 80% size.\n\n        left: 'center',\n        top: 'center',\n        width: '70%',\n        height: '80%',\n        right: null,\n        bottom: null,\n\n        // Text size range which the value in data will be mapped to.\n        // Default to have minimum 12px and maximum 60px size.\n\n        sizeRange: [12, 60],\n\n        // Text rotation range and step in degree. Text will be rotated randomly in range [-90, 90] by rotationStep 45\n\n        rotationRange: [-90, 90],\n        rotationStep: 45,\n\n        // size of the grid in pixels for marking the availability of the canvas\n        // the larger the grid size, the bigger the gap between words.\n\n        gridSize: 8,\n\n        // set to true to allow word being draw partly outside of the canvas.\n        // Allow word bigger than the size of the canvas to be drawn\n        drawOutOfBound: false,\n\n        // if the font size is too large for the text to be displayed,\n        // whether to shrink the text. If it is set to false, the text will\n        // not be rendered. If it is set to true, the text will be shrinked.\n        shrinkToFit: false,\n\n        // If perform layout animation.\n        // NOTE disable it will lead to UI blocking when there is lots of words.\n        layoutAnimation: true,\n\n        // Global text style\n        textStyle: {\n            fontFamily: 'sans-serif',\n            fontWeight: 'bold',\n            // Color can be a callback function or a color string\n            color: function () {\n                // Random color\n                return 'rgb(' + [\n                    Math.round(Math.random() * 160),\n                    Math.round(Math.random() * 160),\n                    Math.round(Math.random() * 160)\n                ].join(',') + ')';\n            }\n        },\n        emphasis: {\n            focus: 'self',\n\n            textStyle: {\n                textShadowBlur: 10,\n                textShadowColor: '#333'\n            }\n        },\n\n        // Data is an array. Each array item must have name and value property.\n        data: [{\n            name: 'Farrah Abraham',\n            value: 366,\n            // Style of single text\n            textStyle: {\n            }\n        }]\n    }]\n});\n```\n","maintainers":[{"name":"ecomfe-core","email":"ecomfe@gmail.com"},{"name":"ovilia","email":"me@zhangwenli.com"},{"name":"lang","email":"shenyi.914@gmail.com"},{"name":"errorrik","email":"errorrik@gmail.com"}],"time":{"modified":"2022-11-24T08:20:48.937Z","created":"2016-07-14T07:24:31.035Z","1.0.0":"2016-07-14T07:24:31.035Z","1.0.1":"2016-07-15T03:03:17.680Z","1.0.2":"2016-07-18T03:48:23.320Z","1.0.3":"2016-12-03T15:17:07.634Z","1.1.0":"2017-06-23T06:34:55.797Z","1.1.1":"2017-08-29T01:42:48.745Z","1.1.2":"2017-10-18T03:09:32.636Z","1.1.3":"2017-11-13T13:22:07.519Z","2.0.0":"2021-01-16T06:39:14.275Z","2.1.0-beta":"2022-01-11T08:29:08.322Z","2.1.0":"2022-11-24T08:20:48.784Z"},"repository":{"type":"git","url":"git+https://github.com/ecomfe/echarts-wordcloud.git"},"bugs":{"url":"https://github.com/ecomfe/echarts-wordcloud/issues"},"license":"ISC","readmeFilename":"README.md","homepage":"https://github.com/ecomfe/echarts-wordcloud#readme"}