<svg xmlns="http://www.w3.org/2000/svg">
<style type="text/css">
circle:hover {fill-opacity:0.9;}
</style>
<g style="fill-opacity:0.7;">
<circle cx="6.5cm"
cy="2cm"
r="100"
style="fill:red;"
transform="translate(0,50)" />
<circle cx="6.5cm"
cy="2cm"
r="100"
style="fill:blue;"
transform="translate(70,150)" />
<circle cx="6.5cm"
cy="2cm"
r="100"
style="fill:green;"
transform="translate(-70,150)"/>
</g>
</svg>
const svg = d3.select("#root");
svg.append("circle")
.attr("cx", 2)
.attr("cy", 2)
.attr("r", 40)
.style("fill", "blue");
svg.append("circle")
.attr("cx", 140)
.attr("cy", 70)
.attr("r", 40)
.style("fill", "red");
svg.append("circle")
.attr("cx", 300)
.attr("cy", 100)
.attr("r", 40)
.style("fill", "green");
export default 10;
import multiplier from './some-file.js';
export function someMaths() {
console.log(multiplier);
console.log(5 * multiplier);
console.log(10 * multiplier);
}
'use strict';
Object.defineProperty(
exports,
'__esModule',
{ value: true }
);
var multiplier = 10;
function someMaths() {
console.log(multiplier);
console.log(5 * multiplier);
console.log(10 * multiplier);
}
exports.someMaths = someMaths;
import App from './App.svelte';
const app = new App({
target: document.body,
props: {
// assuming App.svelte contains
// something like
// `export let answer`:
answer: 42
}
});
// Set props:
app.$set({answer: 1337});
// Destroy component:
app.$destroy();