nehan plugin to display border for speech balloon
  • TypeScript 99.8%
  • Makefile 0.2%
Find a file
2021-04-06 08:07:36 +09:00
.gitignore First commit 2021-04-05 20:22:25 +09:00
.npmignore First commit 2021-04-05 20:22:25 +09:00
index.ts First commit 2021-04-05 20:22:25 +09:00
LICENSE First commit 2021-04-05 20:22:25 +09:00
Makefile First commit 2021-04-05 20:22:25 +09:00
package-lock.json First commit 2021-04-05 20:22:25 +09:00
package.json First commit 2021-04-05 20:22:25 +09:00
README.md Added screen shot 2021-04-06 08:07:36 +09:00
sshot.png Added screen shot 2021-04-06 08:04:48 +09:00
tsconfig.json First commit 2021-04-05 20:22:25 +09:00

nehan-speech-border

nehan plugin to display border for speech balloon.

demo

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