Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tategakibunko/nehan-speech-border

nehan plugin to display border for speech balloon
https://github.com/tategakibunko/nehan-speech-border

Last synced: 1 day ago
JSON representation

nehan plugin to display border for speech balloon

Awesome Lists containing this project

README

        

# nehan-speech-border

[nehan](https://github.com/tategakibunko/nehan) plugin to display border for speech balloon.

![demo](sshot.png)

## create nehan style

```typescript
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("

this is content text
", {
styleSheets:[
speechBorderStyle, // use style!
]
});
```