mirror of
https://gitee.com/antv/g6.git
synced 2024-11-29 18:28:19 +08:00
1 line
13 KiB
Plaintext
1 line
13 KiB
Plaintext
{"version":3,"sources":["docs/api/reference/g6.canvas.en.md"],"sourcesContent":["import API from '/home/runner/work/G6/G6/node_modules/.pnpm/dumi@2.4.14_@babel+core@7.26.0_@swc+helpers@0.5.1_@types+node@20.17.9_@types+react@18.3.12_es_54awilfh3ualxwsi36hmrn5nxe/node_modules/dumi/theme-default/builtins/API/index.js';\nimport Badge from '/home/runner/work/G6/G6/node_modules/.pnpm/dumi@2.4.14_@babel+core@7.26.0_@swc+helpers@0.5.1_@types+node@20.17.9_@types+react@18.3.12_es_54awilfh3ualxwsi36hmrn5nxe/node_modules/dumi/theme-default/builtins/Badge/index.js';\nimport CodeGroup from '/home/runner/work/G6/G6/node_modules/.pnpm/dumi@2.4.14_@babel+core@7.26.0_@swc+helpers@0.5.1_@types+node@20.17.9_@types+react@18.3.12_es_54awilfh3ualxwsi36hmrn5nxe/node_modules/dumi/theme-default/builtins/CodeGroup/index.js';\nimport Container from '/home/runner/work/G6/G6/node_modules/.pnpm/dumi@2.4.14_@babel+core@7.26.0_@swc+helpers@0.5.1_@types+node@20.17.9_@types+react@18.3.12_es_54awilfh3ualxwsi36hmrn5nxe/node_modules/dumi/theme-default/builtins/Container/index.js';\nimport Previewer from '/home/runner/work/G6/G6/node_modules/.pnpm/dumi@2.4.14_@babel+core@7.26.0_@swc+helpers@0.5.1_@types+node@20.17.9_@types+react@18.3.12_es_54awilfh3ualxwsi36hmrn5nxe/node_modules/dumi/theme-default/builtins/Previewer/index.js';\nimport SourceCode from '/home/runner/work/G6/G6/node_modules/.pnpm/dumi@2.4.14_@babel+core@7.26.0_@swc+helpers@0.5.1_@types+node@20.17.9_@types+react@18.3.12_es_54awilfh3ualxwsi36hmrn5nxe/node_modules/dumi/theme-default/builtins/SourceCode/index.js';\nimport Table from '/home/runner/work/G6/G6/node_modules/.pnpm/dumi@2.4.14_@babel+core@7.26.0_@swc+helpers@0.5.1_@types+node@20.17.9_@types+react@18.3.12_es_54awilfh3ualxwsi36hmrn5nxe/node_modules/dumi/theme-default/builtins/Table/index.js';\nimport Tree from '/home/runner/work/G6/G6/node_modules/.pnpm/dumi@2.4.14_@babel+core@7.26.0_@swc+helpers@0.5.1_@types+node@20.17.9_@types+react@18.3.12_es_54awilfh3ualxwsi36hmrn5nxe/node_modules/dumi/theme-default/builtins/Tree/index.js';\nimport Playground from '/home/runner/work/G6/G6/packages/site/node_modules/@antv/dumi-theme-antv/dist/builtins/Playground/index.js';\nimport { DumiDemo } from 'dumi';\nimport { DumiDemoGrid } from 'dumi';\nimport { Link } from 'dumi';\n\nimport LoadingComponent from '@@/dumi/theme/loading';\nimport React, { Suspense } from 'react';\nimport { DumiPage, useTabMeta, useRouteMeta } from 'dumi';\n\nfunction DumiMarkdownInner() {\n const { texts: $$contentTexts } = useRouteMeta();\n\n return <><div className=\"markdown\"><p><Link to=\"/en/api/reference/g6\">{$$contentTexts[0].value}</Link>{$$contentTexts[1].value}<Link to=\"/en/api/reference/g6/canvas\">{$$contentTexts[2].value}</Link></p><h2 id=\"canvas-class\"><a aria-hidden=\"true\" tabIndex=\"-1\" href=\"#canvas-class\"><span className=\"icon icon-link\" /></a>{\"Canvas class\"}</h2><SourceCode lang=\"typescript\">{$$contentTexts[3].value}</SourceCode><h2 id=\"constructors\"><a aria-hidden=\"true\" tabIndex=\"-1\" href=\"#constructors\"><span className=\"icon icon-link\" /></a>{\"Constructors\"}</h2><Table><thead><tr><th><p>{$$contentTexts[4].value}</p></th><th><p>{$$contentTexts[5].value}</p></th><th><p>{$$contentTexts[6].value}</p></th></tr></thead><tbody><tr><td><p><Link to=\"/en/api/reference/g6/canvas/_constructor_\">{$$contentTexts[7].value}</Link></p></td><td /><td><ul><li>{$$contentTexts[8].value}<code>{$$contentTexts[9].value}</code>{$$contentTexts[10].value}</li></ul></td></tr></tbody></Table><h2 id=\"properties\"><a aria-hidden=\"true\" tabIndex=\"-1\" href=\"#properties\"><span className=\"icon icon-link\" /></a>{\"Properties\"}</h2><Table><thead><tr><th><p>{$$contentTexts[11].value}</p></th><th><p>{$$contentTexts[12].value}</p></th><th><p>{$$contentTexts[13].value}</p></th><th><p>{$$contentTexts[14].value}</p></th><th><p>{$$contentTexts[15].value}</p></th></tr></thead><tbody><tr><td><p><Link to=\"/en/api/reference/g6/canvas/context\">{$$contentTexts[16].value}</Link></p></td><td><p><code>{$$contentTexts[17].value}</code></p></td><td><p>{$$contentTexts[18].value}</p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/document\">{$$contentTexts[19].value}</Link></p></td><td><p><code>{$$contentTexts[20].value}</code></p></td><td><p>{$$contentTexts[21].value}</p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/ready\">{$$contentTexts[22].value}</Link></p></td><td><p><code>{$$contentTexts[23].value}</code></p></td><td><p>{$$contentTexts[24].value}</p></td><td /><td /></tr></tbody></Table><h2 id=\"methods\"><a aria-hidden=\"true\" tabIndex=\"-1\" href=\"#methods\"><span className=\"icon icon-link\" /></a>{\"Methods\"}</h2><Table><thead><tr><th><p>{$$contentTexts[25].value}</p></th><th><p>{$$contentTexts[26].value}</p></th><th><p>{$$contentTexts[27].value}</p></th></tr></thead><tbody><tr><td><p><Link to=\"/en/api/reference/g6/canvas/appendchild\">{$$contentTexts[28].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/destroy\">{$$contentTexts[29].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getbounds\">{$$contentTexts[30].value}</Link></p></td><td /><td><p>{$$contentTexts[31].value}</p></td></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getcamera\">{$$contentTexts[32].value}</Link></p></td><td /><td><p>{$$contentTexts[33].value}</p></td></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getcanvasbyclient\">{$$contentTexts[34].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getcanvasbyviewport\">{$$contentTexts[35].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getclientbycanvas\">{$$contentTexts[36].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getclientbyviewport\">{$$contentTexts[37].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getconfig\">{$$contentTexts[38].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getcontainer\">{$$contentTexts[39].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getcontextservice\">{$$contentTexts[40].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getlayer\">{$$contentTexts[41].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getlayers\">{$$contentTexts[42].value}</Link></p></td><td /><td><p>{$$contentTexts[43].value}</p></td></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getrenderer\">{$$contentTexts[44].value}</Link></p></td><td /><td><p>{$$contentTexts[45].value}</p></td></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getroot\">{$$contentTexts[46].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getsize\">{$$contentTexts[47].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getviewportbycanvas\">{$$contentTexts[48].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/getviewportbyclient\">{$$contentTexts[49].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/resize\">{$$contentTexts[50].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/setcursor\">{$$contentTexts[51].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/setrenderer\">{$$contentTexts[52].value}</Link></p></td><td /><td /></tr><tr><td><p><Link to=\"/en/api/reference/g6/canvas/todataurl\">{$$contentTexts[53].value}</Link></p></td><td /><td /></tr></tbody></Table></div></>;\n}\n\n// export named function for fastRefresh\n// ref: https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/docs/TROUBLESHOOTING.md#edits-always-lead-to-full-reload\nfunction DumiMarkdownContent() {\n // wrap suspense for catch async meta data\n return <DumiPage><Suspense fallback={<LoadingComponent />}><DumiMarkdownInner /></Suspense></DumiPage>;\n}\n\nexport default DumiMarkdownContent;"],"names":[],"mappings":"+PA8BA,+CAAA,4CA9BgB,cACE,cACI,cACA,cACA,wBACC,qBACL,eACD,cACM,oBACE,oBAII,iBACG,YAGhC,SAAS,IACP,GAAM,CAAE,MAAO,CAAc,CAAE,CAAG,GAAA,cAAY,IAE9C,MAAO,+BAAE,WAAC,OAAI,UAAU,qBAAW,WAAC,eAAE,UAAC,MAAI,EAAC,GAAG,gCAAwB,CAAc,CAAC,EAAE,CAAC,KAAK,GAAS,CAAc,CAAC,EAAE,CAAC,KAAK,CAAC,UAAC,MAAI,EAAC,GAAG,uCAA+B,CAAc,CAAC,EAAE,CAAC,KAAK,MAAY,WAAC,MAAG,GAAG,yBAAe,UAAC,KAAE,cAAY,OAAO,SAAS,KAAK,KAAK,yBAAgB,UAAC,QAAK,UAAU,qBAAwB,kBAAoB,UAAC,SAAU,EAAC,KAAK,sBAAc,CAAc,CAAC,EAAE,CAAC,KAAK,GAAc,WAAC,MAAG,GAAG,yBAAe,UAAC,KAAE,cAAY,OAAO,SAAS,KAAK,KAAK,yBAAgB,UAAC,QAAK,UAAU,qBAAwB,kBAAoB,WAAC,SAAK,YAAC,UAAC,kBAAM,WAAC,gBAAG,UAAC,eAAG,UAAC,cAAG,CAAc,CAAC,EAAE,CAAC,KAAK,KAAU,UAAC,eAAG,UAAC,cAAG,CAAc,CAAC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