Skip to content

Commit

Permalink
feat: webxr example
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoiver committed Jun 11, 2024
1 parent 0d295fd commit 104b312
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"chroma-js": "^2.1.0",
"classnames": "^2.2.6",
"d3": "^7.8.5",
"dumi": "^2.0.0-beta.15",
"dumi": "~2.2.1",
"gh-pages": "^3.1.0",
"husky": "^8.0.2",
"lodash": "^4.17.20",
Expand Down
3 changes: 2 additions & 1 deletion site/components/ComplexCharts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export function ComplexCharts() {
src={select.video}
autoPlay
loop
style={{ objectFit: 'fill' }}
// @ts-ignore
style={{ objectFit: select.objectFit || 'fill' }}
/>
</a>
</div>
Expand Down
8 changes: 8 additions & 0 deletions site/data/complex-charts.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,13 @@
"link": "https://g2.antv.antgroup.com/examples/storytelling/storytelling/#stocks-keyframe",
"img": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*yrlSTZeONjUAAAAAAAAAAAAADmJ7AQ/original",
"activeImg": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*HG6pSovStWgAAAAAAAAAAAAADmJ7AQ/original"
},
{
"text": "WebXR",
"video": "https://gw.alipayobjects.com/v/huamei_qa8qxu/afts/video/StguTYJvYQMAAAAAAAAAAAAAVoeUAQBr",
"link": "https://5mxqzn.csb.app/",
"img": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*RFK7R4TWuWQAAAAAAAAAAAAADmJ7AQ/original",
"activeImg": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*NYQ-SLUYDpMAAAAAAAAAAAAADmJ7AQ/original",
"objectFit": "contain"
}
]

0 comments on commit 104b312

Please sign in to comment.