From afd9d1b32e2fdab41ea932705693c671e561bc50 Mon Sep 17 00:00:00 2001 From: Gabriel Moro Date: Tue, 25 Nov 2025 18:22:23 -0300 Subject: [PATCH 1/2] Add custom command section - documentation --- docs/available-commands.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/available-commands.md b/docs/available-commands.md index 90056635..f52a96e0 100644 --- a/docs/available-commands.md +++ b/docs/available-commands.md @@ -2,6 +2,29 @@ jujubaSVG already provides some commands. This page we will demonstrate how to use them in Kotlin and Dart (Flutter). +!!!tip "Support added - Android v1.3.0 / Flutter v1.1.0" + + ## Custom command + + If you need to specify a custom command that is not provided by jujubaSVG, you can use the `CustomCommand`. + + ```kotlin + // KOTLIN + jujubaCommander.execute( + Command.CustomCommand( + jsCode = "yourJSCode" + ) + ) + ``` + + ```dart + // DART + commander.execute( + CustomCommand( + jsCode: 'yourJSCode' + ), + ); + ``` ## Update background color From 1dac9ca9d404b81c21c20f6a7a4da7a030513e3f Mon Sep 17 00:00:00 2001 From: Gabriel Moro Date: Tue, 25 Nov 2025 19:35:54 -0300 Subject: [PATCH 2/2] Code review suggestion removing 'the' - available commands doc --- docs/available-commands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/available-commands.md b/docs/available-commands.md index f52a96e0..cc9fb4c4 100644 --- a/docs/available-commands.md +++ b/docs/available-commands.md @@ -6,7 +6,7 @@ jujubaSVG already provides some commands. This page we will demonstrate how to u ## Custom command - If you need to specify a custom command that is not provided by jujubaSVG, you can use the `CustomCommand`. + If you need to specify a custom command that is not provided by jujubaSVG, you can use `CustomCommand`. ```kotlin // KOTLIN