0.0.1 • Published 3 years ago

nehan-speech-border v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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!
  ]
});