
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.
@paraboly/pwc-map-legend
Advanced tools
Fully customizable map legend view for Web with StencilJS via Paraboly
<script type="module" src="https://unpkg.com/@paraboly/pwc-map-legend@latest/dist/pwc-map-legend/pwc-map-legend.esm.js"></script>
in the head of your index.htmlnpm install @paraboly/pwc-map-legend --save
import @paraboly/pwc-map-legend;
<pwc-map-legend
title-text="Custom Legend Title"
entries='[
{
"name": "Foo",
"count": 1512,
"color": "red"
},
{
"name": "Road",
"count": 8,
"color": "#222123",
"svgStyle": { "stroke-opacity": 0.8, "stroke-width": 15 },
"roadLines": [
{
"color": "white",
"svgStyle": { "stroke-dasharray": 6 }
},
{
"color": "white"
}
]
}
]'
></pwc-map-legend>
<pwc-map-legend></pwc-map-legend>
var pwcMapLegend = document.querySelector("pwc-map-legend");
pwcMapLegend.titleText = "Legend";
pwcMapLegend.entries = [
{
name: "Foo",
count: 1512,
color: "red"
},
{
name: "Triple Lane Road",
count: 8,
color: "#222123",
svgStyle: { "stroke-opacity": 0.8, "stroke-width": 15 },
roadLines: [
{
color: "white",
svgStyle: { "stroke-dasharray": 6 }
},
{
color: "white"
}
]
}
];
stroke-width
of svgStyle
overrides has to be of type number
only. This is enforced in TypeScript interfaces, but there is no type enforcement when used from JavaScript code or from plain HTML.SchemeSonic, haldun.yildiz@paraboly.com | haldun313@gmail.com
FreakyCoder, kuray.ogun@paraboly.com | kurayogun@gmail.com
starikcetin, tarik.cetin@paraboly.com | cetinsamedtarik@gmail.com
WebComponent PWC Map Legend is available under the MIT license. Refer to the LICENSE file for more information.
FAQs
Fully customizable map legend view for Web with StencilJS via Paraboly
We found that @paraboly/pwc-map-legend demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.