{"_id":"@alita/s2","name":"@alita/s2","dist-tags":{"latest":"1.31.0"},"versions":{"1.31.0":{"name":"@alita/s2","version":"1.31.0","main":"lib/index.js","unpkg":"dist/index.min.js","module":"esm/index.js","types":"esm/index.d.ts","src":"src/index.ts","description":"effective spreadsheet render core lib","license":"MIT","homepage":"https://s2.antv.vision","author":{"name":"https://github.com/orgs/antvis/people"},"directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/antvis/S2.git"},"bugs":{"url":"https://github.com/antvis/S2/issues"},"keywords":["antv","s2","S2","s2-core","spreadsheet","pivot table","table"],"scripts":{"start":"yarn test:live","clean":"rimraf lib esm dist temp","build":"npm-run-all clean --parallel build:umd build:cjs build:esm build:dts","build:esm":"cross-env FORMAT=es rollup -c rollup.config.js","build:cjs":"cross-env FORMAT=cjs rollup -c rollup.config.js","build:umd":"cross-env FORMAT=umd rollup -c rollup.config.js","build:analysis":"cross-env FORMAT=esm ANALYSIS=true rollup -c rollup.config.js","build:dts":"run-s dts:*","dts:build":"tsc -p tsconfig.declaration.json","dts:extract":"cross-env LIB=s2-core node ../../scripts/dts.js","bundle:size":"bundlesize","watch":"rimraf esm && yarn build:esm -w","test:live":"node ./scripts/test-live.mjs","sync-event":"node ./scripts/sync-event.mjs","test":"jest --passWithNoTests","test:coverage":"yarn test --coverage","test:ci":"yarn test --maxWorkers=3","test:ci-coverage":"yarn test:coverage --maxWorkers=3","test:watch":"yarn test --watch","tsc":"tsc --noEmit","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"dependencies":{"@antv/event-emitter":"^0.1.3","@antv/g-canvas":"^0.5.12","@antv/g-gesture":"^1.0.1","d3-interpolate":"^1.3.2","d3-timer":"^1.0.9","decimal.js":"^10.3.1","lodash":"^4.17.21"},"devDependencies":{"@testing-library/dom":"^8.16.0","@types/d3-interpolate":"^3.0.1","@types/d3-timer":"^3.0.0","csstype":"^3.0.11","d3-dsv":"^1.1.1","inquirer":"^8.2.0","inquirer-autocomplete-prompt":"^2.0.0","tinycolor2":"^1.4.2"},"sideEffects":["*.css","dist/*"],"bundlesize":[{"path":"./dist/index.min.js","maxSize":"200 kB"},{"path":"./dist/style.min.css","maxSize":"5 kB"}],"publishConfig":{"access":"public"},"_id":"@alita/s2@1.31.0","_nodeVersion":"16.14.0","_npmVersion":"6.14.10","dist":{"integrity":"sha512-+1dvQfAi8vzbMkM7xrNaTAN2Nx1H3TZlWDPKEbFahDbTz90dkvLAbGMDB74TK7J7UArfK/u7ZQnVeDcxAWnhPQ==","shasum":"7f1cb7a9005effca19de7faae10a1bf4a02e0339","tarball":"https://registry.npmjs.org/@alita/s2/-/s2-1.31.0.tgz","fileCount":13,"unpackedSize":14591751,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDSX4mFNE0+eDWmFjex3K3hXd2xeMcYh0WqAzNMHCyhmAiEA8Keq0gvr4e6XmnanOfqokghNu1qt/NfLoiYZNMebVuA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjW1TLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpwVg//c1e+p3zi00TN0gM5JcjE6SoZZwmzJynECVSZzgYj5gcr+Lt+\r\ngdK1+MgPMV3uR0kPL4fdWUlZwn1FcCmuE7ShDjVURafJaGKaT5bRlEZdJJKd\r\njzasCeSic41wtYGl2tyTkFYs38WFpDOqYC1Z8EjTJa0ZgmISV/PIwGXiIvpQ\r\nkHgrF01ZGl8P7yAur2ABtwsVxHGw0gFvxk8xB0CsAcCHWXpHqSjsN8PBZ38R\r\nWTLGdIHjFRaA5pNjBexUWRkvuOtbMntxEM0m3Yt732cBxMhgRyQ7xFM4h6O8\r\nS5FDwWcswduKPqRFxCpwZ4QBGKwQTtSDgjUlBNRKyDSpxpjoSG+0xhkp2w/u\r\nzzqEEuiiDEJptntOO5uixXIT3uLDrhb3k5TEQPIJo6+tmAV9UbRd81aWwqXL\r\npDVpHDubmCMImBdwQFyNLXzIheA2mAmgnwGpmfjZM84ZrbOEV9R42FtxD59Y\r\notwuHoxwcYHISMFC8K2UHA0GAIay5/Ig4bqhM6JI0EqNKF49ThZ42W8Vuzxd\r\nG7AV/Bwop9Xy+reNIEONthd5PBzws4lWSkAyutrIySBNV1mJZIB+l7Jt/GJr\r\n1oz/oN69xB3BeLpiO5Gd1Ymsic3gN8uVjpc1IN481oIxoqfRrjh/wGv+Vqug\r\nmmspmh+NUctiV3eybgbfp+U4qrxm/dLq8VQ=\r\n=LgQv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pengyh","email":"pt370390794@126.com"},"maintainers":[{"name":"pengyh","email":"pt370390794@126.com"},{"name":"ashoka_j","email":"savebtc11@gmail.com"},{"name":"hang1017","email":"437132124@qq.com"},{"name":"hammersjs","email":"1270253618@qq.com"},{"name":"cjy0208","email":"fanluan058@gmail.com"},{"name":"xiaohuoni","email":"448627663@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s2_1.31.0_1666929867425_0.11984449371345551"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-28T04:04:27.363Z","1.31.0":"2022-10-28T04:04:27.693Z","modified":"2022-10-28T04:04:27.889Z"},"maintainers":[{"name":"pengyh","email":"pt370390794@126.com"},{"name":"ashoka_j","email":"savebtc11@gmail.com"},{"name":"hang1017","email":"437132124@qq.com"},{"name":"hammersjs","email":"1270253618@qq.com"},{"name":"cjy0208","email":"fanluan058@gmail.com"},{"name":"xiaohuoni","email":"448627663@qq.com"}],"description":"effective spreadsheet render core lib","homepage":"https://s2.antv.vision","keywords":["antv","s2","S2","s2-core","spreadsheet","pivot table","table"],"repository":{"type":"git","url":"git+https://github.com/antvis/S2.git"},"author":{"name":"https://github.com/orgs/antvis/people"},"bugs":{"url":"https://github.com/antvis/S2/issues"},"license":"MIT","readme":"<img src=\"https://gw.alipayobjects.com/zos/antfincdn/R8sN%24GNdh6/language.svg\" width=\"18\">  [简体中文](./README.md) ｜\nEnglish\n\n<h1 align=\"center\">S2</h1>\n\n<div align=\"center\">\n\nData-driven multi-dimensional analysis table.\n\n<p>\n  <a href=\"https://www.npmjs.com/package/@antv/s2\" title=\"npm\">\n    <img src=\"https://img.shields.io/npm/dm/@antv/s2.svg\" alt=\"npm\"/>\n  </a>\n  <a href=\"https://www.npmjs.com/package/@antv/s2\" target=\"_blank\">\n    <img alt=\"Version\" src=\"https://img.shields.io/npm/v/@antv/s2/latest.svg\" alt=\"version\">\n  </a>\n  <a href=\"https://www.npmjs.com/package/@antv/s2\" target=\"_blank\">\n    <img alt=\"Version\" src=\"https://img.shields.io/npm/v/@antv/s2/beta.svg\" alt=\"version\">\n  </a>\n   <a href=\"https://github.com/antvis/S2/actions/workflows/test.yml\" target=\"_blank\">\n    <img src=\"https://github.com/antvis/S2/actions/workflows/test.yml/badge.svg\" alt=\"ci test status\"/>\n  </a>\n  <a href=\"https://codecov.io/gh/antvis/S2\" target=\"_blank\">\n    <img src=\"https://codecov.io/gh/antvis/S2/branch/master/graph/badge.svg\" alt=\"Coverage\"/>\n  </a>\n  <a href=\"https://github.com/antvis/S2/releases\" target=\"_blank\">\n    <img src=\"https://img.shields.io/github/release-date/antvis/S2\" alt=\"release-date\"/>\n  </a>\n</p>\n\n<p>\n  <a href=\"https://www.npmjs.com/package/@antv/s2\" target=\"_blank\">\n    <img alt=\"npm bundle size\" src=\"https://img.badgesize.io/https:/unpkg.com/@antv/s2@latest/dist/index.min.js?label=gzip%20size&compression=gzip\" alt=\"bundle size\"/>\n  </a>\n  <a href=\"https://github.com/antvis/S2/discussions\" target=\"_blank\">\n    <img src=\"https://img.shields.io/badge/discussions-on%20github-blue\" alt=\"Discussions\"/>\n  </a>\n  <a href=\"https://github.com/actions-cool/issues-helper\" target=\"_blank\">\n    <img src=\"https://img.shields.io/badge/using-issues--helper-blueviolet\" alt=\"issues-helper\"/>\n  </a>\n  <a href=\"https://github.com/antvis/S2/blob/master/LICENSE\" target=\"_blank\" target=\"_blank\">\n    <img alt=\"License: MIT@AntV\" src=\"https://img.shields.io/badge/License-MIT@AntV-yellow.svg\" alt=\"license\"/>\n  </a>\n</p>\n\n</div>\n\nS2 is a solution in multi-dimensional cross-analysis tables, which provides data-driven analysis table components.\n It supplements multi-dimensional analysis tables in the industry. By providing the core library, essential components,\ndemo components and expansion capabilities, it allows developers to use it quickly and freely.\n\n## 🏠 Homepage\n\n![homepage](https://gw.alipayobjects.com/zos/antfincdn/6R5Koawk9L/huaban%2525202.png)\n\n* [Homepage](https://s2.antv.vision)\n* [Demos](https://antv-s2.gitee.io/en/examples/gallery)\n\n## ✨ Features\n\n1. Multi-dimensional cross-analysis: Say goodbye to a single analysis dimension and fully embrace the free combination analysis of any dimension.\n2. High performance: It can support rendering in less than 8s under the total amount of millions of data and achieve second-level rendering through partial drilling.\n3. High scalability: Support any custom extensions (including but not limited to layout, style, interaction, data hook flow, etc.).\n4. Out of the box: Provide out-of-the-box `React` and `Vue3` table components and supporting analysis components in different analysis scenarios. You only need a simple configuration to realize the table rendering\n of complex scenes quickly.\n5. High interaction: support rich interaction forms (single selection, circle selection, row selection, column selection, freeze line header, width and height dragging, custom interaction, etc.)\n\n## 📦 Installation\n\n```bash\n$ npm install @antv/s2\n# yarn add @antv/s2\n```\n\n## 🔨 Getting Started\n\n### 1. Data Preparation\n\n<details>\n  <summary> s2DataConfig</summary>\n\n```ts\nconst s2DataConfig = {\n  fields: {\n    rows: ['province', 'city'],\n    columns: ['type'],\n    values: ['price'],\n  },\n  data: [\n     {\n      province: '浙江',\n      city: '杭州',\n      type: '笔',\n      price: '1',\n    },\n    {\n      province: '浙江',\n      city: '杭州',\n      type: '纸张',\n      price: '2',\n    },\n    {\n      province: '浙江',\n      city: '舟山',\n      type: '笔',\n      price: '17',\n    },\n    {\n      province: '浙江',\n      city: '舟山',\n      type: '纸张',\n      price: '0.5',\n    },\n    {\n      province: '吉林',\n      city: '长春',\n      type: '笔',\n      price: '8',\n    },\n    {\n      province: '吉林',\n      city: '白山',\n      type: '笔',\n      price: '9',\n    },\n    {\n      province: '吉林',\n      city: '长春',\n      type: ' 纸张',\n      price: '3',\n    },\n    {\n      province: '吉林',\n      city: '白山',\n      type: '纸张',\n      price: '1',\n    },\n  ],\n};\n```\n\n</details>\n\n### 2.  Options Preparation\n\n```ts\nconst s2Options = {\n  width: 600,\n  height: 600,\n}\n```\n\n### 3. Component Rendering\n\n```html\n<div id=\"container\"></div>\n```\n\n```ts\nimport { PivotSheet } from '@antv/s2';\n\nconst container = document.getElementById('container');\n\nconst s2 = new PivotSheet(container, s2DataCfg, s2Options)\n\ns2.render()\n```\n\n### 4. Preview\n\n![result](https://gw.alipayobjects.com/zos/antfincdn/vCukbtVNvl/616f7ef1-e626-4225-99f8-dc8f6ca630dd.png)\n\n### 📦 Packages\n\n| Package  | Latest  |  Beta | Alpha | Size | Download |\n|---|---|---|---| --- | --- |\n| [@antv/s2](https://github.com/antvis/S2/tree/master/packages/s2-core)  | ![latest](https://img.shields.io/npm/v/@antv/s2/latest.svg)  |  ![beta](https://img.shields.io/npm/v/@antv/s2/beta.svg) | ![alpha](https://img.shields.io/npm/v/@antv/s2/alpha.svg) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2@latest/dist/index.min.js?label=gzip%20size&compression=gzip)  | ![download](https://img.shields.io/npm/dm/@antv/s2.svg) |\n| [@antv/s2-react](https://github.com/antvis/S2/tree/master/packages/s2-react)  | ![latest](https://img.shields.io/npm/v/@antv/s2-react/latest.svg)  |  ![beta](https://img.shields.io/npm/v/@antv/s2-react/beta.svg) | ![alpha](https://img.shields.io/npm/v/@antv/s2-react/alpha.svg) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-react@latest/dist/index.min.js?label=gzip%20size&compression=gzip)  | ![download](https://img.shields.io/npm/dm/@antv/s2-react.svg) |\n\n## 👤 Author\n\n[**@AntV**](https://github.com/orgs/antvis/people)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome.\nFeel free to check [issues](https://github.com/antvis/S2/issues) page if you want to contribute.\n\n```bash\ngit clone git@github.com:antvis/S2.git\n\ncd S2\n\nyarn\n\nyarn core:start\n\n# start the website\n\nyarn site:bootstrap\n\nyarn site:start\n```\n\n## 📧 Contact Us\n\n<img style=\"width: 300px; height: auto\" alt=\"S2\" src=\"https://gw.alipayobjects.com/zos/antfincdn/2zjO70QLdp/7939a108-930c-42a9-a0d3-fbfdc2cc44cf.jpg\">\n\n## 👬 Contributors\n\n![https://github.com/antvis/s2/graphs/contributors](https://contrib.rocks/image?repo=antvis/s2)\n\n## 📄 License\n\nMIT@[AntV](https://github.com/antvis)\n","readmeFilename":"README.en-US.md"}