nehan-speech-border
v0.0.1
Published
nehan plugin to display speech border
Downloads
5
Maintainers
Readme
nehan-speech-border
nehan plugin to display border for speech balloon.
create nehan style
import * as SpeechBorderStyle from 'nehan-speech-border';
const speechBorderStyle: CssStyleSheet = SpeechBorderStyle.create({
selector: ".speech-border",
direction: "start", // "start" | "end" | "before" | "after"
borderColor: "#ccc",
bgColor: "white",
borderSize: 2,
borderRadius: 4,
triangleOffset: 12,
});
const pd = new PagedNehanDocument("<div class='speech-border start'><div class='content'>this is content text</div></div>", {
styleSheets:[
speechBorderStyle, // use style!
]
});