example/app.js
function bold(map) {
    let value = map.selectNode().font.weight !== "bold" ? "bold" : "normal";
    map.updateNode("fontWeight", value);
}
function bold(map) {
    let value = map.selectNode().font.weight !== "bold" ? "bold" : "normal";
    map.updateNode("fontWeight", value);
}
function bold ( map ) { let value = map . selectNode ( ) . font . weight !== "bold" ? "bold" : "normal" ; map . updateNode ( "fontWeight" , value ) ; }
Update bold status
Update bold status