@capgo/camera-preview 7.4.0-beta.9 → 7.4.0
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/README.md +242 -50
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraPreview.java +1249 -143
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraXView.java +3400 -1432
- package/android/src/main/java/com/ahm/capacitor/camera/preview/GridOverlayView.java +95 -58
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/CameraDevice.java +55 -46
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/CameraLens.java +61 -52
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/CameraSessionConfiguration.java +160 -72
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/LensInfo.java +29 -23
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/ZoomFactors.java +24 -23
- package/dist/docs.json +441 -40
- package/dist/esm/definitions.d.ts +167 -25
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +24 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +23 -3
- package/dist/esm/web.js +463 -65
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +485 -64
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +485 -64
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/{CapgoCameraPreview → CapgoCameraPreviewPlugin}/CameraController.swift +731 -315
- package/ios/Sources/CapgoCameraPreviewPlugin/Plugin.swift +1902 -0
- package/package.json +11 -3
- package/android/.gradle/8.14.2/checksums/checksums.lock +0 -0
- package/android/.gradle/8.14.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.14.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.14.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/8.14.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.14.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.14.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.14.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.14.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/8.14.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/ios/Sources/CapgoCameraPreview/Plugin.swift +0 -1369
- /package/ios/Sources/{CapgoCameraPreview → CapgoCameraPreviewPlugin}/GridOverlayView.swift +0 -0
|
@@ -3,80 +3,117 @@ package com.ahm.capacitor.camera.preview;
|
|
|
3
3
|
import android.content.Context;
|
|
4
4
|
import android.graphics.Canvas;
|
|
5
5
|
import android.graphics.Paint;
|
|
6
|
+
import android.graphics.Rect;
|
|
6
7
|
import android.util.AttributeSet;
|
|
7
8
|
import android.view.View;
|
|
8
9
|
|
|
9
10
|
public class GridOverlayView extends View {
|
|
10
|
-
private Paint gridPaint;
|
|
11
|
-
private String gridMode = "none";
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
12
|
+
private Paint gridPaint;
|
|
13
|
+
private String gridMode = "none";
|
|
14
|
+
private Rect cameraBounds = null;
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
public GridOverlayView(Context context) {
|
|
17
|
+
super(context);
|
|
18
|
+
init();
|
|
19
|
+
}
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
public GridOverlayView(Context context, AttributeSet attrs) {
|
|
22
|
+
super(context, attrs);
|
|
23
|
+
init();
|
|
24
|
+
}
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
public GridOverlayView(
|
|
27
|
+
Context context,
|
|
28
|
+
AttributeSet attrs,
|
|
29
|
+
int defStyleAttr
|
|
30
|
+
) {
|
|
31
|
+
super(context, attrs, defStyleAttr);
|
|
32
|
+
init();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
private void init() {
|
|
36
|
+
gridPaint = new Paint();
|
|
37
|
+
gridPaint.setColor(0x80FFFFFF); // Semi-transparent white
|
|
38
|
+
gridPaint.setStrokeWidth(2f);
|
|
39
|
+
gridPaint.setStyle(Paint.Style.STROKE);
|
|
40
|
+
gridPaint.setAntiAlias(true);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public void setCameraBounds(Rect bounds) {
|
|
44
|
+
this.cameraBounds = bounds;
|
|
45
|
+
invalidate();
|
|
46
|
+
}
|
|
35
47
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
48
|
+
public void setGridMode(String mode) {
|
|
49
|
+
String previousMode = this.gridMode;
|
|
50
|
+
this.gridMode = mode != null ? mode : "none";
|
|
51
|
+
setVisibility("none".equals(this.gridMode) ? View.GONE : View.VISIBLE);
|
|
52
|
+
android.util.Log.d(
|
|
53
|
+
"GridOverlayView",
|
|
54
|
+
"setGridMode: Changed from '" +
|
|
55
|
+
previousMode +
|
|
56
|
+
"' to '" +
|
|
57
|
+
this.gridMode +
|
|
58
|
+
"', visibility: " +
|
|
59
|
+
("none".equals(this.gridMode) ? "GONE" : "VISIBLE")
|
|
60
|
+
);
|
|
61
|
+
invalidate();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@Override
|
|
65
|
+
protected void onDraw(Canvas canvas) {
|
|
66
|
+
super.onDraw(canvas);
|
|
67
|
+
|
|
68
|
+
if ("none".equals(gridMode)) {
|
|
69
|
+
return;
|
|
42
70
|
}
|
|
43
71
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
72
|
+
// Use camera bounds if available, otherwise use full view bounds
|
|
73
|
+
int left = 0;
|
|
74
|
+
int top = 0;
|
|
75
|
+
int width = getWidth();
|
|
76
|
+
int height = getHeight();
|
|
77
|
+
|
|
78
|
+
if (cameraBounds != null) {
|
|
79
|
+
left = cameraBounds.left;
|
|
80
|
+
top = cameraBounds.top;
|
|
81
|
+
width = cameraBounds.width();
|
|
82
|
+
height = cameraBounds.height();
|
|
83
|
+
}
|
|
47
84
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
85
|
+
if (width <= 0 || height <= 0) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
51
88
|
|
|
52
|
-
|
|
53
|
-
|
|
89
|
+
if ("3x3".equals(gridMode)) {
|
|
90
|
+
drawGrid(canvas, left, top, width, height, 3);
|
|
91
|
+
} else if ("4x4".equals(gridMode)) {
|
|
92
|
+
drawGrid(canvas, left, top, width, height, 4);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
54
95
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
96
|
+
private void drawGrid(
|
|
97
|
+
Canvas canvas,
|
|
98
|
+
int left,
|
|
99
|
+
int top,
|
|
100
|
+
int width,
|
|
101
|
+
int height,
|
|
102
|
+
int divisions
|
|
103
|
+
) {
|
|
104
|
+
float stepX = (float) width / divisions;
|
|
105
|
+
float stepY = (float) height / divisions;
|
|
58
106
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
107
|
+
// Draw vertical lines
|
|
108
|
+
for (int i = 1; i < divisions; i++) {
|
|
109
|
+
float x = left + (i * stepX);
|
|
110
|
+
canvas.drawLine(x, top, x, top + height, gridPaint);
|
|
64
111
|
}
|
|
65
112
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
// Draw vertical lines
|
|
71
|
-
for (int i = 1; i < divisions; i++) {
|
|
72
|
-
float x = i * stepX;
|
|
73
|
-
canvas.drawLine(x, 0, x, height, gridPaint);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// Draw horizontal lines
|
|
77
|
-
for (int i = 1; i < divisions; i++) {
|
|
78
|
-
float y = i * stepY;
|
|
79
|
-
canvas.drawLine(0, y, width, y, gridPaint);
|
|
80
|
-
}
|
|
113
|
+
// Draw horizontal lines
|
|
114
|
+
for (int i = 1; i < divisions; i++) {
|
|
115
|
+
float y = top + (i * stepY);
|
|
116
|
+
canvas.drawLine(left, y, left + width, y, gridPaint);
|
|
81
117
|
}
|
|
118
|
+
}
|
|
82
119
|
}
|
|
@@ -6,49 +6,58 @@ import java.util.List;
|
|
|
6
6
|
* Represents a camera device available on the Android device.
|
|
7
7
|
*/
|
|
8
8
|
public class CameraDevice {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
9
|
+
|
|
10
|
+
private final String deviceId;
|
|
11
|
+
private final String label;
|
|
12
|
+
private final String position;
|
|
13
|
+
private final List<LensInfo> lenses;
|
|
14
|
+
private final float minZoom;
|
|
15
|
+
private final float maxZoom;
|
|
16
|
+
private final boolean isLogical;
|
|
17
|
+
|
|
18
|
+
public CameraDevice(
|
|
19
|
+
String deviceId,
|
|
20
|
+
String label,
|
|
21
|
+
String position,
|
|
22
|
+
List<LensInfo> lenses,
|
|
23
|
+
float minZoom,
|
|
24
|
+
float maxZoom,
|
|
25
|
+
boolean isLogical
|
|
26
|
+
) {
|
|
27
|
+
this.deviceId = deviceId;
|
|
28
|
+
this.label = label;
|
|
29
|
+
this.position = position;
|
|
30
|
+
this.lenses = lenses;
|
|
31
|
+
this.minZoom = minZoom;
|
|
32
|
+
this.maxZoom = maxZoom;
|
|
33
|
+
this.isLogical = isLogical;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public String getDeviceId() {
|
|
37
|
+
return deviceId;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public String getLabel() {
|
|
41
|
+
return label;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public String getPosition() {
|
|
45
|
+
return position;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public List<LensInfo> getLenses() {
|
|
49
|
+
return lenses;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public float getMinZoom() {
|
|
53
|
+
return minZoom;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public float getMaxZoom() {
|
|
57
|
+
return maxZoom;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
public boolean isLogical() {
|
|
61
|
+
return isLogical;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -4,67 +4,76 @@ package com.ahm.capacitor.camera.preview.model;
|
|
|
4
4
|
* Represents a camera lens available on the Android device.
|
|
5
5
|
*/
|
|
6
6
|
public class CameraLens {
|
|
7
|
-
private final String id;
|
|
8
|
-
private final String label;
|
|
9
|
-
private final String position;
|
|
10
|
-
private final String deviceType;
|
|
11
|
-
private final float focalLength;
|
|
12
|
-
private final float minZoom;
|
|
13
|
-
private final float maxZoom;
|
|
14
|
-
private final float baseZoomRatio;
|
|
15
|
-
public boolean isActive;
|
|
16
7
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
this.maxZoom = maxZoom;
|
|
27
|
-
this.baseZoomRatio = Math.round(baseZoomRatio);
|
|
28
|
-
this.isActive = isActive;
|
|
29
|
-
}
|
|
8
|
+
private final String id;
|
|
9
|
+
private final String label;
|
|
10
|
+
private final String position;
|
|
11
|
+
private final String deviceType;
|
|
12
|
+
private final float focalLength;
|
|
13
|
+
private final float minZoom;
|
|
14
|
+
private final float maxZoom;
|
|
15
|
+
private final float baseZoomRatio;
|
|
16
|
+
public boolean isActive;
|
|
30
17
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
public CameraLens(
|
|
19
|
+
String id,
|
|
20
|
+
String label,
|
|
21
|
+
String position,
|
|
22
|
+
String deviceType,
|
|
23
|
+
float focalLength,
|
|
24
|
+
float minZoom,
|
|
25
|
+
float maxZoom,
|
|
26
|
+
float baseZoomRatio,
|
|
27
|
+
boolean isActive
|
|
28
|
+
) {
|
|
29
|
+
this.id = id;
|
|
30
|
+
this.label = label;
|
|
31
|
+
this.position = position;
|
|
32
|
+
this.deviceType = deviceType;
|
|
33
|
+
this.focalLength = Math.round(focalLength * 100.0f) / 100.0f;
|
|
34
|
+
this.minZoom = minZoom;
|
|
35
|
+
this.maxZoom = maxZoom;
|
|
36
|
+
this.baseZoomRatio = Math.round(baseZoomRatio);
|
|
37
|
+
this.isActive = isActive;
|
|
38
|
+
}
|
|
34
39
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
public String getId() {
|
|
41
|
+
return id;
|
|
42
|
+
}
|
|
38
43
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
public String getLabel() {
|
|
45
|
+
return label;
|
|
46
|
+
}
|
|
42
47
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
public String getPosition() {
|
|
49
|
+
return position;
|
|
50
|
+
}
|
|
46
51
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
public String getDeviceType() {
|
|
53
|
+
return deviceType;
|
|
54
|
+
}
|
|
50
55
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
public float getFocalLength() {
|
|
57
|
+
return focalLength;
|
|
58
|
+
}
|
|
54
59
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
60
|
+
public float getMinZoom() {
|
|
61
|
+
return minZoom;
|
|
62
|
+
}
|
|
58
63
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
64
|
+
public float getMaxZoom() {
|
|
65
|
+
return maxZoom;
|
|
66
|
+
}
|
|
62
67
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
68
|
+
public float getBaseZoomRatio() {
|
|
69
|
+
return baseZoomRatio;
|
|
70
|
+
}
|
|
66
71
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
72
|
+
public boolean isActive() {
|
|
73
|
+
return isActive;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public void setIsActive(boolean isActive) {
|
|
77
|
+
this.isActive = isActive;
|
|
78
|
+
}
|
|
70
79
|
}
|
package/android/src/main/java/com/ahm/capacitor/camera/preview/model/CameraSessionConfiguration.java
CHANGED
|
@@ -4,76 +4,164 @@ package com.ahm.capacitor.camera.preview.model;
|
|
|
4
4
|
* Configuration for a camera session.
|
|
5
5
|
*/
|
|
6
6
|
public class CameraSessionConfiguration {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
7
|
+
|
|
8
|
+
private final String deviceId;
|
|
9
|
+
private final String position;
|
|
10
|
+
private final int x;
|
|
11
|
+
private final int y;
|
|
12
|
+
private final int width;
|
|
13
|
+
private final int height;
|
|
14
|
+
private final int paddingBottom;
|
|
15
|
+
private final boolean toBack;
|
|
16
|
+
private final boolean storeToFile;
|
|
17
|
+
private final boolean enableOpacity;
|
|
18
|
+
private final boolean enableZoom;
|
|
19
|
+
private final boolean disableExifHeaderStripping;
|
|
20
|
+
private final boolean disableAudio;
|
|
21
|
+
private final float zoomFactor;
|
|
22
|
+
private final String aspectRatio;
|
|
23
|
+
private final String gridMode;
|
|
24
|
+
private float targetZoom = 1.0f;
|
|
25
|
+
private boolean isCentered = false;
|
|
26
|
+
|
|
27
|
+
public CameraSessionConfiguration(
|
|
28
|
+
String deviceId,
|
|
29
|
+
String position,
|
|
30
|
+
int x,
|
|
31
|
+
int y,
|
|
32
|
+
int width,
|
|
33
|
+
int height,
|
|
34
|
+
int paddingBottom,
|
|
35
|
+
boolean toBack,
|
|
36
|
+
boolean storeToFile,
|
|
37
|
+
boolean enableOpacity,
|
|
38
|
+
boolean enableZoom,
|
|
39
|
+
boolean disableExifHeaderStripping,
|
|
40
|
+
boolean disableAudio,
|
|
41
|
+
float zoomFactor,
|
|
42
|
+
String aspectRatio,
|
|
43
|
+
String gridMode
|
|
44
|
+
) {
|
|
45
|
+
this.deviceId = deviceId;
|
|
46
|
+
this.position = position;
|
|
47
|
+
this.x = x;
|
|
48
|
+
this.y = y;
|
|
49
|
+
this.width = width;
|
|
50
|
+
this.height = height;
|
|
51
|
+
this.paddingBottom = paddingBottom;
|
|
52
|
+
this.toBack = toBack;
|
|
53
|
+
this.storeToFile = storeToFile;
|
|
54
|
+
this.enableOpacity = enableOpacity;
|
|
55
|
+
this.enableZoom = enableZoom;
|
|
56
|
+
this.disableExifHeaderStripping = disableExifHeaderStripping;
|
|
57
|
+
this.disableAudio = disableAudio;
|
|
58
|
+
this.zoomFactor = zoomFactor;
|
|
59
|
+
this.aspectRatio = aspectRatio;
|
|
60
|
+
this.gridMode = gridMode != null ? gridMode : "none";
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
public void setTargetZoom(float zoom) {
|
|
64
|
+
this.targetZoom = zoom;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
public float getTargetZoom() {
|
|
68
|
+
return this.targetZoom;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
public String getDeviceId() {
|
|
72
|
+
return deviceId;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
public String getPosition() {
|
|
76
|
+
return position;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public int getX() {
|
|
80
|
+
return x;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
public int getY() {
|
|
84
|
+
return y;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
public int getWidth() {
|
|
88
|
+
return width;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public int getHeight() {
|
|
92
|
+
return height;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
public int getPaddingBottom() {
|
|
96
|
+
return paddingBottom;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
public boolean isToBack() {
|
|
100
|
+
return toBack;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
public boolean isStoreToFile() {
|
|
104
|
+
return storeToFile;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
public boolean isEnableOpacity() {
|
|
108
|
+
return enableOpacity;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
public boolean isEnableZoom() {
|
|
112
|
+
return enableZoom;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
public boolean isDisableExifHeaderStripping() {
|
|
116
|
+
return disableExifHeaderStripping;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
public boolean isDisableAudio() {
|
|
120
|
+
return disableAudio;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
public float getZoomFactor() {
|
|
124
|
+
return zoomFactor;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
public String getAspectRatio() {
|
|
128
|
+
return aspectRatio;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
public String getGridMode() {
|
|
132
|
+
return gridMode;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Additional getters with "get" prefix for compatibility
|
|
136
|
+
public boolean getToBack() {
|
|
137
|
+
return toBack;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
public boolean getStoreToFile() {
|
|
141
|
+
return storeToFile;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
public boolean getEnableOpacity() {
|
|
145
|
+
return enableOpacity;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
public boolean getEnableZoom() {
|
|
149
|
+
return enableZoom;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
public boolean getDisableExifHeaderStripping() {
|
|
153
|
+
return disableExifHeaderStripping;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
public boolean getDisableAudio() {
|
|
157
|
+
return disableAudio;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
public boolean isCentered() {
|
|
161
|
+
return isCentered;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
public void setCentered(boolean centered) {
|
|
165
|
+
isCentered = centered;
|
|
166
|
+
}
|
|
79
167
|
}
|