-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from geostyler/fix-types
fix: typing
- Loading branch information
Showing
19 changed files
with
651 additions
and
465 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,17 @@ | ||
import {CIMRenderer, Group } from './CIMRenderer.ts'; | ||
import {CIMSymbolReference} from '../labeling'; | ||
|
||
export type CIMBreaksRenderer = CIMRenderer & { | ||
classBreakType: string; | ||
defaultSymbol?: CIMSymbolReference; | ||
field: string; | ||
groups?: Group[]; | ||
showInAscendingOrder: boolean; | ||
breaks: { | ||
type: string; | ||
fieldValues: string[]; | ||
label: string; | ||
symbol: CIMSymbolReference; | ||
upperBound: number; | ||
}[]; | ||
}; |
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,12 +1,38 @@ | ||
import { CIMObject } from '../CIMObject.ts'; | ||
import {CIMObject} from '../CIMObject.ts'; | ||
import {CIMSymbolReference} from '../labeling'; | ||
|
||
type Group = {}; | ||
type SymbolReference = {}; | ||
|
||
export type Class = { | ||
alternateSymbols: CIMSymbolReference[]; | ||
label: string; | ||
filter: string; | ||
symbol: CIMSymbolReference; | ||
minValue?: number; | ||
maxValue?: number; | ||
breakCount?: number; | ||
breakValues?: number[]; | ||
breakLabels?: string[]; | ||
breakSymbols?: CIMSymbolReference[]; | ||
values: { | ||
type: string; | ||
fieldValues: string[]; | ||
}[]; | ||
}; | ||
|
||
export type Group = { | ||
classes: Class[]; | ||
}; | ||
|
||
export type VisualVariable = CIMObject & { | ||
rotationTypeZ: string; | ||
visualVariableInfoZ: { | ||
expression: string; | ||
valueExpressionInfo: { | ||
expression: string; | ||
}; | ||
}; | ||
}; | ||
|
||
export type CIMRenderer = CIMObject & { | ||
type: string; | ||
fields?: string[]; | ||
groups?: Group[]; | ||
defaultSymbol?: SymbolReference; | ||
classBreakType?: string; | ||
visualVariables?: VisualVariable[]; | ||
}; |
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,7 @@ | ||
import {CIMRenderer} from './CIMRenderer.ts'; | ||
import {CIMSymbolReference} from '../labeling'; | ||
|
||
export type CIMSimpleRenderer = CIMRenderer & { | ||
label: string; | ||
symbol: CIMSymbolReference; | ||
}; |
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,4 +1,8 @@ | ||
import {CIMRenderer, Group} from './CIMRenderer.ts'; | ||
import {CIMSymbolReference} from '../labeling'; | ||
|
||
export type CIMUniqueValueRenderer = { | ||
|
||
export type CIMUniqueValueRenderer = CIMRenderer & { | ||
defaultSymbol?: CIMSymbolReference; | ||
fields?: string[]; | ||
groups?: Group[]; | ||
}; |
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,3 +1,41 @@ | ||
import { CIMObject } from '../CIMObject.ts'; | ||
import {CIMColor} from './CIMTextSymbol.ts'; | ||
import {CIMSymbolReference} from '../labeling'; | ||
|
||
export type CIMSymbol = CIMObject & {}; | ||
export type CIMColorType = CIMColor & CIMObject; | ||
|
||
export type CIMMarkerPlacement = CIMObject & { | ||
angleToLine: boolean; | ||
extremityPlacement: string; | ||
flipFirst: boolean; | ||
placementTemplate: number[]; | ||
positionArray: number[]; | ||
}; | ||
|
||
export type CIMEffect = CIMObject & { | ||
dashTemplate: number[]; | ||
offset: number; | ||
}; | ||
|
||
export type SymbolLayer = CIMObject & { | ||
capStyle: string; | ||
characterIndex: number; | ||
color: CIMColorType; | ||
effects: CIMEffect[]; | ||
enable: boolean; | ||
fontFamilyName: string; | ||
joinStyle: string; | ||
lineSymbol: CIMSymbol; | ||
markerPlacement: CIMMarkerPlacement; | ||
markerGraphics: CIMSymbolReference[]; | ||
rotateClockwise: boolean; | ||
rotation: number; | ||
separation: number; | ||
size: number; | ||
symbol: CIMSymbol; | ||
}; | ||
|
||
export type CIMSymbol = CIMObject & { | ||
enabled: boolean; | ||
symbolLayers?: SymbolLayer[]; | ||
}; |
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
Oops, something went wrong.