-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f776460
commit 1ff9810
Showing
40 changed files
with
626 additions
and
237 deletions.
There are no files selected for viewing
25 changes: 22 additions & 3 deletions
25
packages/gi-assets-basic/src/components/ActivateRelations/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,36 @@ | ||
--- | ||
title: 元素高亮 | ||
order: 0 | ||
group: | ||
title: 基础资产 | ||
path: /basic | ||
nav: | ||
title: 资产包 | ||
path: /assets | ||
order: 1 | ||
--- | ||
|
||
## ActivateRelations 元素高亮 | ||
|
||
```jsx | ||
import TestSDK, { Mock } from '@antv/gi-assets-testing'; | ||
import * as React from 'react'; | ||
import { GISDK_TEST } from '@antv/gi-sdk'; | ||
import * as Assets from '@antv/gi-assets-basic'; | ||
import Asset from './index.tsx'; | ||
|
||
const App = props => { | ||
const { registerMeta, info } = Asset; | ||
|
||
const App = () => { | ||
return ( | ||
<div> | ||
<TestSDK asset={Asset} /> | ||
<GISDK_TEST assets={Assets} activeAssets={[info]} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; | ||
``` | ||
|
||
``` | ||
``` |
25 changes: 22 additions & 3 deletions
25
packages/gi-assets-basic/src/components/CanvasSetting/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,36 @@ | ||
--- | ||
title: 画布设置 | ||
order: 0 | ||
group: | ||
title: 基础资产 | ||
path: /basic | ||
nav: | ||
title: 资产包 | ||
path: /assets | ||
order: 1 | ||
--- | ||
|
||
## CanvasSetting 画布设置 | ||
|
||
```jsx | ||
import TestSDK, { Mock } from '@antv/gi-assets-testing'; | ||
import * as React from 'react'; | ||
import { GISDK_TEST } from '@antv/gi-sdk'; | ||
import * as Assets from '@antv/gi-assets-basic'; | ||
import Asset from './index.tsx'; | ||
|
||
const App = props => { | ||
const { registerMeta, info } = Asset; | ||
|
||
const App = () => { | ||
return ( | ||
<div> | ||
<TestSDK asset={Asset} /> | ||
<GISDK_TEST assets={Assets} activeAssets={[info]} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; | ||
``` | ||
|
||
``` | ||
``` |
27 changes: 24 additions & 3 deletions
27
packages/gi-assets-basic/src/components/ClearCanvas/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,38 @@ | ||
--- | ||
title: 清除画布 | ||
order: 0 | ||
group: | ||
title: 基础资产 | ||
path: /basic | ||
nav: | ||
title: 资产包 | ||
path: /assets | ||
order: 1 | ||
--- | ||
|
||
## ClearCanvas 清除画布 | ||
|
||
```jsx | ||
import TestSDK, { Mock } from '@antv/gi-assets-testing'; | ||
import * as React from 'react'; | ||
import { GISDK_TEST } from '@antv/gi-sdk'; | ||
import * as Assets from '@antv/gi-assets-basic'; | ||
import Asset from './index.tsx'; | ||
|
||
const App = props => { | ||
const { registerMeta, info } = Asset; | ||
|
||
const App = () => { | ||
return ( | ||
<div> | ||
<TestSDK asset={Asset} /> | ||
<GISDK_TEST assets={Assets} activeAssets={[info]} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; | ||
``` | ||
|
||
## Default Props | ||
|
||
```jsx | pure | ||
|
||
``` |
17 changes: 0 additions & 17 deletions
17
packages/gi-assets-basic/src/components/ContextMenu/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +0,0 @@ | ||
## ContextMenu 右键菜单 | ||
|
||
```jsx | ||
import TestSDK, { Mock } from '@antv/gi-assets-testing'; | ||
import * as React from 'react'; | ||
import Asset from './index.tsx'; | ||
|
||
const App = props => { | ||
return ( | ||
<div> | ||
<TestSDK asset={Asset} type="GICC_MENU" /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; | ||
``` | ||
21 changes: 17 additions & 4 deletions
21
packages/gi-assets-basic/src/components/Copyright/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,36 @@ | ||
## DownLoad 图片下载 | ||
--- | ||
title: 图片下载 | ||
order: 0 | ||
group: | ||
title: 基础资产 | ||
path: /basic | ||
nav: | ||
title: 资产包 | ||
path: /assets | ||
order: 1 | ||
--- | ||
|
||
## ClearCanvas 清除画布 | ||
|
||
```jsx | ||
import TestSDK, { Mock } from '@antv/gi-assets-testing'; | ||
import * as React from 'react'; | ||
import { GISDK_TEST } from '@antv/gi-sdk'; | ||
import * as Assets from '@antv/gi-assets-basic'; | ||
import Asset from './index.tsx'; | ||
|
||
const App = props => { | ||
const { registerMeta, info } = Asset; | ||
|
||
const App = () => { | ||
return ( | ||
<div> | ||
<TestSDK asset={Asset} /> | ||
<GISDK_TEST assets={Assets} activeAssets={[info]} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; | ||
``` | ||
|
||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
packages/gi-assets-basic/src/components/FilterPanel/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: 筛选面板 | ||
order: 0 | ||
group: | ||
title: 基础资产 | ||
path: /basic | ||
nav: | ||
title: 资产包 | ||
path: /assets | ||
order: 1 | ||
--- | ||
|
||
## FilterPanel 筛选面板 | ||
|
||
```jsx | ||
import * as React from 'react'; | ||
|
||
import { GISDK_TEST } from '@antv/gi-sdk'; | ||
|
||
import * as Assets from '@antv/gi-assets-basic'; | ||
import Asset from './index.tsx'; | ||
|
||
const { registerMeta, info } = Asset; | ||
|
||
const App = () => { | ||
return ( | ||
<div> | ||
<GISDK_TEST assets={Assets} activeAssets={[info]} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 22 additions & 3 deletions
25
packages/gi-assets-basic/src/components/FitCenter/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,36 @@ | ||
--- | ||
title: 居中 | ||
order: 0 | ||
group: | ||
title: 基础资产 | ||
path: /basic | ||
nav: | ||
title: 资产包 | ||
path: /assets | ||
order: 1 | ||
--- | ||
|
||
## FitCenter 居中 | ||
|
||
```jsx | ||
import TestSDK, { Mock } from '@antv/gi-assets-testing'; | ||
import * as React from 'react'; | ||
import { GISDK_TEST } from '@antv/gi-sdk'; | ||
import * as Assets from '@antv/gi-assets-basic'; | ||
import Asset from './index.tsx'; | ||
|
||
const App = props => { | ||
const { registerMeta, info } = Asset; | ||
|
||
const App = () => { | ||
return ( | ||
<div> | ||
<TestSDK asset={Asset} /> | ||
<GISDK_TEST assets={Assets} activeAssets={[info]} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; | ||
``` | ||
|
||
``` | ||
``` |
25 changes: 22 additions & 3 deletions
25
packages/gi-assets-basic/src/components/FitCenterView/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,36 @@ | ||
--- | ||
title: 自适应 | ||
order: 0 | ||
group: | ||
title: 基础资产 | ||
path: /basic | ||
nav: | ||
title: 资产包 | ||
path: /assets | ||
order: 1 | ||
--- | ||
|
||
## FitView 自适应 | ||
|
||
```jsx | ||
import TestSDK, { Mock } from '@antv/gi-assets-testing'; | ||
import * as React from 'react'; | ||
import { GISDK_TEST } from '@antv/gi-sdk'; | ||
import * as Assets from '@antv/gi-assets-basic'; | ||
import Asset from './index.tsx'; | ||
|
||
const App = props => { | ||
const { registerMeta, info } = Asset; | ||
|
||
const App = () => { | ||
return ( | ||
<div> | ||
<TestSDK asset={Asset} /> | ||
<GISDK_TEST assets={Assets} activeAssets={[info]} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; | ||
``` | ||
|
||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,36 @@ | ||
--- | ||
title: 自适应 | ||
order: 0 | ||
group: | ||
title: 基础资产 | ||
path: /basic | ||
nav: | ||
title: 资产包 | ||
path: /assets | ||
order: 1 | ||
--- | ||
|
||
## FitView 自适应 | ||
|
||
```jsx | ||
import TestSDK, { Mock } from '@antv/gi-assets-testing'; | ||
import * as React from 'react'; | ||
import { GISDK_TEST } from '@antv/gi-sdk'; | ||
import * as Assets from '@antv/gi-assets-basic'; | ||
import Asset from './index.tsx'; | ||
|
||
const App = props => { | ||
const { registerMeta, info } = Asset; | ||
|
||
const App = () => { | ||
return ( | ||
<div> | ||
<TestSDK asset={Asset} /> | ||
<GISDK_TEST assets={Assets} activeAssets={[info]} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; | ||
``` | ||
|
||
``` | ||
``` |
Oops, something went wrong.