mirror of
https://github.com/skishore/makemeahanzi.git
synced 2025-11-01 20:27:44 +08:00
Pass manual bridges into stroke extractor
This commit is contained in:
@ -380,7 +380,7 @@ function extract_strokes(paths, endpoints, bridges) {
|
||||
|
||||
// Exports go below this fold.
|
||||
|
||||
this.get_glyph_render_data = function(glyph) {
|
||||
this.get_glyph_render_data = function(glyph, manual_bridges) {
|
||||
var paths = orient_paths(split_path(glyph.path));
|
||||
var endpoints = [];
|
||||
for (var i = 0; i < paths.length; i++) {
|
||||
@ -389,7 +389,7 @@ this.get_glyph_render_data = function(glyph) {
|
||||
}
|
||||
}
|
||||
var bridges = get_bridges(endpoints);
|
||||
var strokes = extract_strokes(paths, endpoints, bridges);
|
||||
var strokes = extract_strokes(paths, endpoints, manual_bridges || bridges);
|
||||
return {
|
||||
bridges: bridges,
|
||||
d: Glyphs.get_svg_path(glyph),
|
||||
|
||||
Reference in New Issue
Block a user