Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 20 additions & 8 deletions extensions/script-libraries/drawing/drawing.livecodescript
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,20 @@ Finally if the width and height are not specified, or are percentages and there
is no viewBox attribute then the intrinsic width and height are taken to be
256.

Note: The drawing binary format is not currently considered stable and is
>*Note:* The drawing binary format is not currently considered stable and is
subject to change until the end of the RC cycle for 9. At present it is advised
that SVG files be compiled as needed when developing in the IDE, and then
compiled ahead-of-time when building a standalone.

Note: To use this function in a standalone, you must include the XML extension.

>*Note:* To use this function in a standalone, you must include the XML
extension.


>*Note:* The <XML library> (and by extension, this function) can not load
> files from the resources folder on Android. You must either copy the
> resources to the documents folder or use the <drawingSvgCompile>
> function instead.

Parameters:

Expand All @@ -132,7 +140,7 @@ of an image directly.
The result:
An error string if an error occurred.

References: drawingSvgCompile (function)
References: drawingSvgCompile (function), XML library (library)
*/
function drawingSvgCompileFile pXmlFile
/* Convert the XML file to the LiveCode array structure. */
Expand Down Expand Up @@ -208,12 +216,16 @@ Finally if the width and height are not specified, or are percentages and there
is no viewBox attribute then the intrinsic width and height are taken to be
256.

Note: The drawing binary format is not currently considered stable and is
subject to change until the end of the RC cycle for 9. At present it is advised
that SVG files be compiled as needed when developing in the IDE, and then
compiled ahead-of-time when building a standalone.
>*Note:* The drawing binary format is not currently considered stable and is
> subject to change until the end of the RC cycle for 9. At present it is advised
> that SVG files be compiled as needed when developing in the IDE, and then
> compiled ahead-of-time when building a standalone.


>*Note:* To use this function in a standalone, you must include the XML
> extension.


Note: To use this function in a standalone, you must include the XML extension.
Parameters:

pXmlText (string):
Expand Down
1 change: 1 addition & 0 deletions extensions/script-libraries/drawing/notes/21822.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# [21822] Added a note mentioning that drawingSvgCompileFile() can not read from the resources folder on Android