-
-
Notifications
You must be signed in to change notification settings - Fork 25
v2.0 API Revision List
Hermet Park edited this page Jul 15, 2026
·
2 revisions
- Align with ThorVG native conventions (naming + signature) as far as practical, while keeping a coherent/convenient JS API surface.
| JS API | C API | Revision |
|---|---|---|
resetEffects() |
_tvg_scene_clear_effects |
add(SceneEffect.Clear) |
fillEffect(r,g,b,a) |
_tvg_scene_add_effect_fill |
add(SceneEffect.Fill, r,g,b,a) |
gaussianBlur(...) |
_tvg_scene_add_effect_gaussian_blur |
add(SceneEffect.GaussianBlur, ...) |
dropShadow(...) |
_tvg_scene_add_effect_drop_shadow |
add(SceneEffect.DropShadow, ...) |
tint(...) |
_tvg_scene_add_effect_tint |
add(SceneEffect.Tint, ...) |
tritone(...) |
_tvg_scene_add_effect_tritone |
add(SceneEffect.Tritone, ...) |
| JS API | C API | Revision |
|---|---|---|
setLoop(bool) |
none (JS-only) | loop(value) |
getLoop() |
none (JS-only) | loop() |
getCurrentTime() |
none (JS-only) | currentTime() |
| JS API | C API | Revision |
|---|---|---|
info() |
_tvg_animation_get_total_frame, _tvg_animation_get_duration
|
totalFrame(), duration(), fps()
|
| JS API | C API | Revision |
|---|---|---|
setStops(...stops) |
_tvg_gradient_set_color_stops |
colorStops(stops) |
clearStops() |
_tvg_gradient_set_color_stops |
colorStops([]) |
build() |
none (JS-only) | Remove |
addStop(offset, color) |
none (JS-only) | Remove |
| (missing) | _tvg_gradient_get_color_stops |
colorStops() |
| JS API | C API | Revision |
|---|---|---|
fontSize(size) |
_tvg_text_set_size |
size(size) |