Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tategakibunko/nehan-speech-border
- Owner: tategakibunko
- License: mit
- Created: 2021-04-05T11:21:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-05T23:07:39.000Z (over 3 years ago)
- Last Synced: 2024-11-09T20:57:52.863Z (5 days ago)
- Language: TypeScript
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!
]
});
```