![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@jibestream-dev/jmap-navigation-kit
Advanced tools
Kit for the Jibestream SDK to create Navigation Instructions based on a wayfinding path
Returns an English direction, given three waypoints with which to calculate
Returns an Instruction, given a Direction object
Returns an Instruction Factory, which can be used to create an empty or populated Instruction
Returns a NavigationKit, which can be used to generate Directions and Instructions
Returns a SurroundingDefinition
Returns a SurroundingElements object
Returns a SurroundingIcon
Returns a SurroundingItem
Returns a SurroundingShape
Returns an English direction, given three waypoints with which to calculate
Kind: global class
Creates a Direction
Param | Type | Default | Description |
---|---|---|---|
a | jmap.core.Waypoint | The first waypoint in the series of three waypoints | |
b | jmap.core.Waypoint | The second waypoint in the series of three waypoints | |
c | jmap.core.Waypoint | The third waypoint in the series of three waypoints | |
[threshold] | Number | 20 | The threshold for deciding between forward and left/right |
[uTurnThreshold] | Number | 45 | The threshold for deciding a U-Turn |
String
Kind: instance method of Direction
Returns: String
- - The English direction for the current instance of a Direction
Access: public
Returns an Instruction, given a Direction object
Creates an Instruction
Param | Type | Description |
---|---|---|
direction | Direction | The direction that will be used to generate the instruction |
Returns an Instruction Factory, which can be used to create an empty or populated Instruction
Kind: global class
Creates an Instruction
Param | Type | Description |
---|---|---|
direction | Direction | The direction that will be used to generate the instruction |
Instruction
Kind: instance method of InstructionFactory
Returns: Instruction
- - The Instruction generated with the specified Direction
Access: public
Param | Type | Description |
---|---|---|
direction | Direction | The direction with which to create the Instruction |
Kind: instance method of InstructionFactory
Access: public
Param | Type | Description |
---|---|---|
instruction | Instruction | The Instruction with which to calculate the surrounding elements |
Kind: instance method of InstructionFactory
Access: public
Param | Type | Description |
---|---|---|
instruction | Instruction | The instruction that will have its surrounding definition updated |
Instruction
Kind: static method of InstructionFactory
Returns: Instruction
- - The Instruction generated with the specified Direction
Access: public
Returns a NavigationKit, which can be used to generate Directions and Instructions
Kind: global class
Array.<SurroundElements>
Array.<Instruction>
Number
Object
Array.<Number>
Boolean
Boolean
Boolean
Creates a NavigationKit
Param | Type | Description |
---|---|---|
control | JController | The controller for the currently rendered map |
options | Object | The options with which to configure the NavigationKit |
options.visualLimitLeft | Number | How many degrees counter-clockwise from the gaze direction shall we consider when calculating surrounding elements |
options.visualLimitRight | Number | How many degrees clockwise from the gaze direction shall we consider when calculating surrounding elements |
options.layersOfInterest | Array.<String> | That layers that shall be considered when looking for surrounding elements |
options.visualObstacles | Array.<String> | That layers that shall be considered when looking for obstacles |
options.visualRange | Number | How far into the distance a user is able to percieve shapes/icons |
options.angleThreshold | Number | The threshold for deciding between forward and left/right |
Kind: instance method of NavigationKit
Access: public
Param | Type | Default | Description |
---|---|---|---|
threshold | Number | 20 | The angle threshold for determining whether a direction is straight or left/right |
Kind: instance method of NavigationKit
Access: public
Param | Type | Default | Description |
---|---|---|---|
[uTurnThreshold] | Number | 45 | The angle threshold for determining whether a direction is a U-Turn |
Array.<SurroundElements>
Kind: instance method of NavigationKit
Returns: Array.<SurroundElements>
- - The surrounding elements for a given surrounding definition
Access: public
Param | Type | Description |
---|---|---|
definition | SurroundingDefinition | The first waypoint that defines a line |
Array.<Instruction>
Kind: instance method of NavigationKit
Returns: Array.<Instruction>
- - An array of Instructions, based on the wayfinding path
Access: public
Param | Type | Description |
---|---|---|
pathPerFloor | Array.<Object> | The first waypoint that defines a line |
Number
Kind: instance method of NavigationKit
Returns: Number
- threshold - Millimeter value used to define acceptable distance from
wayfinding path
Access: public
Param | Type | Description |
---|---|---|
route | Array.<pathPerFloor> | An array of JMapPathPerFloor objects to compare with user's location |
Object
Draws a path on the relevant maps, with instructions on whether to turn left/right/uturn
Kind: instance method of NavigationKit
Returns: Object
- The JController associated with this navigation kit
Access: public
Param | Type | Description |
---|---|---|
pathPerFloor | Array.<Object> | An array of JMapPathPerFloor objects to compare with user's location |
[pathStyle] | jmap.Style | A style object to style the generated path on the map |
[popupStyle] | jmap.Style | A style object to style the popup element |
[fontStyle] | jmap.Font | A font object to style the popup elements' text |
Array.<Number>
Kind: static method of NavigationKit
Returns: Array.<Number>
- - The new position of the point
Access: public
Param | Type | Description |
---|---|---|
origin | Array.<Number> | The original position of the point |
angle | Number | The angle in whicht the point should be moved |
distance | Number | How far the point should be moved |
Boolean
Kind: static method of NavigationKit
Returns: Boolean
- - Whether the bounds intersect
Access: public
Param | Type | Description |
---|---|---|
a | jmap.Bounds | The first bounding box |
b | jmap.Bounds | The second bounding box |
Boolean
Kind: static method of NavigationKit
Returns: Boolean
- - Whether the segment is either partially or fully within the circle
Access: public
Param | Type | Description |
---|---|---|
p1 | Array.<Number> | The first point that defines a segment |
p2 | Array.<Number> | The second point that defines a segment |
circle | jmap.jungle.shape.Circle | The circle shape that we're checking against |
Boolean
Kind: static method of NavigationKit
Returns: Boolean
- - Whether the segment is either partially or fully within the polgon
Access: public
Param | Type | Description |
---|---|---|
segment | Array.<Array> | The segment we are testing with |
gazePolygon | jmap.jungle.shape.Polygon | The polygon we are checking against |
Returns a SurroundingDefinition
Creates a SurroundingDefinition
Param | Type | Default | Description |
---|---|---|---|
options | Object | The options with which to configure the SurroundingDefinition | |
options.map | global.jmap.core.Map | The map on which the surrounding elements should be generated from | |
options.point | Array.<Number> | The point from which the surrounding elements should be calculated (as [x, y]) | |
options.gazeDirection | Number | The angle (in degrees) between the x-axis and the gaze direction | |
[options.visualRange] | Number | 250 | How far a person can see (in pixels) |
options.visualLimitLeft | Number | How many degrees counter-clockwise from the gaze direction shall we consider when calculating surrounding elements | |
options.visualLimitRight | Number | How many degrees counter-clockwise from the gaze direction shall we consider when calculating surrounding elements | |
options.layersOfInterest | Array.<String> | The layers that should be considered when generating the surround elements |
Returns a SurroundingElements object
Creates a SurroundingElements object
Param | Type | Description |
---|---|---|
options | Object | The options with which to configure the SurroundingDefinition |
options.icons | global.jungle.Icon | The icons that were deemed to be a surrounding element |
options.shapes | global.jungle.Shape | The shapes that were deemed to be a surrounding element |
Returns a SurroundingIcon
Creates a SurroundingIcon
Param | Type | Description |
---|---|---|
icon | global.jungle.Icon | The icon deemed to be a surrounding element |
distance | Number | The distance between the decision point and the icon |
layerName | String | The layer on which the icon is |
Returns a SurroundingItem
Creates a SurroundingItem
Param | Type | Description |
---|---|---|
distance | Number | The distance between the decision point and the surrounding item |
layerName | String | The layer on which the surrounding item is |
Returns a SurroundingShape
Creates a SurroundingIcon
Param | Type | Description |
---|---|---|
shape | global.jungle.Shape | The shape deemed to be a surrounding element |
distance | Number | The distance between the decision point and the icon |
layerName | String | The layer on which the icon is |
FAQs
Kit for the Jibestream SDK to create Navigation Instructions based on a wayfinding path
The npm package @jibestream-dev/jmap-navigation-kit receives a total of 0 weekly downloads. As such, @jibestream-dev/jmap-navigation-kit popularity was classified as not popular.
We found that @jibestream-dev/jmap-navigation-kit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.