Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-native-geek-image-editor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huanglu
react-native-geek-image-editor
Commits
f2bd2bc1
Commit
f2bd2bc1
authored
Mar 20, 2020
by
sunzheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://dev.jiuaoedu.com/huanglu/react-native-geek-image-editor
parents
a2c10321
49a6ae65
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
ImageEditorManger.m
ios/ImageEditorManger.m
+1
-1
project.pbxproj
ios/RNGeekImageEditor.xcodeproj/project.pbxproj
+0
-0
YBIBImageData.h
ios/YBImageBrowser/Image/YBIBImageData.h
+1
-0
YBIBSheetView.m
ios/YBImageBrowser/ToolView/YBIBSheetView.m
+1
-1
YBImageBrowser.h
ios/YBImageBrowser/YBImageBrowser.h
+1
-1
YBImageBrowser.m
ios/YBImageBrowser/YBImageBrowser.m
+5
-6
No files found.
ios/ImageEditorManger.m
View file @
f2bd2bc1
...
@@ -63,7 +63,7 @@ ImageEditorManger *imageEditorManager = nil;
...
@@ -63,7 +63,7 @@ ImageEditorManger *imageEditorManager = nil;
}];
}];
[
self
.
browser
.
defaultToolViewHandler
.
sheetView
.
actions
addObject
:
edit
];
[
self
.
browser
.
defaultToolViewHandler
.
sheetView
.
actions
addObject
:
edit
];
}
}
[
self
.
browser
showToView
:
rootView
container
Rect
:
rootView
.
bounds
];
[
self
.
browser
showToView
:
rootView
container
Size
:
rootView
.
bounds
.
size
];
}
}
#pragma mark - private
#pragma mark - private
...
...
ios/RNGeekImageEditor.xcodeproj/project.pbxproj
View file @
f2bd2bc1
This diff is collapsed.
Click to expand it.
ios/YBImageBrowser/Image/YBIBImageData.h
View file @
f2bd2bc1
...
@@ -37,6 +37,7 @@ typedef void (^YBIBImageSingleTouchBlock)(YBIBImageData *imageData);
...
@@ -37,6 +37,7 @@ typedef void (^YBIBImageSingleTouchBlock)(YBIBImageData *imageData);
/// 内部图片滚动视图状态回调闭包
/// 内部图片滚动视图状态回调闭包
typedef
void
(
^
YBIBImageScrollViewStatusBlock
)(
YBIBImageData
*
imageData
,
UIScrollView
*
scrollView
);
typedef
void
(
^
YBIBImageScrollViewStatusBlock
)(
YBIBImageData
*
imageData
,
UIScrollView
*
scrollView
);
/**
/**
图片数据类,承担配置数据和处理数据的责任
图片数据类,承担配置数据和处理数据的责任
*/
*/
...
...
ios/YBImageBrowser/ToolView/YBIBSheetView.m
View file @
f2bd2bc1
...
@@ -102,7 +102,7 @@ static CGFloat kOffsetSpace = 5;
...
@@ -102,7 +102,7 @@ static CGFloat kOffsetSpace = 5;
self
.
backgroundColor
=
[[
UIColor
blackColor
]
colorWithAlphaComponent
:
0
];
self
.
backgroundColor
=
[[
UIColor
blackColor
]
colorWithAlphaComponent
:
0
];
self
.
tableView
.
frame
=
_tableHideFrame
;
self
.
tableView
.
frame
=
_tableHideFrame
;
self
.
tableView
.
tableFooterView
=
[
UIView
new
]
;
self
.
tableView
.
tableFooterView
.
bounds
=
CGRectMake
(
0
,
0
,
self
.
tableView
.
frame
.
size
.
width
,
footerHeight
)
;
[
UIView
animateWithDuration
:
self
.
showDuration
animations
:
^
{
[
UIView
animateWithDuration
:
self
.
showDuration
animations
:
^
{
self
.
backgroundColor
=
[[
UIColor
blackColor
]
colorWithAlphaComponent
:
self
->
_backAlpha
];
self
.
backgroundColor
=
[[
UIColor
blackColor
]
colorWithAlphaComponent
:
self
->
_backAlpha
];
self
.
tableView
.
frame
=
self
->
_tableShowFrame
;
self
.
tableView
.
frame
=
self
->
_tableShowFrame
;
...
...
ios/YBImageBrowser/YBImageBrowser.h
View file @
f2bd2bc1
...
@@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
@param view 指定父视图(view 的大小不能为 CGSizeZero,但允许变化)
@param view 指定父视图(view 的大小不能为 CGSizeZero,但允许变化)
@param containerSize 容器大小(当 view 的大小允许变化时,必须指定确切的 containerSize)
@param containerSize 容器大小(当 view 的大小允许变化时,必须指定确切的 containerSize)
*/
*/
-
(
void
)
showToView
:(
UIView
*
)
view
container
Rect
:(
CGRect
)
rect
;
-
(
void
)
showToView
:(
UIView
*
)
view
container
Size
:(
CGSize
)
containerSize
;
-
(
void
)
showToView
:(
UIView
*
)
view
;
-
(
void
)
showToView
:(
UIView
*
)
view
;
-
(
void
)
show
;
-
(
void
)
show
;
...
...
ios/YBImageBrowser/YBImageBrowser.m
View file @
f2bd2bc1
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
@property
(
nonatomic
,
strong
)
YBIBDataMediator
*
dataMediator
;
@property
(
nonatomic
,
strong
)
YBIBDataMediator
*
dataMediator
;
@property
(
nonatomic
,
strong
)
YBIBScreenRotationHandler
*
rotationHandler
;
@property
(
nonatomic
,
strong
)
YBIBScreenRotationHandler
*
rotationHandler
;
@property
(
nonatomic
,
assign
)
BOOL
transitioning
;
@property
(
nonatomic
,
assign
)
BOOL
transitioning
;
@end
@end
@implementation
YBImageBrowser
{
@implementation
YBImageBrowser
{
...
@@ -153,19 +152,20 @@
...
@@ -153,19 +152,20 @@
}
}
-
(
void
)
showToView
:
(
UIView
*
)
view
{
-
(
void
)
showToView
:
(
UIView
*
)
view
{
[
self
showToView
:
view
container
Rect
:
view
.
bounds
];
[
self
showToView
:
view
container
Size
:
view
.
bounds
.
size
];
}
}
-
(
void
)
showToView
:
(
UIView
*
)
view
container
Rect
:
(
CGRect
)
rect
{
-
(
void
)
showToView
:
(
UIView
*
)
view
container
Size
:
(
CGSize
)
containerSize
{
[
self
.
rotationHandler
startObserveStatusBarOrientation
];
[
self
.
rotationHandler
startObserveStatusBarOrientation
];
[
view
addSubview
:
self
];
[
view
addSubview
:
self
];
self
.
frame
=
rect
;
self
.
frame
=
view
.
bounds
;
self
.
autoresizingMask
=
UIViewAutoresizingFlexibleWidth
|
UIViewAutoresizingFlexibleHeight
;
self
.
autoresizingMask
=
UIViewAutoresizingFlexibleWidth
|
UIViewAutoresizingFlexibleHeight
;
_originWindowLevel
=
self
.
window
.
windowLevel
;
_originWindowLevel
=
self
.
window
.
windowLevel
;
[
self
hideStatusBar
];
[
self
hideStatusBar
];
[
self
.
rotationHandler
configContainerSize
:
rect
.
s
ize
];
[
self
.
rotationHandler
configContainerSize
:
containerS
ize
];
[
self
.
dataMediator
preloadWithPage
:
self
.
currentPage
];
[
self
.
dataMediator
preloadWithPage
:
self
.
currentPage
];
...
@@ -212,7 +212,6 @@
...
@@ -212,7 +212,6 @@
self
.
transitioning
=
YES
;
self
.
transitioning
=
YES
;
[
self
.
animatedTransition
yb_hideTransitioningWithContainer
:
self
startView
:
startView
endView
:
endView
orientation
:
self
.
rotationHandler
.
currentOrientation
completion
:^
{
[
self
.
animatedTransition
yb_hideTransitioningWithContainer
:
self
startView
:
startView
endView
:
endView
orientation
:
self
.
rotationHandler
.
currentOrientation
completion
:^
{
[
self
rebuild
];
[
self
rebuild
];
[
self
.
maskView
removeFromSuperview
];
[
self
removeFromSuperview
];
[
self
removeFromSuperview
];
self
.
transitioning
=
NO
;
self
.
transitioning
=
NO
;
}];
}];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment