You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

141 lines
3.5 KiB

2 years ago
//
// JCDoodleAction.h
// JCSDKOC
//
// Created by young on 2017/12/29.
// Copyright © 2017年 juphoon. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "JCDoodleConstant.h"
2 years ago
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
#define JCColor UIColor
#elif TARGET_OS_MAC
#define JCColor NSColor
#endif
2 years ago
/**
* @brief
*/
@interface JCDoodleAction : NSObject
/**
* @brief JCDoodleActionExtraBase基础上来扩展自定义类型
*/
@property (nonatomic) JCDoodleActionType actionType;
/**
* @brief
*/
@property (nullable, nonatomic, copy) NSString *userId;
/**
* @brief
*/
@property (nullable, nonatomic, copy) NSString *userDefined;
/**
* @brief 0
*/
@property (nonatomic) NSUInteger pageNumber;
/**
* @brief 0
*/
@property (nonatomic) float brushWidth;
/**
* @brief nil
*/
@property (nullable, nonatomic, copy) JCColor *brushColor;
2 years ago
/**
* @brief unicode emoji unicode
*/
@property (nullable, nonatomic, copy) NSString *stickerUnicode;
/**
* @brief stickerName stickerName
*/
@property (nullable, nonatomic, copy) NSString *stickerName;
/**
* @brief x
*/
@property (nonatomic) float x;
/**
* @brief y
2 years ago
*/
@property (nonatomic) float y;
2 years ago
/**
* @brief x
2 years ago
*/
@property (nonatomic) float endX;
/**
* @brief y
*/
@property (nonatomic) float endY;
2 years ago
/**
* @brief
*/
@property (nonatomic) float width;
2 years ago
/**
* @brief
*/
@property (nonatomic) float height;
2 years ago
/**
* @brief
*/
@property (nonatomic) int rotate;
/**
* @brief
*/
@property (nonatomic,copy,nullable) NSString *text;
/**
* @brief
*/
@property (nonatomic) float textSize;
2 years ago
/**
* @brief NSArray(NSArray)3(, int型)x坐标(float型)y坐标(float型)
* @discussion x, y是逻辑坐标点使(sX, sY)
* size屏幕view的尺寸(375, 667)
* CGFloat sX = (x + 1.0) * size.width / 2;
* CGFloat sY = (y + 1.0) * size.height / 2;
*
* @discussion 使 - (void)addPointWithPositionX:(float)x positionY:(float)y timeInterval:(int)timeInterval;
*/
@property (nullable, nonatomic, readonly, strong) NSArray<NSArray<NSNumber *> *> *pathPoints;
/**
* @brief
* point屏幕的坐标点(100, 100)size屏幕view的尺寸(375, 667)
* float x = 2 * point.x / size.width - 1.0;
* float y = 2 * point.y / size.height - 1.0;
* @param x 使
@param y 使
* @param timeInterval
*/
- (void)addPointWithPositionX:(float)x positionY:(float)y timeInterval:(int)timeInterval;
@end