[
  {
    "path": ".editorconfig",
    "content": "# EditorConfig is awesome: http://EditorConfig.org\n\n# top-most EditorConfig file\nroot = true\n\n# Unix-style newlines with a newline ending every file\n[*]\nend_of_line = lf\ncharset = utf-8\ninsert_final_newline = true\ntrim_trailing_whitespace = true\nindent_style = space\nindent_size  = 2\n\n[Makefile]\nindent_style = tab\nindent_size  = 1\n\n[*.md]\ntrim_trailing_whitespace = false"
  },
  {
    "path": ".eslintignore",
    "content": "build/\ncoverage/\ndemos/assets/\ndist/\nlib/\nmocks/\nnode_modules/\n"
  },
  {
    "path": ".eslintrc",
    "content": "{\n  \"extends\": [\n    \"egg\"\n  ],\n  \"globals\": {\n    \"$\": true,\n    \"DataSet\": true,\n    \"G2\": true,\n    \"d3\": true,\n    \"_\": true,\n    \"Component\": true,\n    \"my\": true\n  },\n  \"parser\": \"babel-eslint\",\n  \"parserOptions\": {\n    \"sourceType\": \"module\"\n  },\n  \"rules\": {\n    \"no-bitwise\": [\n      0\n    ],\n    \"experimentalDecorators\": [\n      0\n    ],\n    \"comma-dangle\": [\n      \"error\",\n      \"never\"\n    ],\n    \"no-console\": [\n      \"error\",\n      {\n        \"allow\": [\n          \"warn\",\n          \"error\"\n        ]\n      }\n    ]\n  }\n}\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE.md",
    "content": "<!--\nThank you for reporting an issue.\n\n1. It's RECOMMENDED to submit PR for typo or tiny bug fix.\n2. If this's a FEATURE request, please provide: details, pseudo codes if necessary.\n3. If this's a BUG, please provide: course repetition, error log and configuration. Fill in as much of the template below as you're able.\n\n感谢您向我们反馈问题。\n\n1. 提交问题前，请先阅读 https://antv.alipay.com 上的文档（可站内搜索 `myF2` 关键字）。\n2. 我们推荐如果是小问题（错别字修改，小的 bug fix）直接提交 PR。\n3. 如果是一个新需求，请提供：详细需求描述，最好是有伪代码实现。\n4. 如果是一个 BUG，请提供：复现步骤，错误日志以及相关配置，并尽量填写下面的模板中的条目。\n6. 扩展阅读：[如何向开源项目提交无法解答的问题](https://zhuanlan.zhihu.com/p/25795393)\n-->\n\n* **Link**:\n* **Platform**:\n* **Mini Showcase(like screenshots)**:\n\n<!-- Enter your issue details below this comment. -->\n"
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE.md",
    "content": "<!--\nThank you for your pull request. Please review below requirements.\nBug fixes and new features should include tests and possibly benchmarks.\nContributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md\n\n感谢您贡献代码。请确认下列 checklist 的完成情况。\nBug 修复和新功能必须包含测试，必要时请附上性能测试。\nContributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md\n-->\n\n##### Checklist\n<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->\n\n- [ ] `npm test` passes\n- [ ] tests and/or benchmarks are included\n- [ ] commit message follows commit guidelines\n\n##### Description of change\n<!-- Provide a description of the change below this comment. -->\n"
  },
  {
    "path": ".gitignore",
    "content": "# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n\n# lock\npackage-lock.json\n\n# Runtime data\npids\n*.pid\n*.seed\n*.pid.lock\n\n# Directory for instrumented libs generated by jscoverage/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n\n# nyc test coverage\n.nyc_output\n\n# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)\n.grunt\n\n# Bower dependency directory (https://bower.io/)\nbower_components\n\n# node-waf configuration\n.lock-wscript\n\n# Compiled binary addons (http://nodejs.org/api/addons.html)\nbuild/Release\n\n# Dependency directories\nnode_modules/\njspm_packages/\n\n# Typescript v1 declaration files\ntypings/\n\n# Optional npm cache directory\n.npm\n\n# Optional eslint cache\n.eslintcache\n\n# Optional REPL history\n.node_repl_history\n\n# Output of 'npm pack'\n*.tgz\n\n# Yarn Integrity file\n.yarn-integrity\n\n# dotenv environment variables file\n.env\n\nbuild\ndist\nes\nlib\ntemp\n.DS_Store\n.idea\ndemos/assets/screenshots\n\n*.sw*\n*.un~\n"
  },
  {
    "path": ".npmignore",
    "content": "# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n\n# lock\npackage-lock.json\n\n# Runtime data\npids\n*.pid\n*.seed\n*.pid.lock\n\n# Directory for instrumented libs generated by jscoverage/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n\n# nyc test coverage\n.nyc_output\n\n# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)\n.grunt\n\n# Bower dependency directory (https://bower.io/)\nbower_components\n\n# node-waf configuration\n.lock-wscript\n\n# Compiled binary addons (http://nodejs.org/api/addons.html)\nbuild/Release\n\n# Dependency directories\nnode_modules/\njspm_packages/\n\n# Typescript v1 declaration files\ntypings/\n\n# Optional npm cache directory\n.npm\n\n# Optional eslint cache\n.eslintcache\n\n# Optional REPL history\n.node_repl_history\n\n# Output of 'npm pack'\n*.tgz\n\n# Yarn Integrity file\n.yarn-integrity\n\n# dotenv environment variables file\n.env\n\n.DS_Store\n\n# npmignore - content above this line is automatically generated and modifications may be omitted\n# see npmjs.com/npmignore for more details.\ntest\n\n*.sw*\n*.un~\n.idea\nbin\ndemos\nexamples\ndocs\ntemp\nwebpack-dev.config.js\nwebpack.config.js\n"
  },
  {
    "path": ".travis.yml",
    "content": "language: node_js\n\nnode_js:\n  - \"8\"\n\nenv:\n  matrix:\n    - TEST_TYPE=ci\n\naddons:\n  apt:\n    packages:\n      - xvfb\n\ninstall:\n  - export DISPLAY=':99.0'\n  - Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &\n  - npm install\n\nscript:\n  - |\n    if [ \"$TEST_TYPE\" = ci ]; then\n      npm run ci\n    fi\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "#### 1.1.6 (2019-02-11)\n\n##### New Features\n\n*  支持 shadow 阴影样式设置。Closed [#18](https://github.com/antvis/my-f2/pull/18) ([8886a950](https://github.com/antvis/my-f2/commit/8886a950de745cbbdadeac3a95a9c45010bfe78a))\n\n##### Other Changes\n\n*  update @antv/f2 version ([8336f540](https://github.com/antvis/my-f2/commit/8336f540ee05e4e0fd9408e95162f974949b9484))\n\n#### 1.1.3 (2018-10-17)\n\n##### Bug Fixes\n\n* 钉钉小程序适配 measureText() 方法。 ([05d13998](https://github.com/antvis/my-f2/commit/05d139981465e76b8f569aa6999d034d76c51a2b))\n\n \n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "# Contribution Guide\n\nIf you have any comment or advice, please report your [issue](https://github.com/antvis/my-f2/issues),\nor make any change as you wish and submit an [PR](https://github.com/antvis/my-f2/pulls).\n\n## Reporting New Issues\n\n- Please specify what kind of issue it is.\n- Before you report an issue, please search for related issues. Make sure you are not going to open a duplicate issue.\n- Explain your purpose clearly in tags(see **Useful Tags**), title, or content.\n\nAntV group members will confirm the purpose of the issue, replace more accurate tags for it, identify related milestone, and assign developers working on it.\n\n## Submitting Code\n\n### Pull Request Guide\n\nIf you are developer of AntV repo and you are willing to contribute, feel free to create a new branch, finish your modification and submit a PR. AntV group will review your work and merge it to master branch.\n\n```bash\n# Create a new branch for development. The name of branch should be semantic, avoiding words like 'update' or 'tmp'. We suggest to use feature/xxx, if the modification is about to implement a new feature.\n$ git checkout -b branch-name\n\n# Run the test after you finish your modification. Add new test cases or change old ones if you feel necessary\n$ npm test\n\n# If your modification pass the tests, congradulations it's time to push your work back to us. Notice that the commit message should be wirtten in the following format.\n$ git add . # git add -u to delete files\n$ git commit -m \"fix(role): role.use must xxx\"\n$ git push origin branch-name\n```\n\nThen you can create a Pull Request at [my-f2](https://github.com/antvis/my-f2/pulls).\n\nNo one can garantee how much will be remembered about certain PR after some time. To make sure we can easily recap what happened previously, please provide the following information in your PR.\n\n1. Need: What function you want to achieve (Generally, please point out which issue is related).\n2. Updating Reason: Different with issue. Briefly describe your reason and logic about why you need to make such modification.\n3. Related Testing: Briefly descirbe what part of testing is relevant to your modification.\n4. User Tips: Notice for my-f2 users. You can skip this part, if the PR is not about update in API or potential compatibility problem.\n\n### Style Guide\n\nEslint can help to identify styling issues that may exist in your code. Your code is required to pass the test from eslint. Run the test locally by `$ npm run lint`.\n\n### Commit Message Format\n\nYou are encouraged to use [angular commit-message-format](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format) to write commit message. In this way, we could have a more trackable history and an automatically generated changelog.\n\n```xml\n<type>(<scope>): <subject>\n<BLANK LINE>\n<body>\n<BLANK LINE>\n<footer>\n```\n\n（1）type\n\nMust be one of the following:\n\n- feat: A new feature\n- fix: A bug fix\n- docs: Documentation-only changes\n- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)\n- refactor: A code change that neither fixes a bug nor adds a feature\n- perf: A code change that improves performance\n- test: Adding missing tests\n- chore: Changes to the build process or auxiliary tools and libraries such as documentation generation\n- deps: Updates about dependencies\n\n（2）scope\n\nThe scope could be anything specifying place of the commit change.\n\n（3）subject\n\nUse succinct words to describe what did you do in the commit change.\n\n（4）body\n\nFeel free to add more content in the body, if you think subject is not self-explanatory enough, such as what it is the purpose or reasone of you commit.\n\n（5）footer\n\n- **If the commit is a Breaking Change, please note it clearly in this part.**\n- related issues, like `Closes #1, Closes #2, #3`\n\ne.g.\n\n```\nfix($compile): [BREAKING_CHANGE] couple of unit tests for IE9\n\nOlder IEs serialize html uppercased, but IE9 does not...\nWould be better to expect case insensitive, unfortunately jasmine does\nnot allow to user regexps for throw expectations.\n\nDocument change on antvis/my-f2#123\n\nCloses #392\n\nBREAKING CHANGE:\n\n  Breaks foo.bar api, foo.baz should be used instead\n```\n\nLook at [these files](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit) for more detials.\n\n## Release\n\nmy-f2 uses semantic versioning in release process based on [semver].\n\n### Branch Strategy\n\n`master` branch is the latest stable version. \n\n- just checkout develop branch from `master`\n- All new features will be added into `master` or `next` branch as well as all bug-fix except security issues. In such way, we can motivate developers to update to the latest stable version.\n\n\n### Release Strategy\n\nIn the release of every stable version, there will be a PM who has the following responsibilities in different stages of the release.\n\n#### Preparation\n\n- Set up milestone. Confirm that request is related to milestone.\n\n#### Before Release\n\n- Confirm that performance test is passed and all issues in current Milestone are either closed or can be delayed to later versions.\n- Open a new [Release Proposal MR], and write `History` as [node CHANGELOG]. Don't forget to correct content in documentation which is related to the releasing version. Commits can be generated automatically.\n    ```\n    $ npm run commits\n    ```\n- Nominate PM for next stable version.\n\n\n[semver]: http://semver.org/lang/zh-CN/\n[Release proposal MR]: https://github.com/nodejs/node/pull/4181\n[node CHANGELOG]: https://github.com/nodejs/node/blob/master/CHANGELOG.md\n[『我是如何发布一个 npm 包的』]: https://fengmk2.com/blog/2016/how-i-publish-a-npm-package\n"
  },
  {
    "path": "CONTRIBUTING.zh-CN.md",
    "content": "# 代码贡献规范\n\n有任何疑问，欢迎提交 [issue](https://github.com/antvis/my-f2/issues)，\n或者直接修改提交 [PR](https://github.com/antvis/my-f2/pulls)!\n\n## 提交 issue\n\n- 请确定 issue 的类型。\n- 请避免提交重复的 issue，在提交之前搜索现有的 issue。\n- 在标签(分类参考**标签分类**), 标题 或者内容中体现明确的意图。\n\n随后 AntV 负责人会确认 issue 意图，更新合适的标签，关联 milestone，指派开发者。\n\n## 提交代码\n\n### 提交 Pull Request\n\n如果你有仓库的开发者权限，而且希望贡献代码，那么你可以创建分支修改代码提交 PR，AntV 开发团队会 review 代码合并到主干。\n\n```bash\n# 先创建开发分支开发，分支名应该有含义，避免使用 update、tmp 之类的\n$ git checkout -b branch-name\n\n# 开发完成后跑下测试是否通过，必要时需要新增或修改测试用例\n$ npm test\n\n# 测试通过后，提交代码，message 见下面的规范\n\n$ git add . # git add -u 删除文件\n$ git commit -m \"fix(role): role.use must xxx\"\n$ git push origin branch-name\n```\n\n提交后就可以在 [my-f2](https://github.com/antvis/my-f2/pulls) 创建 Pull Request 了。\n\n由于谁也无法保证过了多久之后还记得多少，为了后期回溯历史的方便，请在提交 MR 时确保提供了以下信息。\n\n1. 需求点（一般关联 issue 或者注释都算）\n2. 升级原因（不同于 issue，可以简要描述下为什么要处理）\n3. 框架测试点（可以关联到测试文件，不用详细描述，关键点即可）\n4. 关注点（针对用户而言，可以没有，一般是不兼容更新等，需要额外提示）\n\n### 代码风格\n\n你的代码风格必须通过 eslint，你可以运行 `$ npm run lint` 本地测试。\n\n### Commit 提交规范\n\n根据 [angular 规范](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format)提交 commit，\n这样 history 看起来更加清晰，还可以自动生成 changelog。\n\n```xml\n<type>(<scope>): <subject>\n<BLANK LINE>\n<body>\n<BLANK LINE>\n<footer>\n```\n\n（1）type\n\n提交 commit 的类型，包括以下几种\n\n- feat: 新功能\n- fix: 修复问题\n- docs: 修改文档\n- style: 修改代码格式，不影响代码逻辑\n- refactor: 重构代码，理论上不影响现有功能\n- perf: 提升性能\n- test: 增加修改测试用例\n- chore: 修改工具相关（包括但不限于文档、代码生成等）\n- deps: 升级依赖\n\n（2）scope\n\n修改文件的范围\n\n（3）subject\n\n用一句话清楚的描述这次提交做了什么\n\n（4）body\n\n补充 subject，适当增加原因、目的等相关因素，也可不写。\n\n（5）footer\n\n- **当有非兼容修改(Breaking Change)时必须在这里描述清楚**\n- 关联相关 issue，如 `Closes #1, Closes #2, #3`\n\n示例\n\n```\nfix($compile): [BREAKING_CHANGE] couple of unit tests for IE9\n\nOlder IEs serialize html uppercased, but IE9 does not...\nWould be better to expect case insensitive, unfortunately jasmine does\nnot allow to user regexps for throw expectations.\n\nDocument change on antvis/my-f2#12\n\nCloses #392\n\nBREAKING CHANGE:\n\n  Breaks foo.bar api, foo.baz should be used instead\n```\n\n查看具体[文档](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit)\n\n## 发布管理\n\nmy-f2 基于 [semver] 语义化版本号进行发布。\n\n`master` 分支为当前稳定发布的版本。\n\n- 直接从 `master` 切出开发分支\n- 所有 API 的废弃都需要在当前的稳定版本上 `deprecate` 提示，并保证在当前的稳定版本上一直兼容到新版本的发布。\n\n### 发布策略\n\n每个大版本都有一个发布经理管理（PM），他/她要做的事情\n\n#### 准备工作：\n\n- 建立 milestone，确认需求关联 milestone，指派和更新 issues。\n\n#### 发布前：\n\n- 确认当前 Milestone 所有的 issue 都已关闭或可延期，完成性能测试。\n- 发起一个新的 [Release Proposal MR]，按照 [node CHANGELOG] 进行 `History` 的编写，修正文档中与版本相关的内容，commits 可以自动生成。\n    ```bash\n    $ npm run commits\n    ```\n- 指定下一个大版本的 PM。\n\n#### 发布时：\n\n- 将老的稳定版本（master）备份到以当前大版本为名字的分支上（例如 `1.x`），并设置 tag 为 {v}.x`（ v 为当前版本，例如 `1.x`）。\n- 发布新的稳定版本到 [npm]，并通知上层框架进行更新。\n- `npm publish` 之前，请先阅读[『我是如何发布一个 npm 包的』]。\n\n\n[semver]: http://semver.org/lang/zh-CN/\n[Release proposal MR]: https://github.com/nodejs/node/pull/4181\n[node CHANGELOG]: https://github.com/nodejs/node/blob/master/CHANGELOG.md\n[npm]: http://npmjs.com/\n[『我是如何发布一个 npm 包的』]: https://fengmk2.com/blog/2016/how-i-publish-a-npm-package\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2018 AntV team\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# F2 支付宝小程序\n\nF2 的支付宝小程序版本，支持原生 [F2](https://f2.antv.vision/) 的所有功能，欢迎使用反馈。\n\n## 说明\n为了方便使用，我们封装了小程序的自定义组件，故需要支付宝小程序基础库支持自定义组件\n\n**重要：版本要求**\n\n1. 小程序基础库版本 **1.7.0** 或以上\n\n## 如何使用\n\n### 1. 安装依赖\n项目默认初始化出来的是没有`package.json`的，需要新增`package.json`后再安装\n\n```bash\n## 没有package.json时执行下面这段\n## echo \"{}\" > package.json\n\nnpm install @antv/my-f2 --save\n```\n\n### 2. 使用自定义组件\n\n#### 1. 打开json文件，引入组件\n\n```json\n{\n  \"usingComponents\": {\n    \"f2\": \"@antv/my-f2\"\n  }\n}\n```\n\n#### 2. axml 使用组件\n\n```xml\n<view class=\"f2-chart\">\n  <f2 onInit=\"onInitChart\"></f2>\n</view>\n```\n\n#### 3. acss 设置宽高\n```css\n.f2-chart {\n  width: 100%;\n  height: 500rpx;\n}\n```\n\n#### 4. 实例化图表\n\n```js\nPage({\n  data: {},\n  onInitChart(F2, config) {\n    const chart = new F2.Chart(config);\n    const data = [\n      { value: 63.4, city: 'New York', date: '2011-10-01' },\n      { value: 62.7, city: 'Alaska', date: '2011-10-01' },\n      { value: 72.2, city: 'Austin', date: '2011-10-01' },\n      { value: 58, city: 'New York', date: '2011-10-02' },\n      { value: 59.9, city: 'Alaska', date: '2011-10-02' },\n      { value: 67.7, city: 'Austin', date: '2011-10-02' },\n      { value: 53.3, city: 'New York', date: '2011-10-03' },\n      { value: 59.1, city: 'Alaska', date: '2011-10-03' },\n      { value: 69.4, city: 'Austin', date: '2011-10-03' },\n    ];\n    chart.source(data, {\n      date: {\n        range: [0, 1],\n        type: 'timeCat',\n        mask: 'MM-DD'\n      },\n      value: {\n        max: 300,\n        tickCount: 4\n      }\n    });\n    chart.area().position('date*value').color('city').adjust('stack');\n    chart.line().position('date*value').color('city').adjust('stack');\n    chart.render();\n    // 注意：需要把chart return 出来\n    return chart;\n  }\n});\n```\n\n## API\n\n- F2 API 参见：[https://f2.antv.vision/zh/docs/api/f2](https://f2.antv.vision/zh/docs/api/f2)\n\n## 如何贡献\n\n如果您在使用的过程中碰到问题，可以先通过 [issues](https://github.com/antvis/my-f2/issues) 看看有没有类似的 bug 或者建议。\n\n## License\n\n[MIT license](https://github.com/antvis/my-f2/blob/master/LICENSE)\n"
  },
  {
    "path": "examples/test/.mini-ide/project-ide.json",
    "content": "{\n  \"enableLegacyRemoteDebug\": false\n}"
  },
  {
    "path": "examples/test/app.acss",
    "content": "page {\n  background: #f7f7f7;\n}\n"
  },
  {
    "path": "examples/test/app.js",
    "content": "App({\n  onLaunch(options) {\n    // 第一次打开\n    // options.query == {number:1}\n    console.info('App onLaunch');\n  },\n  onShow(options) {\n    // 从后台被 scheme 重新打开\n    // options.query == {number:1}\n  },\n});\n"
  },
  {
    "path": "examples/test/app.json",
    "content": "{\n  \"pages\": [\n    \"pages/index/index\"\n  ],\n  \"window\": {\n    \"defaultTitle\": \"My App\"\n  }\n}\n"
  },
  {
    "path": "examples/test/mini.project.json",
    "content": "{\n  \"enableAppxNg\": true\n}"
  },
  {
    "path": "examples/test/package.json",
    "content": "{\n  \"scripts\": {\n  },\n  \"dependencies\": {\n    \"@antv/my-f2\": \"^2.0.0\"\n  }\n}\n"
  },
  {
    "path": "examples/test/pages/index/index.acss",
    "content": ".f2-chart {\n  width: 100%;\n  height: 500rpx;\n}"
  },
  {
    "path": "examples/test/pages/index/index.axml",
    "content": "<view class=\"f2-chart\">\n  <f2 onInit=\"onInitChart\"></f2>\n</view>"
  },
  {
    "path": "examples/test/pages/index/index.js",
    "content": "Page({\n  data: {},\n  onInitChart(F2, config) {\n    const chart = new F2.Chart(config);\n    const data = [\n      { value: 63.4, city: 'New York', date: '2011-10-01' },\n      { value: 62.7, city: 'Alaska', date: '2011-10-01' },\n      { value: 72.2, city: 'Austin', date: '2011-10-01' },\n      { value: 58, city: 'New York', date: '2011-10-02' },\n      { value: 59.9, city: 'Alaska', date: '2011-10-02' },\n      { value: 67.7, city: 'Austin', date: '2011-10-02' },\n      { value: 53.3, city: 'New York', date: '2011-10-03' },\n      { value: 59.1, city: 'Alaska', date: '2011-10-03' },\n      { value: 69.4, city: 'Austin', date: '2011-10-03' },\n    ];\n    chart.source(data, {\n      date: {\n        range: [0, 1],\n        type: 'timeCat',\n        mask: 'MM-DD'\n      },\n      value: {\n        max: 300,\n        tickCount: 4\n      }\n    });\n    chart.legend({\n      triggerOn: 'click',\n    })\n    chart.area().position('date*value').color('city').adjust('stack');\n    chart.line().position('date*value').color('city').adjust('stack');\n    chart.render();\n    // 注意：需要把chart return 出来\n    return chart;\n  }\n});\n"
  },
  {
    "path": "examples/test/pages/index/index.json",
    "content": "{\n  \"usingComponents\": {\n    \"f2\": \"@antv/my-f2\"\n  }\n}"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"@antv/my-f2\",\n  \"version\": \"2.1.7\",\n  \"description\": \"F2 for alipay mini-program\",\n  \"main\": \"es/index.js\",\n  \"module\": \"es/index.js\",\n  \"scripts\": {\n    \"build\": \"npm run clean && rollup -c && npm run cp\",\n    \"cp\": \"node ./scripts/cp.js\",\n    \"clean\": \"rm -rf es\",\n    \"lint\": \"eslint ./src --ext .js\",\n    \"ci\": \"npm run lint\"\n  },\n  \"dependencies\": {\n    \"@antv/f2\": \"~3.8.0\",\n    \"@antv/f2-context\": \"~0.0.0\"\n  },\n  \"devDependencies\": {\n    \"@rollup/plugin-commonjs\": \"^11.0.1\",\n    \"@rollup/plugin-node-resolve\": \"^6.1.0\",\n    \"babel-eslint\": \"^10.0.3\",\n    \"eslint\": \"^6.8.0\",\n    \"eslint-config-egg\": \"^8.0.0\",\n    \"fs-extra\": \"^8.1.0\",\n    \"pre-commit\": \"^1.2.2\",\n    \"rollup\": \"^1.28.0\"\n  },\n  \"files\": [\n    \"es\"\n  ],\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git@github.com:antvis/my-f2.git\"\n  },\n  \"bugs\": {\n    \"url\": \"https://github.com/antvis/my-f2/issues\"\n  },\n  \"keywords\": [\n    \"antv\",\n    \"f2\",\n    \"my-f2\",\n    \"myF2\",\n    \"alipay mini-program\"\n  ],\n  \"author\": \"https://github.com/orgs/antvis/people\",\n  \"license\": \"MIT\",\n  \"pre-commit\": {\n    \"run\": [\n      \"lint\",\n      \"build\",\n      \"test\"\n    ],\n    \"silent\": false\n  }\n}\n"
  },
  {
    "path": "rollup.config.js",
    "content": "import resolve from '@rollup/plugin-node-resolve';\nimport commonjs from '@rollup/plugin-commonjs';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'es/index.js',\n    format: 'esm'\n  },\n  external: [ '@antv/f2', '@antv/f2-context' ],\n  plugins: [\n    resolve(),\n    commonjs()\n  ]\n};\n"
  },
  {
    "path": "scripts/cp.js",
    "content": "const fs = require('fs-extra');\nconst path = require('path');\n// copy file\nfs.copySync(path.join(__dirname, '../src'), path.join(__dirname, '../es'), {\n  filter(src) {\n    return !src.endsWith('.js');\n  }\n});\n"
  },
  {
    "path": "src/index.acss",
    "content": ".f2-canvas {\n  width: 100%;\n  height: 100%;\n}"
  },
  {
    "path": "src/index.axml",
    "content": "<canvas\n  a:if=\"{{$pageId >= 0}}\"\n  id=\"f2-canvas-{{$pageId}}-{{$id}}\"\n  class=\"f2-canvas\"\n  width=\"{{width}}\"\n  height=\"{{height}}\"\n  onTap=\"click\"\n  onTouchStart=\"touchStart\"\n  onTouchMove=\"touchMove\"\n  onTouchEnd=\"touchEnd\"\n/>\n"
  },
  {
    "path": "src/index.js",
    "content": "import F2 from '@antv/f2';\nimport { my as F2Context } from '@antv/f2-context';\n\nfunction wrapEvent(e) {\n  if (!e) return;\n  if (!e.preventDefault) {\n    e.preventDefault = function() {};\n  }\n  return e;\n}\n\nComponent({\n  // mixins: [],\n  // data: {},\n  props: {\n    onInit: () => {},\n    // width height 会作为元素兜底的宽高使用\n    width: null,\n    height: null\n  },\n  didMount() {\n    const pageId = this.$page && this.$page.$id || 0;\n    const id = `f2-canvas-${pageId}-${this.$id}`;\n    const myCtx = my.createCanvasContext(id, { page: this.$page });\n    const context = F2Context(myCtx);\n\n    this.setData({\n      $pageId: pageId\n    });\n    const query = my.createSelectorQuery({ page: this.$page });\n    query\n      .select(`#${id}`)\n      .boundingClientRect()\n      .exec(res => {\n        // 获取画布实际宽高, 用props的宽高做失败兜底\n        const { width, height } = res && res[0] ? res[0] : this.props;\n        if (!width || !height) {\n          return;\n        }\n        const pixelRatio = my.getSystemInfoSync().pixelRatio;\n        // 高清解决方案\n        this.setData({\n          id,\n          width: width * pixelRatio,\n          height: height * pixelRatio\n        }, () => {\n          const ref = this;\n          const chart = this.props.onInit(F2, { context, width, height, pixelRatio }, ref);\n          if (chart) {\n            this.chart = chart;\n            this.canvasEl = chart.get('el');\n          }\n        });\n      });\n\n  },\n  // didUpdate() {},\n  // didUnmount() {},\n  methods: {\n    click(e) {\n      const canvasEl = this.canvasEl;\n      if (!canvasEl) {\n        return;\n      }\n      const event = wrapEvent(e);\n      // 包装成 touch 对象\n      event.touches = [ e.detail ];\n      canvasEl.dispatchEvent('click', event);\n    },\n    touchStart(e) {\n      const canvasEl = this.canvasEl;\n      if (!canvasEl) {\n        return;\n      }\n      canvasEl.dispatchEvent('touchstart', wrapEvent(e));\n    },\n    touchMove(e) {\n      const canvasEl = this.canvasEl;\n      if (!canvasEl) {\n        return;\n      }\n      canvasEl.dispatchEvent('touchmove', wrapEvent(e));\n    },\n    touchEnd(e) {\n      const canvasEl = this.canvasEl;\n      if (!canvasEl) {\n        return;\n      }\n      canvasEl.dispatchEvent('touchend', wrapEvent(e));\n    }\n  }\n});\n"
  },
  {
    "path": "src/index.json",
    "content": "{\n  \"component\": true\n}"
  }
]