-
-
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.
- Loading branch information
1 parent
e3aaac8
commit 990e19a
Showing
8 changed files
with
145 additions
and
102 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
export * from './CIMLayerDocument'; | ||
export * from './labeling' | ||
export * from './layers'; | ||
export * from './renderers'; |
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,74 @@ | ||
import { CIMObject } from "../CIMObject"; | ||
import { CIMSymbolReference } from "./CIMSymbolReference"; | ||
|
||
type LabelExpressionEngine = {}; | ||
type FeaturesToLabel = {}; | ||
type CIMMaplexLabelPlacementProperties = {}; | ||
type CIMStandardLabelPlacementProperties = {}; | ||
|
||
/** | ||
* Represents a label class which describes how to generate a set of text labels from a group of features in a feature layer. | ||
* | ||
*/ | ||
export type CIMLabelClass = CIMObject & { | ||
/** | ||
* Gets or sets the human readable text title that describes the label expression. | ||
*/ | ||
expressionTitle?: null | string; | ||
/** | ||
* Gets or sets the label expression. | ||
*/ | ||
expression?: null | string; | ||
/** | ||
* Gets or sets the label expression engine (the language the expression is written in). | ||
*/ | ||
expressionEngine?: LabelExpressionEngine; | ||
/** | ||
* Gets or sets a parameter indicating which features to label. | ||
*/ | ||
featuresToLabel?: FeaturesToLabel; | ||
/** | ||
* Gets or sets the Maplex placement properties which are used when the map uses the Maplex label engine. | ||
*/ | ||
maplexLabelPlacementProperties?: null | CIMMaplexLabelPlacementProperties; | ||
/** | ||
* Gets or sets the maximum scale for labeling (set as the denominator of the scale's representative fraction). | ||
*/ | ||
maximumScale?: number; | ||
/** | ||
* Gets or sets the minimum scale for labeling (set as the denominator of the scale's representative fraction). | ||
*/ | ||
minimumScale?: number; | ||
/** | ||
* Gets or sets the name of the label class. | ||
*/ | ||
name?: null | string; | ||
/** | ||
* Gets or sets the priority of the label class. | ||
*/ | ||
priority?: number; | ||
/** | ||
* Gets or sets the standard placement properties which are used when the map uses the standard label engine. | ||
*/ | ||
standardLabelPlacementProperties?: null | CIMStandardLabelPlacementProperties; | ||
/** | ||
* Gets or sets the text symbol of the label class. | ||
*/ | ||
textSymbol?: null | CIMSymbolReference; | ||
/** | ||
* Gets or sets a value indicating whether or not to use coded value domain descriptions when labeling. | ||
*/ | ||
useCodedValue?: boolean; | ||
/** | ||
* Gets or sets the SQL where clause of which features to label with this label class. | ||
*/ | ||
whereClause?: null | string; | ||
/** | ||
* Gets or sets a value indicating whether this label class is visible. | ||
*/ | ||
visibility?: boolean; | ||
/** | ||
* Gets or sets the ID of the label class. This property is only used in the context of annotation. | ||
*/ | ||
id?: 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
type CIMPrimitiveOverride = {}; | ||
type CIMScaleDependentSizeVariation = {}; | ||
type CIMSymbol = {}; | ||
|
||
/** | ||
* Represents a symbol reference. | ||
* | ||
*/ | ||
export type CIMSymbolReference = { | ||
/** | ||
* Gets or sets the primitive overrides. Typically set by renderers at draw time. | ||
*/ | ||
primitiveOverrides?: CIMPrimitiveOverride[] | null; | ||
/** | ||
* Gets or sets the style path. Reserved for future use. | ||
*/ | ||
stylePath?: null | string; | ||
/** | ||
* Gets or sets the symbol. | ||
*/ | ||
symbol?: null | CIMSymbol; | ||
/** | ||
* Gets or sets the symbol name. | ||
*/ | ||
symbolName?: null | string; | ||
/** | ||
* Gets or sets the minimum scale range the symbol reference should be displayed at. | ||
*/ | ||
minScale?: number; | ||
/** | ||
* Gets or sets the maximum scale range the symbol reference should be displayed at. | ||
*/ | ||
maxScale?: number; | ||
/** | ||
* Gets or sets an array of scale dependent sizes. | ||
*/ | ||
scaleDependentSizeVariation?: CIMScaleDependentSizeVariation[] | null; | ||
/** | ||
* Gets or sets the minimum distance at which symbols are visible. Objects closer than this don't get rendered. | ||
*/ | ||
minDistance?: number; | ||
/** | ||
* Gets or sets the maximum distance at which symbols are visible. Objects beyond this point don't get rendered. | ||
*/ | ||
maxDistance?: 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './CIMLabelClass'; | ||
export * from './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
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