Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(geometry): add data process (#3383)
* feat(geometry): add data process * chore: start paint * chore: fix lint * chore: fix lint Co-authored-by: 逍为 <xiaowei.wzw@antgroup.com>
- Loading branch information
Showing
38 changed files
with
788 additions
and
54 deletions.
There are no files selected for viewing
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
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,8 @@ | ||
import { AttributeKey } from './types'; | ||
|
||
/** | ||
* 作为分组的视觉属性 | ||
*/ | ||
export const GROUP_ATTR_KEYS = ['color', 'shape', 'size'] as Partial<AttributeKey>[]; | ||
|
||
export const ORIGINAL_FIELD = Symbol('ORIGINAL_FIELD'); |
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,3 @@ | ||
export class Adjust { | ||
public process() {} | ||
} |
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 @@ | ||
export { Stack } from './stack'; |
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,3 @@ | ||
import { Adjust } from './adjust'; | ||
|
||
export class Stack extends Adjust {} |
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,3 @@ | ||
# Attribute | ||
|
||
> 将数据映射到视觉属性的实例方法。 |
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,18 @@ | ||
export type AttributeCfg = {}; | ||
|
||
export class Attribute { | ||
/** | ||
* 类型 | ||
*/ | ||
public type: string; | ||
|
||
/** | ||
* 属性中包含的 scale 类 | ||
*/ | ||
public scales: any[]; | ||
|
||
/** | ||
* 映射数据 | ||
*/ | ||
public mapping(...params: any) {} | ||
} |
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,5 @@ | ||
import { Attribute, AttributeCfg } from './attribute'; | ||
|
||
export type ColorAttributeCfg = AttributeCfg & {}; | ||
|
||
export class Color extends Attribute {} |
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,5 @@ | ||
import { Attribute, AttributeCfg } from './attribute'; | ||
|
||
export type IndentityAttributeCfg = AttributeCfg & {}; | ||
|
||
export class Indentity extends Attribute {} |
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,9 @@ | ||
/** | ||
* 视觉属性映射的实例 | ||
*/ | ||
|
||
export { Color, ColorAttributeCfg } from './color'; | ||
export { Indentity, IndentityAttributeCfg } from './indentity'; | ||
export { Position, PositionAttributeCfg } from './position'; | ||
export { Shape, ShapeAttributeCfg } from './shape'; | ||
export { Size, SizeAttributeCfg } from './size'; |
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,5 @@ | ||
import { Attribute, AttributeCfg } from './attribute'; | ||
|
||
export type PositionAttributeCfg = AttributeCfg & {}; | ||
|
||
export class Position extends Attribute {} |
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,5 @@ | ||
import { Attribute, AttributeCfg } from './attribute'; | ||
|
||
export type ShapeAttributeCfg = AttributeCfg & {}; | ||
|
||
export class Shape extends Attribute {} |
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,5 @@ | ||
import { Attribute, AttributeCfg } from './attribute'; | ||
|
||
export type SizeAttributeCfg = AttributeCfg & {}; | ||
|
||
export class Size extends Attribute {} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.