API / geotoolkit / seismic / widgets / tools / Comparator / Comparator
tools.Comparator.Comparator
Creates default implementation of the seismic comparison tool.
Example
// To initialize the comparator/layer tool
seismicWidget.getToolByName('comparator').setEnabled(true)Example
// By default the orientation is vertical. Following example shows how to change the orientation.
import {Orientation} from '@int/geotoolkit/util/Orientation';
seismicWidget.getToolByName('comparator').setOrientation(Orientation.Horizontal);↳
Comparator
Constructors
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
enabled | boolean | Enabled state |
layer | CompositeNode | Manipulator layer |
layer-clipping | boolean | Enable clipping, this does not consider the clipstyle, it is related to bounds-clipping |
layer-clipstyle | ClipStyle | Clipping style |
layer-clipstyle-evenodd | boolean | True if evenodd mode is on ('nonzero' mode otherwise) |
layer-clipstyle-geometry | GraphicsPath | Clipping geometry |
layer-clipstyle-geometry-bounds | Rect | Bounds |
layer-clipstyle-geometry-bounds-height | number | Height |
layer-clipstyle-geometry-bounds-readonly | boolean | Readonly |
layer-clipstyle-geometry-bounds-width | number | Width |
layer-clipstyle-geometry-bounds-x | number | Left |
layer-clipstyle-geometry-bounds-y | number | Top |
layer-clipstyle | GraphicsPath | Clipping style |
layer-cssclass | string | The css class name of this node |
layer-csscursor | string | CSS cursor associated with node |
layer-cssstyle | string | CSS style to be applied to inserted elements |
layer-id | string | number | Id of the node, its a unique identifier |
layer-infinity | boolean | Mode to render outside the model limits |
layer-localtransform | Transformation | Local transformation |
layer-localtransform-dx | number | X axis translation |
layer-localtransform-dy | number | Y axis translation |
layer-localtransform-xx | number | X scale |
layer-localtransform-xy | number | Xy skew |
layer-localtransform-yx | number | Yx skew |
layer-localtransform-yy | number | Y scale |
layer-margins | number | string | It has properties for specifying the margins for each side |
layer-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
layer-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
layer-opacityblendmode | BlendMode | Node opacity mode to blend it |
layer-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
layer-scalescrollstrategy-enabled | boolean | Enable flag |
layer-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
layer-tag | any | Custom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape |
layer-transform | string | Additional CSS transformation applied to node or 'none' |
layer-transform | Transformation | Additional CSS transformation applied to node or 'none' |
layer-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
layer-z-index | number | Define node z-index |
mouseradius | number | Device radius for mouse events |
name | string | Name of the tool used like cross-hair etc |
touchradius | number | Device radius for touch events |
widget | SeismicViewWidget | The target widget to add the comparator to |
widget-annotationssizes | AnnotationSize | JSON to hold (width or height) of the annotation |
widget-annotationssizes-east | string | number | Preferred width of east annotation size |
widget-annotationssizes-north | string | number | Preferred height of north annotation size |
widget-annotationssizes-south | string | number | Preferred height of south annotation size |
widget-annotationssizes-west | string | number | Preferred width of west annotation size |
widget-autoseismiclimits | boolean | Sets model limits of the center group based on the pipeline limits. If limits sets to false |
widget-axes | AxesOptions | Specify set of axes |
widget-axes-headers | AxesHeadersOptions | Seismic headers axes options |
widget-axes-headers-direction | Direction | |
widget-axes-headers-location | AnnotationLocation | |
widget-axes-headers-size | number | |
widget-axes-samples | AxesSamplesOptions | Specify properties of vertical axis |
widget-axes-samples-cssclass | string | Defines cssclass of samples axis |
widget-axes-samples-instance | Axis | Defines instance of sample axis |
widget-axes-samples-instance-autolabelrotation | boolean | Automatic label rotation |
widget-axes-samples-instance-autolabelrotationangle | number | |
widget-axes-samples-instance-baselinestyle | string | Base line style |
widget-axes-samples-instance-baselinestyle | LineStyle | Base line style |
widget-axes-samples-instance-baselinestyle-color | string | Color in CSS form |
widget-axes-samples-instance-baselinestyle-fill | string | Optional fill style to be used to fill lines generated with this style |
widget-axes-samples-instance-baselinestyle-fill | FillStyle | Optional fill style to be used to fill lines generated with this style |
widget-axes-samples-instance-baselinestyle-fill-color | string | Color in CSS form |
widget-axes-samples-instance-baselinestyle-fill-evenoddmode | boolean | Even-odd fill mode |
widget-axes-samples-instance-baselinestyle-fill-fillpattern | Pattern | Pattern |
widget-axes-samples-instance-baselinestyle-fill-fillpattern-containername | string | An optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself |
widget-axes-samples-instance-baselinestyle-fill-fillpattern-patternname | string | Name of this pattern for indexing |
widget-axes-samples-instance-baselinestyle-fill-fillpattern-scalable | boolean | Flag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported) |
widget-axes-samples-instance-baselinestyle-fill-foreground | string | Foreground color |
widget-axes-samples-instance-baselinestyle-fill-pattern | Pattern | Pattern |
widget-axes-samples-instance-baselinestyle-linecap | CapStyle | The line cap style |
widget-axes-samples-instance-baselinestyle-linedashoffset | number | Line dash offset of dashed line |
widget-axes-samples-instance-baselinestyle-linejoin | JoinStyle | The line join style |
widget-axes-samples-instance-baselinestyle-pixelsnapmode | boolean | Pixel Snap Mode, default( |
widget-axes-samples-instance-baselinestyle-scalable | boolean | True if width should depend on transformation |
widget-axes-samples-instance-baselinestyle-unit | string | Optional unit for the width |
widget-axes-samples-instance-baselinestyle-width | number | string | The line thickness |
widget-axes-samples-instance-bounds | Rect | Axis bounds |
widget-axes-samples-instance-clipstyle | ClipStyle | Clipping style |
widget-axes-samples-instance-clipstyle | GraphicsPath | Clipping style |
widget-axes-samples-instance-cssclass | string | The css class name of this node |
widget-axes-samples-instance-csscursor | string | CSS cursor associated with node |
widget-axes-samples-instance-cssstyle | string | CSS style to be applied to inserted elements |
widget-axes-samples-instance-dimension | AxisMappingDimension | Axis dimension to setup axis limits |
widget-axes-samples-instance-dimension-desiredmodelstep | number | Desired model step |
widget-axes-samples-instance-dimension-logarithmic | boolean | True for logarithmic axis |
widget-axes-samples-instance-dimension-max | number | Maximum value |
widget-axes-samples-instance-dimension-min | number | Minimum value |
widget-axes-samples-instance-dimension-minspan | number | Desired minimum distance between ticks in pixels |
widget-axes-samples-instance-dimension-name | string | Name of the dimension |
widget-axes-samples-instance-dimension-neatlimits | boolean | Enable or disable neat limits |
widget-axes-samples-instance-dimension-orientation | Orientation | Axis orientation |
widget-axes-samples-instance-dimension-origin | number | |
widget-axes-samples-instance-dimension-preciselimits | boolean | Enable keeping the precise limits and calculate only step |
widget-axes-samples-instance-dimension-spacing | number | Desired model spacing |
widget-axes-samples-instance-fillstyle | string | Style applied on fill |
widget-axes-samples-instance-fillstyle | FillStyle | Style applied on fill |
widget-axes-samples-instance-hideoverlappedtext | boolean | Hide overlapped text flag |
widget-axes-samples-instance-id | string | number | Id of the node, its a unique identifier |
widget-axes-samples-instance-infinity | boolean | Infinity mode |
widget-axes-samples-instance-labelmanualsettings | boolean | Enable / disable manual settings for labels like anchor |
widget-axes-samples-instance-labeloffset | number | Offset the label offset |
widget-axes-samples-instance-labelpadding | number | Label padding size in pixels |
widget-axes-samples-instance-labelposition | LabelPosition | Label position |
widget-axes-samples-instance-layoutstyle | LayoutStyle | Desired layout style |
widget-axes-samples-instance-layoutstyle-constraint | SizeConstraint | Layout constrains |
widget-axes-samples-instance-layoutstyle-flexgrow | number | Number specifying how much the item will grow relative to the rest of the items inside the same container |
widget-axes-samples-instance-layoutstyle-flexshrink | number | Number specifying how much the item will shrink relative to the rest of the items inside the same container |
widget-axes-samples-instance-layoutstyle-float | string | Float position |
widget-axes-samples-instance-layoutstyle-position | string | Layout position |
widget-axes-samples-instance-layoutstyle-size | number | string | Layout size |
widget-axes-samples-instance-linestyle | string | Style applied on outline |
widget-axes-samples-instance-linestyle | LineStyle | Style applied on outline |
widget-axes-samples-instance-localtransform | Transformation | Local transformation |
widget-axes-samples-instance-margins | number | string | It has properties for specifying the margins for each side |
widget-axes-samples-instance-maximumlabelsize | number | Maximum label size (in device), text will be wrapped, if it is bigger than maximum label size |
widget-axes-samples-instance-modellimits | Rect | Rectangle where to generate ticks |
widget-axes-samples-instance-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
widget-axes-samples-instance-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
widget-axes-samples-instance-opacityblendmode | BlendMode | Node opacity mode to blend it |
widget-axes-samples-instance-orientation | Orientation | Axis orientation |
widget-axes-samples-instance-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
widget-axes-samples-instance-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
widget-axes-samples-instance-tag | any | Custom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape |
widget-axes-samples-instance-textstyle | string | Labels textstyle |
widget-axes-samples-instance-textstyle | TextStyle | Labels textstyle |
widget-axes-samples-instance-textstyle-alignment | AlignmentStyle | Alignment |
widget-axes-samples-instance-textstyle-autosize | boolean | Auto font size on high definition display |
widget-axes-samples-instance-textstyle-background | string | Background style |
widget-axes-samples-instance-textstyle-background | FillStyle | Background style |
widget-axes-samples-instance-textstyle-baseline | BaseLineStyle | Base line |
widget-axes-samples-instance-textstyle-color | string | Color in CSS form |
widget-axes-samples-instance-textstyle-fill | FillStyle | Text fill style |
widget-axes-samples-instance-textstyle-font | string | Font see |
widget-axes-samples-instance-textstyle-fonturl | string | The place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword |
widget-axes-samples-instance-textstyle-lineheight | string | number | Line height |
widget-axes-samples-instance-textstyle-multiline | boolean | Allow multi-line text |
widget-axes-samples-instance-textstyle-outline | string | Outline style |
widget-axes-samples-instance-textstyle-outline | LineStyle | Outline style |
widget-axes-samples-instance-textstyle-overflowwrap | OverflowWrapStyle | Overflow wrap |
widget-axes-samples-instance-textstyle-strikethrough | string | Strikethrough style |
widget-axes-samples-instance-textstyle-strikethrough | LineStyle | Strikethrough style |
widget-axes-samples-instance-textstyle-textoverflow | TextOverflowStyle | Text overflow |
widget-axes-samples-instance-textstyle-underline | string | Underline style |
widget-axes-samples-instance-textstyle-underline | LineStyle | Underline style |
widget-axes-samples-instance-textstyle-underlineoffset | string | number | Underline offset distance |
widget-axes-samples-instance-textstyle-whitespace | WhiteSpaceStyle | White space |
widget-axes-samples-instance-textstyle-wordbreak | WordBreakStyle | Word break |
widget-axes-samples-instance-tickgenerator | TickGenerator | TickGenerator to use in axis |
widget-axes-samples-instance-tickgenerator-labelstyles | TextStyle | An object containing label style for specified grades |
widget-axes-samples-instance-tickgenerator-tag | any | Tag user can specify info associated with current object |
widget-axes-samples-instance-tickgenerator-tickstyles | LineStyle | An object containing tick styles for specified grades |
widget-axes-samples-instance-tickposition | TickPosition | Tick position |
widget-axes-samples-instance-title | Title | Axis title |
widget-axes-samples-instance-title-alignment | AnchorType | Alignment |
widget-axes-samples-instance-title-margin | number | string | Margin style |
widget-axes-samples-instance-title-offset | Point | Offset |
widget-axes-samples-instance-title-offset-x | number | X coordinate |
widget-axes-samples-instance-title-offset-y | number | Y coordinate |
widget-axes-samples-instance-title-offset | Dimension | Offset |
widget-axes-samples-instance-title-offset-height | number | Height of dimension |
widget-axes-samples-instance-title-offset-width | number | Width of dimension or properties |
widget-axes-samples-instance-title-showellipsis | boolean | Enables/disables ellipsis in case if text is too long |
widget-axes-samples-instance-title-text | string | Axis title text |
widget-axes-samples-instance-title-textstyle | string | Text style |
widget-axes-samples-instance-title-textstyle | TextStyle | Text style |
widget-axes-samples-instance-title-visible | boolean | Visibility |
widget-axes-samples-instance-transform | string | Additional CSS transformation applied to node or 'none' |
widget-axes-samples-instance-transform | Transformation | Additional CSS transformation applied to node or 'none' |
widget-axes-samples-instance-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
widget-axes-samples-instance-visiblebaseline | boolean | Visibility of baseline |
widget-axes-samples-instance-z-index | number | Define node z-index |
widget-axes-samples-location | AnnotationLocation | Defines location of sample axis |
widget-axes-samples-size | number | Defines size in pixels of samples axis |
widget-axes-samples-ticks | Options | Objects which defines ticks options of the axis |
widget-axes-samples-ticks-labelstyles | TextStyle | An object containing label style for specified grades |
widget-axes-samples-ticks-tag | any | Tag user can specify info associated with current object |
widget-axes-samples-ticks-tickstyles | LineStyle | An object containing tick styles for specified grades |
widget-axes-samples-ticks | Options | Objects which defines ticks options of the axis |
widget-axes-samples-ticks-adaptivetype | AdaptiveType | Type of adaptive algorithm |
widget-axes-samples-ticks-hidelabelsonspantoosmall | boolean | Hide labels flag |
widget-axes-samples-ticks-minlabelspan | number | Minimum distance between labels |
widget-axes-samples-ticks-minorticksamount | number | Count of minor ticks |
widget-axes-samples-ticks-minspan | number | Minimum distance between ticks |
widget-axes-samples-ticks-minspangrade | string | Tick grade to be used for minimum distance between ticks |
widget-axes-samples-ticks-modelorigin | number | Origin in model space for initial tick in the sequence |
widget-axes-samples-ticks-precision | AdaptivePrecision | Precision for legacy algorithm |
widget-axes-samples-ticks-spacing | number | Spacing see |
widget-axes-samples-title | Title | Defines title options of sample axis |
widget-axes-samples-visible | boolean | Defines visibility of sample axis |
widget-freezeupdate | boolean | Freeze updating widget until new seismic data is loaded and rendered for visible area |
widget-layouttype | string | Type of layout 'default' or 'inside' |
widget-orientation | Orientation | Seismic trace orientation |
widget-pipeline | SeismicPipeline | Seismic pipeline |
widget-pipeline-clippingmode | ClippingMode | Clipping mode |
widget-pipeline-colors | ColorMapOptions | Colors |
widget-pipeline-colors-alpha | number | Alpha value |
widget-pipeline-colors-colormap | string | Color map, predefined color map name, color map options or color map instance |
widget-pipeline-colors-colormap | ColorMap | Color map, predefined color map name, color map options or color map instance |
widget-pipeline-colors-colormap-max | number | |
widget-pipeline-colors-colormap-min | number | |
widget-pipeline-colors-colormap-name | string | Color map name |
widget-pipeline-colors-colormap-negativefillstyle | string | Positive fill style |
widget-pipeline-colors-colormap-negativefillstyle | FillStyle | Positive fill style |
widget-pipeline-colors-colormap-positivefillstyle | string | Positive fill style |
widget-pipeline-colors-colormap-positivefillstyle | FillStyle | Positive fill style |
widget-pipeline-colors-colormap-scale | KnownScales | |
widget-pipeline-colors-colormap-size | number | Color map size |
widget-pipeline-colors-colormap-tracelinestyle | string | Trace line style |
widget-pipeline-colors-colormap-tracelinestyle | LineStyle | Trace line style |
widget-pipeline-colors-opacity | number | Opacity value |
widget-pipeline-colors-reversed | boolean | Reversed color map |
widget-pipeline-maximumtracesperpixel | number | Define maximum traces per pixel, which can be displayed in the image |
widget-pipeline-name | string | Pipeline name |
widget-pipeline-normalization | NormalizationOptions | Normalization options |
widget-pipeline-normalization-bias | number | The bias value defines the start of the VA fill Bias can be null (default - means that fill starts from trace location), in swing model space from -1 to 1, or in normalization limits model space, see biastype option |
widget-pipeline-normalization-biastype | BiasType | Bias type, default is BiasType.Relative |
widget-pipeline-normalization-limits | Range | Normalization limits (min,max), which is used for NormalizationType.Limits only |
widget-pipeline-normalization-limits-high | number | Upper range boundary |
widget-pipeline-normalization-limits-low | number | Lower range boundary |
widget-pipeline-normalization-limits-max | number | |
widget-pipeline-normalization-limits-min | number | |
widget-pipeline-normalization-scale | number | Scale factor |
widget-pipeline-normalization-swing | number | The location in trace spacing units where the normalized value of data samples are mapped. This location can be modified by specifying a normalization scale factor |
widget-pipeline-normalization-type | NormalizationType | Enum of normalization types |
widget-pipeline-plot | PlotOptions | Plot options |
widget-pipeline-plot-clippingfactor | number | Clipping factor for traces |
widget-pipeline-plot-decimationspacing | number | Decimation spacing is the minimum spacing between seismic traces on a seismic image. It is a measured in device units (pixels). Decimation spacing is an important factor when interpreting seismic images, as it affects the resolution of the image. The greater the decimation spacing, the lower the resolution of the image. A higher resolution image will allow for more detail in the interpretation, while a lower resolution image will be less detailed |
widget-pipeline-plot-densityclippingfactor | number | Clipping factor for density |
widget-pipeline-plot-densitydecimation | boolean | Decimation for traces in density mode |
widget-pipeline-plot-sampledecimation | DecimationType | Define samples decimation type |
widget-pipeline-plot-type | PlotTypeOptions | Plot type |
widget-pipeline-plot-type-interpolateddensity | boolean | Interpolated density |
widget-pipeline-plot-type-negativecolorfill | boolean | Negative color fill |
widget-pipeline-plot-type-negativefill | boolean | Negative fill |
widget-pipeline-plot-type-positivecolorfill | boolean | Positive color fill |
widget-pipeline-plot-type-positivefill | boolean | Positive fill |
widget-pipeline-plot-type-reversed | boolean | Reversed amplitude direction |
widget-pipeline-plot-type-simpledensity | boolean | Simple density |
widget-pipeline-plot-type-wiggle | boolean | Wiggle |
widget-pipeline-plot-wigglesantialiasing | boolean | Wiggles antialiasing flag |
widget-pipeline-rasterizationlimitstype | RasterizationLimitsType | Rasterization limits type |
widget-pipeline-renderingside | RenderingSide | Rendering side |
widget-pipeline-statistics | Statistics | Statistics information |
widget-pipeline-statistics-average | number | Average |
widget-pipeline-statistics-max | number | Maximum |
widget-pipeline-statistics-min | number | Minimum |
widget-pipeline-statistics-rms | number | Rms |
widget-pipeline-traceoffset | number | Original trace offset |
widget-pipeline-version | string | Version |
widget-scale | ScaleOptions | Scale options |
widget-scale-deviceunit | string | Physical device unit |
widget-scale-samplescale | number | In sample unit per device unit if depth data (e.g feet per inch), or in device unit per sample unit (e.g inches per second) |
widget-scale-sampleunit | string | Sample unit, sample unit from pipeline will be used if not specified |
widget-scale-tracescale | number | In traces per device unit (e.g traces per inch) |
widget-scroll | ScrollOptions | Specify scroll bar properties |
widget-scroll-horizontal | HVOptions | Specify horizontal scroll bar properties |
widget-scroll-horizontal-cssclass | string | Specify scroll bar cssclass name |
widget-scroll-horizontal-options | Options | |
widget-scroll-horizontal-options-cssclass | string | The css class name of this node |
widget-scroll-horizontal-options-id | string | number | Id of the node, its a unique identifier |
widget-scroll-horizontal-options-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
widget-scroll-horizontal-options-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
widget-scroll-horizontal-options-tag | any | Custom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape |
widget-scroll-horizontal-options-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
widget-scroll-horizontal-options-z-index | number | Define node z-index |
widget-scroll-horizontal-options | Options | |
widget-scroll-horizontal-options-clipstyle | ClipStyle | Clipping style |
widget-scroll-horizontal-options-clipstyle | GraphicsPath | Clipping style |
widget-scroll-horizontal-options-csscursor | string | CSS cursor associated with node |
widget-scroll-horizontal-options-cssstyle | string | CSS style to be applied to inserted elements |
widget-scroll-horizontal-options-localtransform | Transformation | Local transformation |
widget-scroll-horizontal-options-margins | number | string | It has properties for specifying the margins for each side |
widget-scroll-horizontal-options-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
widget-scroll-horizontal-options-opacityblendmode | BlendMode | Node opacity mode to blend it |
widget-scroll-horizontal-options-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
widget-scroll-horizontal-options-transform | string | Additional CSS transformation applied to node or 'none' |
widget-scroll-horizontal-options-transform | Transformation | Additional CSS transformation applied to node or 'none' |
widget-scroll-horizontal-options | Options | |
widget-scroll-horizontal-options-clipping | boolean | Enable clipping, this does not consider the clipstyle, it is related to bounds-clipping |
widget-scroll-horizontal-options-infinity | boolean | Mode to render outside the model limits |
widget-scroll-horizontal-options | Options | |
widget-scroll-horizontal-options-automodellimitsmode | boolean | Auto model limits mode |
widget-scroll-horizontal-options-bounds | Rect | Define position of the group in the parent |
widget-scroll-horizontal-options-contentorientation | Orientation | Content orientation |
widget-scroll-horizontal-options-fillstyle | string | Fill style |
widget-scroll-horizontal-options-fillstyle | FillStyle | Fill style |
widget-scroll-horizontal-options-horizontalflip | boolean | Horizontal axis goes from right to left |
widget-scroll-horizontal-options-layoutstyle | LayoutStyle | Layout style to be used for parent layout |
widget-scroll-horizontal-options-linestyle | string | Line style |
widget-scroll-horizontal-options-linestyle | LineStyle | Line style |
widget-scroll-horizontal-options-modellimits | Rect | Define inner model coordinates of the group |
widget-scroll-horizontal-options-padding | number | string | It has properties for specifying the padding for each side |
widget-scroll-horizontal-options-pickingchildren | boolean | Enable picking children |
widget-scroll-horizontal-options-verticalflip | boolean | Vertical axis goes from bottom to top |
widget-scroll-horizontal-options-viewcache | boolean | View cache to cache child nodes |
widget-scroll-horizontal-options | Options | |
widget-scroll-horizontal-options-backgroundfillstyle | string | Background fill style |
widget-scroll-horizontal-options-backgroundfillstyle | FillStyle | Background fill style |
widget-scroll-horizontal-options-floating | boolean | Flag to set floating mode |
widget-scroll-horizontal-options-size | number | Desired size |
widget-scroll-horizontal-options-transparency | number | Alpha |
widget-scroll-horizontal-options | Options | |
widget-scroll-horizontal-options-arrowlinestyle | string | Arrow line style |
widget-scroll-horizontal-options-arrowlinestyle | LineStyle | Arrow line style |
widget-scroll-horizontal-options-borderlinestyle | string | Border line style |
widget-scroll-horizontal-options-borderlinestyle | LineStyle | Border line style |
widget-scroll-horizontal-options-caretfillstyle | string | Caret fill style |
widget-scroll-horizontal-options-caretfillstyle | FillStyle | Caret fill style |
widget-scroll-horizontal-options-caretlinestyle | string | Caret line style |
widget-scroll-horizontal-options-caretlinestyle | LineStyle | Caret line style |
widget-scroll-horizontal-options-changecursor | boolean | Change cursor on move or resize, true by default |
widget-scroll-horizontal-options-fillstyle | string | Fill style |
widget-scroll-horizontal-options-fillstyle | FillStyle | Fill style |
widget-scroll-horizontal-options-isvertical | boolean | |
widget-scroll-horizontal-options-linestyle | string | Line style |
widget-scroll-horizontal-options-linestyle | LineStyle | Line style |
widget-scroll-horizontal-options-minimumcarretsize | number | Minimum size of the carriage |
widget-scroll-horizontal-options-modellimits | Rect | Model limits |
widget-scroll-horizontal-options-resizable | boolean | True for resizable |
widget-scroll-horizontal-options-rounded | boolean | Rounded borders |
widget-scroll-horizontal-options-visiblelimits | Rect | Visible model limits |
widget-scroll-horizontal-type | string | Class name of scroll bar |
widget-scroll-horizontal-visible | boolean | Specify scroll bar visibility |
widget-scroll-vertical | HVOptions | Specify vertical scroll bar properties |
widget-title | Title | Defines title options of widget |
widget-title-alignment | AnchorType | Alignment |
widget-title-cssclass | string | CSS style of the title |
widget-title-location | AnnotationLocation | Defines location |
widget-title-size | number | Size of the title in pixels |
widget-title-text | string | Title text |
widget-title-textstyle | string | Text style |
widget-title-textstyle | TextStyle | Text style |
widget-title-visible | boolean | Visibility |
widget-tools | ToolsOptions | Tools options |
widget-tools-colorbar | OptionsBase | Floating olor bar tool options |
widget-tools-colorbar-colorprovider | ColorProvider | |
widget-tools-colorbar-colorprovider-max | number | |
widget-tools-colorbar-colorprovider-min | number | |
widget-tools-colorbar-colorprovider-scale | KnownScales | |
widget-tools-colorbar-tickgenerator | TickGenerator | |
widget-tools-colorbar-visible | boolean | |
widget-tools-comparator | OptionsType | Comparator options |
widget-tools-comparator-fillstyle | string | Splitter fill style |
widget-tools-comparator-fillstyle | FillStyle | Splitter fill style |
widget-tools-comparator-linestyle | string | Splitter border line style |
widget-tools-comparator-linestyle | LineStyle | Splitter border line style |
widget-tools-comparator-width | number | Splitter width |
widget-tools-crosshair | Options | Crosshair cursor options |
widget-tools-crosshair-enabled | boolean | Enabled state |
widget-tools-crosshair-layer | CompositeNode | Manipulator layer |
widget-tools-crosshair-mouseradius | number | Device radius for mouse events |
widget-tools-crosshair-name | string | Name of the tool used like cross-hair etc |
widget-tools-crosshair-touchradius | number | Device radius for touch events |
widget-tools-crosshair | Options | Crosshair cursor options |
widget-tools-crosshair-east | LabelSettings | JSON for east label. See setLabelSettings for more details |
widget-tools-crosshair-east-alignment | AnchorType | Alignment of the text |
widget-tools-crosshair-east-cssclass | string | The css class name of this node |
widget-tools-crosshair-east-displaymode | LabelDisplayMode | Label display mode, default is LabelDisplayMode.Shape |
widget-tools-crosshair-east-fillstyle | string | Fill style of the text |
widget-tools-crosshair-east-fillstyle | FillStyle | Fill style of the text |
widget-tools-crosshair-east-linestyle | string | Line style of the text border |
widget-tools-crosshair-east-linestyle | LineStyle | Line style of the text border |
widget-tools-crosshair-east-offset | number | string | Label offset between the text and cross-hair cursor, use padding in case of undefined |
widget-tools-crosshair-east-padding | number | |
widget-tools-crosshair-east-paddingstyle | number | string | Padding style between the text and the border |
widget-tools-crosshair-east-radius | number | Radius of the text shape border |
widget-tools-crosshair-east-textstyle | string | Text style of the text |
widget-tools-crosshair-east-textstyle | TextStyle | Text style of the text |
widget-tools-crosshair-east-tooltip | Properties | Tooltip properties, this options applyes only in case if displaymode:LabelDisplayMode.DivElement |
widget-tools-crosshair-east-tooltip-alignment | AnchorType | Tooltip alignment according to the point set by offsets |
widget-tools-crosshair-east-tooltip-autoflip | boolean | True to automatically flip tooltip alignment if it doesn't fit the window |
widget-tools-crosshair-east-tooltip-cssclasses | string | CSS classes' names to be applied for tooltip 'cg-tooltip' by default |
widget-tools-crosshair-east-tooltip-delay | number | |
widget-tools-crosshair-east-tooltip-hidedelay | number | Auto hide in millisecond, 0 means false and autohide is disabled |
widget-tools-crosshair-east-tooltip-offsetx | number | Offset of tooltip from current position by x in pixels |
widget-tools-crosshair-east-tooltip-offsety | number | Offset of tooltip from current position by y in pixels |
widget-tools-crosshair-east-tooltip-orientation | Orientation | Tooltip orientation |
widget-tools-crosshair-east-tooltip-showdelay | number | Delay between displaying tooltip, 0 means false and tooltip shows immediately |
widget-tools-crosshair-east-tooltip-size | Range | Client size range |
widget-tools-crosshair-east-visible | boolean | Visibility of the text |
widget-tools-crosshair-east-z-index | number | Define node z-index |
widget-tools-crosshair-fillstyle | string | Fillstyle of the cross-hair (used only with radius) |
widget-tools-crosshair-fillstyle | FillStyle | Fillstyle of the cross-hair (used only with radius) |
widget-tools-crosshair-horizontal | string | Linestyle for horizontal line |
widget-tools-crosshair-horizontal | LineStyle | Linestyle for horizontal line |
widget-tools-crosshair-keeporientation | boolean | Preserve annotation's orientation of labels for different |
widget-tools-crosshair-labels | boolean | If 'none' of false - do not create labels |
widget-tools-crosshair-linestyle | string |
|
widget-tools-crosshair-linestyle | LineStyle |
|
widget-tools-crosshair-north | LabelSettings | JSON for north label. See setLabelSettings for more details |
widget-tools-crosshair-outlinestyle | string | OutLinestyle for both lines |
widget-tools-crosshair-outlinestyle | LineStyle | OutLinestyle for both lines |
widget-tools-crosshair-radius | number | Radius of the cross-hair center target |
widget-tools-crosshair-south | LabelSettings | JSON for south label. See setLabelSettings for more details |
widget-tools-crosshair-symbol | SymbolShape | Symbol of the cross-hair |
widget-tools-crosshair-symbol-alignment | AnchorType | Alignment according to the anchor point |
widget-tools-crosshair-symbol-alignment | AnchorType | Anchor type of symbol |
widget-tools-crosshair-symbol-ax | number | Anchor x position |
widget-tools-crosshair-symbol-ay | number | Anchor y position |
widget-tools-crosshair-symbol-cache | boolean | Set it to true if you want to cache complex geometry to raster |
widget-tools-crosshair-symbol-clipstyle | ClipStyle | Clipping style |
widget-tools-crosshair-symbol-clipstyle | GraphicsPath | Clipping style |
widget-tools-crosshair-symbol-cssclass | string | The css class name of this node |
widget-tools-crosshair-symbol-csscursor | string | CSS cursor associated with node |
widget-tools-crosshair-symbol-cssstyle | string | CSS style to be applied to inserted elements |
widget-tools-crosshair-symbol-fillstyle | string | Style applied on fill |
widget-tools-crosshair-symbol-fillstyle | FillStyle | Style applied on fill |
widget-tools-crosshair-symbol-height | number | Shape height |
widget-tools-crosshair-symbol-id | string | number | Id of the node, its a unique identifier |
widget-tools-crosshair-symbol-ispointingup | boolean | Defines whether the shape is always pointing up |
widget-tools-crosshair-symbol-layoutstyle | LayoutStyle | Layout style to specify how to lay out shape |
widget-tools-crosshair-symbol-linestyle | string | Style applied on outline |
widget-tools-crosshair-symbol-linestyle | LineStyle | Style applied on outline |
widget-tools-crosshair-symbol-localtransform | Transformation | Local transformation |
widget-tools-crosshair-symbol-margins | number | string | It has properties for specifying the margins for each side |
widget-tools-crosshair-symbol-maxdimension | Dimension | Maximum size for rendering |
widget-tools-crosshair-symbol-mindimension | Dimension | Minimum size for rendering |
widget-tools-crosshair-symbol-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
widget-tools-crosshair-symbol-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
widget-tools-crosshair-symbol-opacityblendmode | BlendMode | Node opacity mode to blend it |
widget-tools-crosshair-symbol-painter | string | A function with has parameters: symbol, box, context |
widget-tools-crosshair-symbol-painterproperties | any | Symbol's painter's properties |
widget-tools-crosshair-symbol-preserveaspectratio | boolean | Preserve aspect ratio of the anchored shape |
widget-tools-crosshair-symbol-preservereadingorientation | boolean | Preserve reading orientation for local transform |
widget-tools-crosshair-symbol-preserverightangle | boolean | Preserve right angle for local transformation |
widget-tools-crosshair-symbol-rotationangle | number | Rotation angle at anchor |
widget-tools-crosshair-symbol-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
widget-tools-crosshair-symbol-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
widget-tools-crosshair-symbol-sizeisindevicespace | boolean | Is coordinate in device space |
widget-tools-crosshair-symbol-tag | any | Custom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape |
widget-tools-crosshair-symbol-transform | string | Additional CSS transformation applied to node or 'none' |
widget-tools-crosshair-symbol-transform | Transformation | Additional CSS transformation applied to node or 'none' |
widget-tools-crosshair-symbol-useminmaxdimensions | boolean | Use the min max dimensions to limit visual size |
widget-tools-crosshair-symbol-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
widget-tools-crosshair-symbol-width | number | Shape width |
widget-tools-crosshair-symbol-z-index | number | Define node z-index |
widget-tools-crosshair-textstyle | string |
|
widget-tools-crosshair-textstyle | TextStyle |
|
widget-tools-crosshair-vertical | string | Linestyle for vertical line |
widget-tools-crosshair-vertical | LineStyle | Linestyle for vertical line |
widget-tools-crosshair-west | LabelSettings | JSON for west label. See setLabelSettings for more details |
widget-tools-horizonpicker | Options | Horizon picker options |
widget-tools-horizonpicker | Options | Horizon picker options |
widget-tools-horizonpicker-erasershape | AnchoredShape | Eraser shape (default is red square) |
widget-tools-horizonpicker-erasershape-alignment | AnchorType | Alignment according to the anchor point |
widget-tools-horizonpicker-erasershape-ax | number | Anchor x position |
widget-tools-horizonpicker-erasershape-ay | number | Anchor y position |
widget-tools-horizonpicker-erasershape-clipstyle | ClipStyle | Clipping style |
widget-tools-horizonpicker-erasershape-clipstyle | GraphicsPath | Clipping style |
widget-tools-horizonpicker-erasershape-cssclass | string | The css class name of this node |
widget-tools-horizonpicker-erasershape-csscursor | string | CSS cursor associated with node |
widget-tools-horizonpicker-erasershape-cssstyle | string | CSS style to be applied to inserted elements |
widget-tools-horizonpicker-erasershape-fillstyle | string | Style applied on fill |
widget-tools-horizonpicker-erasershape-fillstyle | FillStyle | Style applied on fill |
widget-tools-horizonpicker-erasershape-height | number | Shape height |
widget-tools-horizonpicker-erasershape-id | string | number | Id of the node, its a unique identifier |
widget-tools-horizonpicker-erasershape-ispointingup | boolean | Defines whether the shape is always pointing up |
widget-tools-horizonpicker-erasershape-layoutstyle | LayoutStyle | Layout style to specify how to lay out shape |
widget-tools-horizonpicker-erasershape-linestyle | string | Style applied on outline |
widget-tools-horizonpicker-erasershape-linestyle | LineStyle | Style applied on outline |
widget-tools-horizonpicker-erasershape-localtransform | Transformation | Local transformation |
widget-tools-horizonpicker-erasershape-margins | number | string | It has properties for specifying the margins for each side |
widget-tools-horizonpicker-erasershape-maxdimension | Dimension | Maximum size for rendering |
widget-tools-horizonpicker-erasershape-mindimension | Dimension | Minimum size for rendering |
widget-tools-horizonpicker-erasershape-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
widget-tools-horizonpicker-erasershape-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
widget-tools-horizonpicker-erasershape-opacityblendmode | BlendMode | Node opacity mode to blend it |
widget-tools-horizonpicker-erasershape-preserveaspectratio | boolean | Preserve aspect ratio of the anchored shape |
widget-tools-horizonpicker-erasershape-preservereadingorientation | boolean | Preserve reading orientation for local transform |
widget-tools-horizonpicker-erasershape-preserverightangle | boolean | Preserve right angle for local transformation |
widget-tools-horizonpicker-erasershape-rotationangle | number | Rotation angle at anchor |
widget-tools-horizonpicker-erasershape-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
widget-tools-horizonpicker-erasershape-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
widget-tools-horizonpicker-erasershape-sizeisindevicespace | boolean | Is coordinate in device space |
widget-tools-horizonpicker-erasershape-tag | any | Custom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape |
widget-tools-horizonpicker-erasershape-transform | string | Additional CSS transformation applied to node or 'none' |
widget-tools-horizonpicker-erasershape-transform | Transformation | Additional CSS transformation applied to node or 'none' |
widget-tools-horizonpicker-erasershape-useminmaxdimensions | boolean | Use the min max dimensions to limit visual size |
widget-tools-horizonpicker-erasershape-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
widget-tools-horizonpicker-erasershape-width | number | Shape width |
widget-tools-horizonpicker-erasershape-z-index | number | Define node z-index |
widget-tools-horizonpicker-erasersize | number | Eraser size |
widget-tools-horizonpicker-extendedfocus | boolean | True for extended focus |
widget-tools-horizonpicker-focussymbol | SymbolShape | Symbol for point focus (default is red square) |
widget-tools-horizonpicker-focusthreshold | number | Focus threshold (in devices) |
widget-tools-horizonpicker-highlightlinestyle | string | Linestyle of highlighted horizon (default is red) |
widget-tools-horizonpicker-highlightlinestyle | LineStyle | Linestyle of highlighted horizon (default is red) |
widget-tools-horizonpicker-linestyle | string | Linestyle of horizon (default is red) |
widget-tools-horizonpicker-linestyle | LineStyle | Linestyle of horizon (default is red) |
widget-tools-horizonpicker-mode | Mode | Mode of horizon picker |
widget-tools-horizonpicker-propagatorthresholderror | number | Propagator threshold error (in percents, must be > 0) |
widget-tools-panning | Options | Panning options |
widget-tools-panning | Options | Panning options |
widget-tools-panning-acceptx | boolean | Accept x coordinates |
widget-tools-panning-inertiacoef | number | boolean | Inertia coefficient for inertia effect |
widget-tools-panning-panningthreshold | number | Threshold to prevent panning. If user pointer movement is under this value the panning will be ignore. WARNING: if you set positive inertia coefficient, some panning events'll be fired with null eventArgs |
widget-tools-panning-wheelratio | number | Number that represent the number default |
widget-tools-rubberbandzoom | Options | Rubber band zoom options |
widget-tools-rubberbandzoom | Options | Rubber band zoom options |
widget-tools-rubberbandzoom-mode | RubberBandRenderMode | Rubber mode |
widget-tools-rubberbandzoom | Options | Rubber band zoom options |
widget-tools-rubberbandzoom-acceptemptyrect | boolean | Does rubber band accept empty rect |
widget-tools-rubberbandzoom-autodisabled | boolean | Does rubber band automatically disabled on zoom end |
widget-tools-rubberbandzoom-fillstyle | string | Rubber band fillstyle |
widget-tools-rubberbandzoom-fillstyle | FillStyle | Rubber band fillstyle |
widget-tools-rubberbandzoom-linestyle | string | Rubber band linestyle |
widget-tools-rubberbandzoom-linestyle | LineStyle | Rubber band linestyle |
widget-tools-rubberbandzoom-restrictionarea | Rect | Specify restriction area |
widget-tools-zoom | Options | Zoom options |
widget-tools-zoom | Options | Zoom options |
widget-tools-zoom-easing | Functions | Easing animation function for elastic zooming |
widget-tools-zoom-max | number | Maximum limits for zooming (>= options.zoom.min) |
widget-tools-zoom-min | number | Minimum limits for zooming (>= 0) |
widget-tools-zoom-mode | Mode | Mode of pinch zooming |
widget-tools-zoom-modifier | ModifierKey | Modifier key for zoom, default is ModifierKey.None |
widget-tools-zoom-speed | number | Speed of zooming (>= 1) |
widget-tools-zoom-time | number | Zooming time in ms (> 0 for elastic, 0 for instant) |
Constructors
• new Comparator(options?, manipulatorLayer?)
Create comparator tool
| Name | Type | Description |
|---|---|---|
Optional options | Options | SeismicViewWidget | object or the target widget to add the comparator to |
Optional manipulatorLayer | CompositeNode<Node> | layer for holding temporary shapes |
AbstractTool.constructor
Methods
▸ addListener(eventName, listener): Comparator
add event listener. The listener receives the message when the system event happens.
Deprecated
since 4.0 use .on() instead. Note that 3 args callback should be used in subscription via .on(): (eventType, source, args)
| Name | Type | Description |
|---|---|---|
eventName | string | event name or unique event identifier |
listener | Function | the event listener |
▸ captureMouseUp(): void
listen to window mouse events in order to catch a mouse up action outside of the tool container DOM element. useful for example when you pan and release click outside of DOM element.
void
▸ dispose(): void
dispose object
void
▸ fireEvent(eventName, eventArgs?): void
This method is Protected. Fire an Event.
Deprecated
since 4.0 use .notify() instead. Note that 3 args callback should be used in subscription via .on()
| Name | Type | Description |
|---|---|---|
eventName | string | event name |
Optional eventArgs | any | contains info of the event |
void
▸ getClassName(): string
string
▸ getContinuous(): boolean
Return continuous mode flag
boolean
▸ Protected getEventRadius(eventArgs): number
Returns device radius for the provided event
| Name | Type | Description |
|---|---|---|
eventArgs | EventArgs | contains info of the event |
number
▸ getManipulatorLayer(): CompositeNode<Node>
return manipulator layer
layer
AbstractTool.getManipulatorLayer
▸ getMouseRadius(): number
Returns current device radius for mouse events
number
▸ getName(): string
return tool name if any
string
name of the tool
▸ getOptions(): OptionsOut
Returns visual options
object containing visual options
▸ getOrientation(): Orientation
returns splitter orientation
orientation
▸ getParentTool(): AbstractCompositeTool
Gets parent tool
parent tool
▸ getPipeline(): SeismicPipeline
returns pipeline
pipeline
▸ getPosition(): number
Returns split position
number
return splitter position (between 0..1)
▸ getProperties(context?): OptionsOut
Returns all the properties pertaining to this object
| Name | Type | Description |
|---|---|---|
Optional context | ISerializationContext | serialization context |
An object containing the properties
▸ getProperty(name): any
Gets dynamic property by name. These properties can be used as a property bags
| Name | Type | Description |
|---|---|---|
name | string | property name |
any
▸ getPropertyKeys(): string[]
Returns known properties keys
string[]
▸ getRoot(): AbstractCompositeTool
Gets root tool
parent tool
▸ getSplit(): boolean
Returns split flag
boolean
▸ getTouchRadius(): number
Returns current device radius for touch events
number
▸ hasEventListener(type, callback?): boolean
Check if a list of event listeners for this type contains this listener
| Name | Type | Description |
|---|---|---|
type | string | type of event or property |
Optional callback | Function | to be called, if null, check if any callback is registered |
boolean
▸ isActive(): boolean
return active state
boolean
▸ isDisposed(): boolean
Returns whether this object has been disposed
boolean
▸ Protected isDoubleClick(point, eventArgs?): boolean
returns true if double clicked
| Name | Type | Description |
|---|---|---|
point | Point | Click point |
Optional eventArgs | EventArgs | optional event args to verify double click |
boolean
▸ isEnabled(): boolean
returns enable state
boolean
state
▸ isSilent(): boolean
Return true if the event dispatcher doesn't notify any events
boolean
▸ isTouchEvent(eventArgs): boolean
return true if the event is a touch event and false otherwise.
| Name | Type | Description |
|---|---|---|
eventArgs | Event | EventArgs | contains info of the event |
boolean
▸ notify<E>(type, source, args?): Comparator
Notify listeners
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | event types |
source | AbstractTool | of the event |
Optional args | EventMap[E] | arguments of the event |
this
▸ off<E>(type?, callback?): Comparator
Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
Optional type | E | type of the event |
Optional callback | (eventType: E, sender: Comparator, args: EventMap[E]) => void | function to be called |
this
▸ on<E>(type, callback): Comparator
Attach listener on event that will be called whenever the specified event is delivered to the target
If the callback function is already in the list of event listeners for this target, the function is not added a second time.
If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target.
TypeScript hint: in case of creating derived tool with own events, EventMap should be extended and .on() and .notify() methods redeclared, see sample.Example
// Using in derived tool
import type {EventMap as EventMapBase} from '@int/geotoolkit/controls/tools/AbstractTool';
export type EventMap = EventMapBase & {
[MyToolEvents.onValueChanged]: MyToolEventArgs
}
export enum MyToolEvents {
onValueChanged = 'onValueChanged'
}
export class MyTool extends AbstractTool {
public declare on: <E extends keyof EventMap>(type: E, callback: (eventType: E, sender: this, args: EventMap[E]) => void) => this;
protected declare notify: <E extends keyof EventMap>(type: E, source: AbstractTool, args?: EventMap[E]) => this;
public declare off: <E extends keyof EventMap>(type: E, callback?: (eventType: E, sender: this, args: EventMap[E]) => void) => this;
// ...
}| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event or property |
callback | (eventType: E, sender: Comparator, args: EventMap[E]) => void | to be called |
▸ Protected onActiveStateChanged(): void
Fires
void
AbstractTool.onActiveStateChanged
▸ Protected onEnabledStateChanged(): void
Fires
void
AbstractTool.onEnabledStateChanged
▸ pageToCanvas(eventArgs, externalPlot?): Object
return position relative to the canvas
| Name | Type | Description |
|---|---|---|
eventArgs | Event | EventArgs | parentElement the parent HTML element |
Optional externalPlot | Plot | plot |
Object
| Name | Type |
|---|---|
x | number |
y | number |
▸ pointToModel(model, eventArgs): Point
converts device coordinates to inner coordinates of node
| Name | Type | Description |
|---|---|---|
model | Node | the model |
eventArgs | Point | EventArgs | arguments of the event OR point in device (plot) coordinates. |
▸ removeListener(eventName, listener?): Comparator
remove event listener. The listener reveives the message when the system event happens.
Deprecated
since 4.0 use .off() instead.
| Name | Type | Description |
|---|---|---|
eventName | string | event name |
Optional listener | Function | Function[] | the event listener, if null, remove all listeners for the event |
▸ setActive(active): Comparator
set active state
Fires
| Name | Type | Description |
|---|---|---|
active | boolean | set active state |
▸ setContinuous(continuous): Comparator
Set continuous mode flag
| Name | Type | Description |
|---|---|---|
continuous | boolean | continuous mode flag |
▸ setEnabled(enabled): Comparator
set enable state
Fires
Fires
| Name | Type | Description |
|---|---|---|
enabled | boolean | sets the enabled state |
this
▸ setMouseRadius(radius): Comparator
Sets device radius for mouse events
| Name | Type | Description |
|---|---|---|
radius | number | radius for mouse events |
this
▸ setName(name): Comparator
set tool name
| Name | Type | Description |
|---|---|---|
name | string | the tool name |
▸ setOptions(options): Comparator
Set visual options
| Name | Type | Description |
|---|---|---|
options | OptionsType | visual options |
this
▸ setOrientation(orientation): Comparator
Set orientation
| Name | Type | Description |
|---|---|---|
orientation | Orientation | orientation |
this
▸ setPipeline(pipeline, bounds?): Comparator
set pipeline
| Name | Type | Description |
|---|---|---|
pipeline | SeismicPipeline | pipeline |
Optional bounds | Rect | bounds of seismic image |
this
▸ setPosition(position): Comparator
Set split position
| Name | Type | Description |
|---|---|---|
position | number | splitter position (interval [0, 1]) |
this
▸ setProperties(properties?): Comparator
Sets properties
| Name | Type | Description |
|---|---|---|
Optional properties | Options | properties |
this
▸ setProperty(name, value): Comparator
Sets dynamic property by name
| Name | Type | Description |
|---|---|---|
name | string | property name |
value | any | property value |
this
▸ setSilent(bool): Comparator
Set silent mode
| Name | Type | Description |
|---|---|---|
bool | boolean | flag to enable silent mode |
this
▸ setSlotEnabled(eventName, value, target?): Comparator
Sets slot enabled
| Name | Type | Description |
|---|---|---|
eventName | string | eventName |
value | boolean | value |
Optional target | EventTarget | target |
▸ setSlots(slots?, merge?): Comparator
Sets new slots.
Example
const slots = {
'pointerdown': (event: EventArgs) => {
// event is an instance of @int/geotoolkit/controls/tools/EventArgs
...
}
};
tool.setSlots(slots);| Name | Type | Description |
|---|---|---|
Optional slots | Record<string, Slot | Slot[] | (eventArgs: EventArgs) => void> | type of system events |
Optional merge | boolean | set to true if you want to merge with existing slots |
this
▸ setSplit(split): Comparator
Set split flag
| Name | Type | Description |
|---|---|---|
split | boolean | default is true |
▸ setTouchRadius(radius): Comparator
Sets device radius for touch events
| Name | Type | Description |
|---|---|---|
radius | number | radius for touch events |
this
▸ Protected start(eventArgs?): Comparator
start
| Name | Type | Description |
|---|---|---|
Optional eventArgs | ProxyEventArgs | event args |
▸ Protected stop(): Comparator
stop
▸ toggle(): Comparator
switch enable state to opposite state
▸ Static canvasToClient(plotPoint, plot): Point
Convert plot coordinates to global coordinates
▸ Static clientToCanvas(nativeEvent, plot): Point
Convert global coordinates to plot coordinates
| Name | Type | Description |
|---|---|---|
nativeEvent | Event | native browser event |
plot | Plot | plot with canvas |
▸ Static getClassName(): string
string
▸ Static getExclusiveTool(plot): AbstractTool
return exclusive tool associated with plot
| Name | Type | Description |
|---|---|---|
plot | Plot | plot |
tool
▸ Static getNativeEventName(eventName): string[]
Returns native event name
| Name | Type | Description |
|---|---|---|
eventName | string | W3C Pointer Events Recommendation name |
string[]
AbstractTool.getNativeEventName
▸ Static isTouchEvent(eventArgs): eventArgs is TouchEvent
return true if the event is a touch event and false otherwise.
| Name | Type | Description |
|---|---|---|
eventArgs | Event | EventArgs | contains info of the event |
eventArgs is TouchEvent
▸ Static lock(plot, tool): void
Set exclusive tool for plot
| Name | Type | Description |
|---|---|---|
plot | Plot | plot |
tool | AbstractTool | tool |
void
▸ Static setDefaultMouseRadius(radius): void
Sets default device radius for mouse events
| Name | Type | Description |
|---|---|---|
radius | number | radius for mouse events |
void
AbstractTool.setDefaultMouseRadius
▸ Static setDefaultTouchRadius(radius): void
Sets default device radius for touch events
| Name | Type | Description |
|---|---|---|
radius | number | radius for touch events |
void
AbstractTool.setDefaultTouchRadius
▸ Static unlock(value): void
Remove exclusive tool from plot
| Name | Type | Description |
|---|---|---|
value | AbstractTool | Plot | value |
void