
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@vcmap/event-control
Advanced tools
> Part of the [VC Map Project](https://github.com/virtualcitySYSTEMS/map-ui)
Part of the VC Map Project
The Event Control plugin is intended to perform actions in reaction to events. In particular, it allows callbacks to be executed in reaction to various events.
The trigger events that can be used are as follows:
Plugin configuration is simple: the actions
property is an array of actions, defined as follows:
Property | Type | Description | Possible values |
---|---|---|---|
type | String | The type of event to react to. | layer , map , module , planning , window |
targetName | String | The name of the target (layer, planning id, ...) to react to. | any |
onActivate | Array | Optional. Callback options to be executed on target's activation. | |
onDeactivate | Array | Optional. Callback options to be executed on target's deactivation. |
For more information about callbacks, see the Callback documentation.
layer2
at the same time as that of layer1
:"actions": [
{
"type": "layer",
"targetName": "layer1",
"onActivate": [
{
"type": "ActivateLayersCallback",
"layerNames": ["layer2"]
}
],
"onDeactivate": [
{
"type": "DeactivateLayersCallback",
"layerNames": ["layer2"]
}
]
}
]
planningLayer
to be activated when enabling the Planning project with id planningId
:"actions": [
{
"type": "planning",
"targetName": "planningId",
"onActivate": [
{
"type": "ActivateLayersCallback",
"layerNames": ["planningLayer"]
},
]
}
]
layerWithLegend
:"actions": [
{
"type": "layer",
"targetName": "layerWithLegend",
"onActivate": [
{
"type": "ToggleNavbarButtonCallback",
"buttonId": "legendId",
"activeState":true
}
]
}
]
"actions": [
{
"type": "map",
"targetName": "cesiumMap",
"onActivate": [
{
"type": "AddModuleCallback",
"module": "config/3Dconfig.json"
}
],
"onDeactivate": [
{
"type": "RemoveModuleCallback",
"moduleId": "config/3Dconfig.json"
}
]
}
]
"actions": [
{
"type": "window",
"targetName": "myOwnPluginWindowId",
"onActivate": [
{
"type":"StartRotationCallback"
}
]
}
]
FAQs
> Part of the [VC Map Project](https://github.com/virtualcitySYSTEMS/map-ui)
We found that @vcmap/event-control demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.