@imgly/editor-react-native 1.72.3 → 1.73.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/IMGLYEditorModule.podspec +23 -0
- package/android/build.gradle +9 -6
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/assets/scene/apparel.scene +1 -0
- package/android/src/main/assets/scene/design.scene +1 -0
- package/android/src/main/assets/scene/postcard.scene +1 -0
- package/android/src/main/assets/scene/video.scene +1 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/apparel/ApparelConfigurationBuilder.kt +113 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/apparel/EditorActivity.kt +37 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/apparel/callback/OnCreate.kt +190 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/apparel/callback/OnExport.kt +82 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/apparel/callback/OnLoaded.kt +88 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/apparel/component/CanvasMenu.kt +45 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/apparel/component/Dock.kt +37 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/apparel/component/InspectorBar.kt +52 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/apparel/component/NavigationBar.kt +45 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/apparel/component/Overlay.kt +15 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/design/DesignConfigurationBuilder.kt +106 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/design/EditorActivity.kt +37 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/design/callback/OnCreate.kt +162 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/design/callback/OnExport.kt +82 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/design/callback/OnLoaded.kt +10 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/design/component/CanvasMenu.kt +45 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/design/component/Dock.kt +35 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/design/component/InspectorBar.kt +52 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/design/component/NavigationBar.kt +45 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/design/component/Overlay.kt +15 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/photo/EditorActivity.kt +37 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/photo/PhotoConfigurationBuilder.kt +106 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/photo/callback/OnCreate.kt +143 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/photo/callback/OnExport.kt +82 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/photo/callback/OnLoaded.kt +49 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/photo/component/CanvasMenu.kt +45 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/photo/component/Dock.kt +43 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/photo/component/InspectorBar.kt +52 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/photo/component/NavigationBar.kt +45 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/photo/component/Overlay.kt +15 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/postcard/EditorActivity.kt +37 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/postcard/PostcardConfigurationBuilder.kt +106 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/postcard/callback/OnCreate.kt +149 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/postcard/callback/OnExport.kt +82 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/postcard/callback/OnLoaded.kt +58 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/postcard/component/CanvasMenu.kt +45 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/postcard/component/Dock.kt +243 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/postcard/component/InspectorBar.kt +52 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/postcard/component/NavigationBar.kt +76 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/postcard/component/Overlay.kt +15 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/postcard/ext/Engine.kt +107 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/EditorActivity.kt +37 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/VideoConfigurationBuilder.kt +135 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/callback/OnCreate.kt +191 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/callback/OnExport.kt +98 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/callback/OnLoaded.kt +20 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/component/BottomPanel.kt +13 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/component/CanvasMenu.kt +45 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/component/Dock.kt +71 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/component/InspectorBar.kt +68 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/component/NavigationBar.kt +57 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/component/Overlay.kt +421 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/iconPack/CheckCircleOutline.kt +79 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/iconPack/ErrorOutline.kt +92 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/iconPack/IconPack.kt +14 -0
- package/android/src/main/kotlin/ly/img/editor/configuration/video/model/ExportStatus.kt +39 -0
- package/android/src/main/kotlin/ly/img/editor/reactnative/module/activity/EditorActivity.kt +2 -0
- package/android/src/main/kotlin/ly/img/editor/reactnative/module/builder/EditorBuilder.kt +240 -282
- package/ios/Extensions/OnCreate+.swift +38 -62
- package/ios/IMGLYEditorModule.swift +10 -1
- package/ios/Model/EditorBuilder.swift +132 -225
- package/ios/Model/ModalEditorConfiguration.swift +40 -0
- package/ios/Model/Source.swift +8 -0
- package/ios/StarterKits/Apparel/ApparelEditorConfiguration.swift +46 -0
- package/ios/StarterKits/Apparel/ApparelEditorStarterKit.swift +30 -0
- package/ios/StarterKits/Apparel/callbacks/OnChanged+Apparel.swift +116 -0
- package/ios/StarterKits/Apparel/callbacks/OnCreate+Apparel.swift +197 -0
- package/ios/StarterKits/Apparel/callbacks/OnExport+Apparel.swift +29 -0
- package/ios/StarterKits/Apparel/components/CanvasMenu+Apparel.swift +22 -0
- package/ios/StarterKits/Apparel/components/Dock+Apparel.swift +19 -0
- package/ios/StarterKits/Apparel/components/InspectorBar+Apparel.swift +35 -0
- package/ios/StarterKits/Apparel/components/NavigationBar+Apparel.swift +26 -0
- package/ios/StarterKits/Design/DesignEditorConfiguration.swift +43 -0
- package/ios/StarterKits/Design/DesignEditorStarterKit.swift +30 -0
- package/ios/StarterKits/Design/callbacks/OnCreate+Design.swift +131 -0
- package/ios/StarterKits/Design/callbacks/OnExport+Design.swift +30 -0
- package/ios/StarterKits/Design/components/CanvasMenu+Design.swift +22 -0
- package/ios/StarterKits/Design/components/Dock+Design.swift +23 -0
- package/ios/StarterKits/Design/components/InspectorBar+Design.swift +35 -0
- package/ios/StarterKits/Design/components/NavigationBar+Design.swift +24 -0
- package/ios/StarterKits/Photo/PhotoEditorConfiguration.swift +48 -0
- package/ios/StarterKits/Photo/PhotoEditorStarterKit.swift +30 -0
- package/ios/StarterKits/Photo/callbacks/OnChanged+Photo.swift +25 -0
- package/ios/StarterKits/Photo/callbacks/OnCreate+Photo.swift +138 -0
- package/ios/StarterKits/Photo/callbacks/OnExport+Photo.swift +29 -0
- package/ios/StarterKits/Photo/callbacks/OnLoaded+Photo.swift +18 -0
- package/ios/StarterKits/Photo/components/CanvasMenu+Photo.swift +22 -0
- package/ios/StarterKits/Photo/components/Dock+Photo.swift +23 -0
- package/ios/StarterKits/Photo/components/InspectorBar+Photo.swift +39 -0
- package/ios/StarterKits/Photo/components/NavigationBar+Photo.swift +24 -0
- package/ios/StarterKits/Photo/examples/ExampleForceCrop.swift +30 -0
- package/ios/StarterKits/Postcard/PostcardEditorConfiguration.swift +45 -0
- package/ios/StarterKits/Postcard/PostcardEditorStarterKit.swift +30 -0
- package/ios/StarterKits/Postcard/callbacks/OnChanged+Postcard.swift +92 -0
- package/ios/StarterKits/Postcard/callbacks/OnCreate+Postcard.swift +127 -0
- package/ios/StarterKits/Postcard/callbacks/OnExport+Postcard.swift +29 -0
- package/ios/StarterKits/Postcard/components/CanvasMenu+Postcard.swift +22 -0
- package/ios/StarterKits/Postcard/components/Dock+Postcard.swift +34 -0
- package/ios/StarterKits/Postcard/components/DockButtons+Postcard.swift +129 -0
- package/ios/StarterKits/Postcard/components/InspectorBar+Postcard.swift +35 -0
- package/ios/StarterKits/Postcard/components/NavigationBar+Postcard.swift +38 -0
- package/ios/StarterKits/Video/VideoEditorConfiguration.swift +54 -0
- package/ios/StarterKits/Video/VideoEditorStarterKit.swift +30 -0
- package/ios/StarterKits/Video/callbacks/OnCreate+Video.swift +137 -0
- package/ios/StarterKits/Video/callbacks/OnExport+Video.swift +46 -0
- package/ios/StarterKits/Video/components/BottomPanel+Video.swift +16 -0
- package/ios/StarterKits/Video/components/CanvasMenu+Video.swift +22 -0
- package/ios/StarterKits/Video/components/Dock+Video.swift +30 -0
- package/ios/StarterKits/Video/components/InspectorBar+Video.swift +43 -0
- package/ios/StarterKits/Video/components/NavigationBar+Video.swift +32 -0
- package/ios/StarterKits/Video/examples/ExampleVideoDurationConstraints.swift +23 -0
- package/ios/StarterKits/apparel-ui-b-empty.scene +1 -0
- package/ios/StarterKits/design-ui-empty.scene +1 -0
- package/ios/StarterKits/photo-ui-empty.png +0 -0
- package/ios/StarterKits/postcard-empty.scene +1 -0
- package/ios/StarterKits/video-empty.scene +1 -0
- package/package.json +1 -1
- package/src/NativeIMGLYEditor.ts +1 -1
- package/ios/View/ModalEditor.swift +0 -43
package/android/src/main/kotlin/ly/img/editor/configuration/video/iconPack/CheckCircleOutline.kt
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
package ly.img.editor.configuration.video.iconPack
|
|
2
|
+
|
|
3
|
+
import androidx.compose.ui.graphics.Color
|
|
4
|
+
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
|
|
5
|
+
import androidx.compose.ui.graphics.SolidColor
|
|
6
|
+
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
|
|
7
|
+
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
|
|
8
|
+
import androidx.compose.ui.graphics.vector.ImageVector
|
|
9
|
+
import androidx.compose.ui.graphics.vector.ImageVector.Builder
|
|
10
|
+
import androidx.compose.ui.graphics.vector.path
|
|
11
|
+
import androidx.compose.ui.unit.dp
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Check-circle with outline icon
|
|
15
|
+
*/
|
|
16
|
+
val IconPack.CheckCircleOutline: ImageVector
|
|
17
|
+
get() {
|
|
18
|
+
if (checkCircleOutline != null) {
|
|
19
|
+
return checkCircleOutline!!
|
|
20
|
+
}
|
|
21
|
+
checkCircleOutline = Builder(
|
|
22
|
+
name = "CheckCircleOutline",
|
|
23
|
+
defaultWidth = 24.0.dp,
|
|
24
|
+
defaultHeight = 24.0.dp,
|
|
25
|
+
viewportWidth = 24.0f,
|
|
26
|
+
viewportHeight = 24.0f,
|
|
27
|
+
).apply {
|
|
28
|
+
path(
|
|
29
|
+
fill = SolidColor(Color(0xFF46464F)),
|
|
30
|
+
stroke = null,
|
|
31
|
+
strokeLineWidth = 0.0f,
|
|
32
|
+
strokeLineCap = Butt,
|
|
33
|
+
strokeLineJoin = Miter,
|
|
34
|
+
strokeLineMiter = 4.0f,
|
|
35
|
+
pathFillType = NonZero,
|
|
36
|
+
) {
|
|
37
|
+
moveTo(10.6f, 16.6f)
|
|
38
|
+
lineTo(17.65f, 9.55f)
|
|
39
|
+
lineTo(16.25f, 8.15f)
|
|
40
|
+
lineTo(10.6f, 13.8f)
|
|
41
|
+
lineTo(7.75f, 10.95f)
|
|
42
|
+
lineTo(6.35f, 12.35f)
|
|
43
|
+
lineTo(10.6f, 16.6f)
|
|
44
|
+
close()
|
|
45
|
+
moveTo(12.0f, 22.0f)
|
|
46
|
+
curveTo(10.6167f, 22.0f, 9.3167f, 21.7373f, 8.1f, 21.212f)
|
|
47
|
+
curveTo(6.8833f, 20.6867f, 5.825f, 19.9743f, 4.925f, 19.075f)
|
|
48
|
+
curveTo(4.025f, 18.175f, 3.3127f, 17.1167f, 2.788f, 15.9f)
|
|
49
|
+
curveTo(2.2633f, 14.6833f, 2.0007f, 13.3833f, 2.0f, 12.0f)
|
|
50
|
+
curveTo(2.0f, 10.6167f, 2.2627f, 9.3167f, 2.788f, 8.1f)
|
|
51
|
+
curveTo(3.3133f, 6.8833f, 4.0257f, 5.825f, 4.925f, 4.925f)
|
|
52
|
+
curveTo(5.825f, 4.025f, 6.8833f, 3.3127f, 8.1f, 2.788f)
|
|
53
|
+
curveTo(9.3167f, 2.2633f, 10.6167f, 2.0007f, 12.0f, 2.0f)
|
|
54
|
+
curveTo(13.3833f, 2.0f, 14.6833f, 2.2627f, 15.9f, 2.788f)
|
|
55
|
+
curveTo(17.1167f, 3.3133f, 18.175f, 4.0257f, 19.075f, 4.925f)
|
|
56
|
+
curveTo(19.975f, 5.825f, 20.6877f, 6.8833f, 21.213f, 8.1f)
|
|
57
|
+
curveTo(21.7383f, 9.3167f, 22.0007f, 10.6167f, 22.0f, 12.0f)
|
|
58
|
+
curveTo(22.0f, 13.3833f, 21.7373f, 14.6833f, 21.212f, 15.9f)
|
|
59
|
+
curveTo(20.6867f, 17.1167f, 19.9743f, 18.175f, 19.075f, 19.075f)
|
|
60
|
+
curveTo(18.175f, 19.975f, 17.1167f, 20.6877f, 15.9f, 21.213f)
|
|
61
|
+
curveTo(14.6833f, 21.7383f, 13.3833f, 22.0007f, 12.0f, 22.0f)
|
|
62
|
+
close()
|
|
63
|
+
moveTo(12.0f, 20.0f)
|
|
64
|
+
curveTo(14.2333f, 20.0f, 16.125f, 19.225f, 17.675f, 17.675f)
|
|
65
|
+
curveTo(19.225f, 16.125f, 20.0f, 14.2333f, 20.0f, 12.0f)
|
|
66
|
+
curveTo(20.0f, 9.7667f, 19.225f, 7.875f, 17.675f, 6.325f)
|
|
67
|
+
curveTo(16.125f, 4.775f, 14.2333f, 4.0f, 12.0f, 4.0f)
|
|
68
|
+
curveTo(9.7667f, 4.0f, 7.875f, 4.775f, 6.325f, 6.325f)
|
|
69
|
+
curveTo(4.775f, 7.875f, 4.0f, 9.7667f, 4.0f, 12.0f)
|
|
70
|
+
curveTo(4.0f, 14.2333f, 4.775f, 16.125f, 6.325f, 17.675f)
|
|
71
|
+
curveTo(7.875f, 19.225f, 9.7667f, 20.0f, 12.0f, 20.0f)
|
|
72
|
+
close()
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
.build()
|
|
76
|
+
return checkCircleOutline!!
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
private var checkCircleOutline: ImageVector? = null
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
package ly.img.editor.configuration.video.iconPack
|
|
2
|
+
|
|
3
|
+
import androidx.compose.runtime.Composable
|
|
4
|
+
import androidx.compose.ui.graphics.Color
|
|
5
|
+
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
|
|
6
|
+
import androidx.compose.ui.graphics.SolidColor
|
|
7
|
+
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
|
|
8
|
+
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
|
|
9
|
+
import androidx.compose.ui.graphics.vector.ImageVector
|
|
10
|
+
import androidx.compose.ui.graphics.vector.ImageVector.Builder
|
|
11
|
+
import androidx.compose.ui.graphics.vector.path
|
|
12
|
+
import androidx.compose.ui.tooling.preview.Preview
|
|
13
|
+
import androidx.compose.ui.unit.dp
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Error with outline icon
|
|
17
|
+
*/
|
|
18
|
+
val IconPack.ErrorOutline: ImageVector
|
|
19
|
+
get() {
|
|
20
|
+
if (errorOutline != null) {
|
|
21
|
+
return errorOutline!!
|
|
22
|
+
}
|
|
23
|
+
errorOutline = Builder(
|
|
24
|
+
name = "ErrorOutline",
|
|
25
|
+
defaultWidth = 24.0.dp,
|
|
26
|
+
defaultHeight = 24.0.dp,
|
|
27
|
+
viewportWidth = 24.0f,
|
|
28
|
+
viewportHeight = 24.0f,
|
|
29
|
+
).apply {
|
|
30
|
+
path(
|
|
31
|
+
fill = SolidColor(Color(0xFF49454F)),
|
|
32
|
+
stroke = null,
|
|
33
|
+
strokeLineWidth = 0.0f,
|
|
34
|
+
strokeLineCap = Butt,
|
|
35
|
+
strokeLineJoin = Miter,
|
|
36
|
+
strokeLineMiter = 4.0f,
|
|
37
|
+
pathFillType = NonZero,
|
|
38
|
+
) {
|
|
39
|
+
moveTo(12.0f, 17.0f)
|
|
40
|
+
curveTo(12.2833f, 17.0f, 12.521f, 16.904f, 12.713f, 16.712f)
|
|
41
|
+
curveTo(12.9043f, 16.5207f, 13.0f, 16.2833f, 13.0f, 16.0f)
|
|
42
|
+
curveTo(13.0f, 15.7167f, 12.9043f, 15.479f, 12.713f, 15.287f)
|
|
43
|
+
curveTo(12.521f, 15.0957f, 12.2833f, 15.0f, 12.0f, 15.0f)
|
|
44
|
+
curveTo(11.7167f, 15.0f, 11.4793f, 15.0957f, 11.288f, 15.287f)
|
|
45
|
+
curveTo(11.096f, 15.479f, 11.0f, 15.7167f, 11.0f, 16.0f)
|
|
46
|
+
curveTo(11.0f, 16.2833f, 11.096f, 16.5207f, 11.288f, 16.712f)
|
|
47
|
+
curveTo(11.4793f, 16.904f, 11.7167f, 17.0f, 12.0f, 17.0f)
|
|
48
|
+
close()
|
|
49
|
+
moveTo(11.0f, 13.0f)
|
|
50
|
+
horizontalLineTo(13.0f)
|
|
51
|
+
verticalLineTo(7.0f)
|
|
52
|
+
horizontalLineTo(11.0f)
|
|
53
|
+
verticalLineTo(13.0f)
|
|
54
|
+
close()
|
|
55
|
+
moveTo(12.0f, 22.0f)
|
|
56
|
+
curveTo(10.6167f, 22.0f, 9.3167f, 21.7373f, 8.1f, 21.212f)
|
|
57
|
+
curveTo(6.8833f, 20.6873f, 5.825f, 19.975f, 4.925f, 19.075f)
|
|
58
|
+
curveTo(4.025f, 18.175f, 3.3127f, 17.1167f, 2.788f, 15.9f)
|
|
59
|
+
curveTo(2.2627f, 14.6833f, 2.0f, 13.3833f, 2.0f, 12.0f)
|
|
60
|
+
curveTo(2.0f, 10.6167f, 2.2627f, 9.3167f, 2.788f, 8.1f)
|
|
61
|
+
curveTo(3.3127f, 6.8833f, 4.025f, 5.825f, 4.925f, 4.925f)
|
|
62
|
+
curveTo(5.825f, 4.025f, 6.8833f, 3.3123f, 8.1f, 2.787f)
|
|
63
|
+
curveTo(9.3167f, 2.2623f, 10.6167f, 2.0f, 12.0f, 2.0f)
|
|
64
|
+
curveTo(13.3833f, 2.0f, 14.6833f, 2.2623f, 15.9f, 2.787f)
|
|
65
|
+
curveTo(17.1167f, 3.3123f, 18.175f, 4.025f, 19.075f, 4.925f)
|
|
66
|
+
curveTo(19.975f, 5.825f, 20.6873f, 6.8833f, 21.212f, 8.1f)
|
|
67
|
+
curveTo(21.7373f, 9.3167f, 22.0f, 10.6167f, 22.0f, 12.0f)
|
|
68
|
+
curveTo(22.0f, 13.3833f, 21.7373f, 14.6833f, 21.212f, 15.9f)
|
|
69
|
+
curveTo(20.6873f, 17.1167f, 19.975f, 18.175f, 19.075f, 19.075f)
|
|
70
|
+
curveTo(18.175f, 19.975f, 17.1167f, 20.6873f, 15.9f, 21.212f)
|
|
71
|
+
curveTo(14.6833f, 21.7373f, 13.3833f, 22.0f, 12.0f, 22.0f)
|
|
72
|
+
close()
|
|
73
|
+
moveTo(12.0f, 20.0f)
|
|
74
|
+
curveTo(14.2333f, 20.0f, 16.125f, 19.225f, 17.675f, 17.675f)
|
|
75
|
+
curveTo(19.225f, 16.125f, 20.0f, 14.2333f, 20.0f, 12.0f)
|
|
76
|
+
curveTo(20.0f, 9.7667f, 19.225f, 7.875f, 17.675f, 6.325f)
|
|
77
|
+
curveTo(16.125f, 4.775f, 14.2333f, 4.0f, 12.0f, 4.0f)
|
|
78
|
+
curveTo(9.7667f, 4.0f, 7.875f, 4.775f, 6.325f, 6.325f)
|
|
79
|
+
curveTo(4.775f, 7.875f, 4.0f, 9.7667f, 4.0f, 12.0f)
|
|
80
|
+
curveTo(4.0f, 14.2333f, 4.775f, 16.125f, 6.325f, 17.675f)
|
|
81
|
+
curveTo(7.875f, 19.225f, 9.7667f, 20.0f, 12.0f, 20.0f)
|
|
82
|
+
close()
|
|
83
|
+
}
|
|
84
|
+
}.build()
|
|
85
|
+
return errorOutline!!
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private var errorOutline: ImageVector? = null
|
|
89
|
+
|
|
90
|
+
@Preview
|
|
91
|
+
@Composable
|
|
92
|
+
private fun Preview() = IconPack.ErrorOutline.IconPreview()
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
package ly.img.editor.configuration.video.iconPack
|
|
2
|
+
|
|
3
|
+
import androidx.compose.material3.Icon
|
|
4
|
+
import androidx.compose.material3.MaterialTheme
|
|
5
|
+
import androidx.compose.runtime.Composable
|
|
6
|
+
import androidx.compose.ui.graphics.vector.ImageVector
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Icon pack of the starter kit to access all the icons.
|
|
10
|
+
*/
|
|
11
|
+
object IconPack
|
|
12
|
+
|
|
13
|
+
@Composable
|
|
14
|
+
internal fun ImageVector.IconPreview() = Icon(this, contentDescription = null, tint = MaterialTheme.colorScheme.onPrimary)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
package ly.img.editor.configuration.video.model
|
|
2
|
+
|
|
3
|
+
import androidx.annotation.FloatRange
|
|
4
|
+
import ly.img.engine.MimeType
|
|
5
|
+
import java.io.File
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The export status of the starter kit.
|
|
9
|
+
*/
|
|
10
|
+
sealed interface ExportStatus {
|
|
11
|
+
/**
|
|
12
|
+
* State when the export is active.
|
|
13
|
+
*
|
|
14
|
+
* @param progress the progress of the export.
|
|
15
|
+
*/
|
|
16
|
+
data class Loading(
|
|
17
|
+
@FloatRange(from = 0.0, to = 1.0) val progress: Float,
|
|
18
|
+
) : ExportStatus
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* State when the export is successfully completed.
|
|
22
|
+
*
|
|
23
|
+
* @param file the file where the exported content is written to.
|
|
24
|
+
* @param mimeType the mime type of the exported content.
|
|
25
|
+
*/
|
|
26
|
+
data class Success(
|
|
27
|
+
val file: File,
|
|
28
|
+
val mimeType: MimeType = MimeType.MP4,
|
|
29
|
+
) : ExportStatus
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* State when the export is completed with an exception.
|
|
33
|
+
*
|
|
34
|
+
* @param exception the exception that was thrown during the export.
|
|
35
|
+
*/
|
|
36
|
+
data class Error(
|
|
37
|
+
val exception: Exception,
|
|
38
|
+
) : ExportStatus
|
|
39
|
+
}
|
|
@@ -7,6 +7,7 @@ import android.os.Bundle
|
|
|
7
7
|
import android.os.Parcelable
|
|
8
8
|
import androidx.activity.ComponentActivity
|
|
9
9
|
import androidx.activity.compose.setContent
|
|
10
|
+
import androidx.activity.enableEdgeToEdge
|
|
10
11
|
import ly.img.editor.reactnative.module.IMGLYEditorModule
|
|
11
12
|
import ly.img.editor.reactnative.module.builder.Builder
|
|
12
13
|
import ly.img.editor.reactnative.module.builder.CustomBuilderScope
|
|
@@ -43,6 +44,7 @@ class EditorActivity : ComponentActivity() {
|
|
|
43
44
|
|
|
44
45
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
45
46
|
super.onCreate(savedInstanceState)
|
|
47
|
+
enableEdgeToEdge()
|
|
46
48
|
|
|
47
49
|
val config = intent.extras?.getParcelableCompat<EditorSettings>(INTENT_EXTRA_CONFIG) ?: return
|
|
48
50
|
val preset = intent.extras?.getParcelableCompat<EditorPreset>(INTENT_EXTRA_PRESET) ?: EditorPreset.DESIGN
|