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
ce45f120
Commit
ce45f120
authored
Mar 18, 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
1fd68cdf
fcb17876
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
10 deletions
+1
-10
LFPhotoEditingController.m
...toEditingController/controller/LFPhotoEditingController.m
+0
-10
LFDrawView.m
.../class/LFPhotoEditingController/view/subView/LFDrawView.m
+1
-0
No files found.
ios/LFMediaEditingController/class/LFPhotoEditingController/controller/LFPhotoEditingController.m
View file @
ce45f120
...
@@ -442,16 +442,6 @@ LFPhotoEditOperationStringKey const LFPhotoEditCropCanAspectRatioAttributeName =
...
@@ -442,16 +442,6 @@ LFPhotoEditOperationStringKey const LFPhotoEditCropCanAspectRatioAttributeName =
dispatch_async
(
dispatch_get_main_queue
(),
^
{
dispatch_async
(
dispatch_get_main_queue
(),
^
{
if
([
weakSelf
.
delegate
respondsToSelector
:
@selector
(
lf_PhotoEditingController
:
didFinishPhotoEdit
:
)])
{
if
([
weakSelf
.
delegate
respondsToSelector
:
@selector
(
lf_PhotoEditingController
:
didFinishPhotoEdit
:
)])
{
[
weakSelf
.
delegate
lf_PhotoEditingController
:
self
didFinishPhotoEdit
:
photoEdit
];
[
weakSelf
.
delegate
lf_PhotoEditingController
:
self
didFinishPhotoEdit
:
photoEdit
];
NSData
*
data
=
[
Utils
imageData
:
photoEdit
.
editPreviewImage
];
NSLog
(
@"编辑图片-------编辑后的大小:%.2f"
,
(
double
)
data
.
length
/
1024
/
1024
);
if
(
photoEdit
)
{
NSString
*
path
=
[
NSString
stringWithFormat
:
@"file://%@"
,[
Utils
saveImageTosandBox
:
data
]];
[
self
.
data
[
@"images"
][
self
.
index
]
setObject
:
path
forKey
:
@"editedImage"
];
}
self
.
finishBlock
(
photoEdit
,
self
.
data
);
}
}
[
weakSelf
hideProgressHUD
];
[
weakSelf
hideProgressHUD
];
});
});
...
...
ios/LFMediaEditingController/class/LFPhotoEditingController/view/subView/LFDrawView.m
View file @
ce45f120
...
@@ -109,6 +109,7 @@ NSString *const kLFDrawViewData = @"LFDrawViewData";
...
@@ -109,6 +109,7 @@ NSString *const kLFDrawViewData = @"LFDrawViewData";
UITouch
*
touch
=
[
touches
anyObject
];
UITouch
*
touch
=
[
touches
anyObject
];
CGPoint
point
=
[
touch
locationInView
:
self
];
CGPoint
point
=
[
touch
locationInView
:
self
];
//设置线宽
//设置线宽
path
.
lineWidth
=
self
.
lineWidth
;
path
.
lineCapStyle
=
kCGLineCapRound
;
//线条拐角
path
.
lineCapStyle
=
kCGLineCapRound
;
//线条拐角
path
.
lineJoinStyle
=
kCGLineJoinRound
;
//终点处理
path
.
lineJoinStyle
=
kCGLineJoinRound
;
//终点处理
[
path
moveToPoint
:
point
];
[
path
moveToPoint
:
point
];
...
...
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