此类用于定义一个折线View
更多...
#import <BMKPolylineView.h>
|
|
BMKPolyline * | polyline |
| | 该View对应的折线数据对象
|
| |
|
BMKLineJoinType | lineJoinType |
| | LineJoinType,默认是kBMKLineJoinBevel(不支持虚线)
|
| |
|
BMKLineCapType | lineCapType |
| | LineCapType,默认是kBMKLineCapButt (不支持虚线)
|
| |
|
BOOL | isClickable |
| | 是否可点击,默认YES;since 6.5.7
|
| |
| BMKLineBloomMode | lineBloomMode |
| |
|
CGFloat | lineBloomWidth |
| | 发光处宽度,默认 0.0f;since 6.5.7
|
| |
|
CGFloat | lineBloomAlpha |
| | 发光处透明度,取值范围 [0 ~ 255],默认 255.0f;since 6.5.7
|
| |
| CGFloat | lineBloomGradientASPeed |
| |
| int | lineBloomBlurTimes |
| |
| UIColor * | fillColor |
| |
| UIColor * | strokeColor |
| |
|
CGFloat | lineWidth |
| | 画笔宽度,默认为0
|
| |
|
BMKLineDashType | lineDashType |
| | 虚线类型, since 5.0.0,默认kBMKLineDashTypeNone (仅支持颜色虚线)
|
| |
| UIImage * | textureImage |
| |
|
BOOL | keepScale |
| | 纹理图片是否缩放,默认NO
|
| |
|
id< BMKOverlay > | overlay |
| | 关联的overlay对象
|
| |
|
GLuint | strokeTextureID |
| | 关联的纹理对象ID
|
| |
|
|
package id< BMKOverlay > | _overlay |
| |
|
BMKMapRect | _boundingMapRect |
| |
|
CGAffineTransform | _mapTransform |
| |
|
id | _geometryDelegate |
| |
|
id | _canDrawCache |
| |
|
BOOL | keepScale |
| |
|
CFTimeInterval | _lastTile |
| |
|
CFRunLoopTimerRef | _scheduledScaleTimer |
| |
|
struct { |
|
unsigned int keepAlive:1 |
| |
|
unsigned int levelCrossFade:1 |
| |
|
unsigned int drawingDisabled:1 |
| |
|
unsigned int usesTiledLayer:1 |
| |
| } | _flags |
| |
◆ __deprecated_msg [1/2]
| - (BOOL isFocus) __deprecated_msg |
|
("已废弃since 5.0.0") |
|
|
◆ __deprecated_msg [2/2]
| - (NSArray< UIColor * > *colors) __deprecated_msg |
|
("已废弃since 6.5.) |
0 |
|
|
(请使用BMKMultiColorPolylineView中strokeColors") |
|
|
|
| |
使用分段颜色绘制时,必须设置(内容必须为UIColor) 注:请使用 - (UIColor *)initWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha; 初始化UIColor。 使用[UIColor ***Color]初始化时,个别case转换成RGB后会有问题
◆ initWithPolyline:
| - (nullable instancetype) initWithPolyline: |
|
(BMKPolyline *) |
polyline |
|
根据指定的折线生成一个折线View
- 参数
-
- 返回
- 新生成的折线View
◆ lineBloomBlurTimes
| - (int) lineBloomBlurTimes |
|
readwritenonatomicassign |
模糊次数 since 6.5.7 取值范围 [1~10],默认值为 1 注意:模糊发光模式下该属性生效,since 6.5.9可以替代渐变发光模式的lineBloomGradientASPeed
◆ lineBloomGradientASPeed
| - (CGFloat) lineBloomGradientASPeed |
|
readwritenonatomicassign |
透明度渐变速度 since 6.5.7 取值范围 [1.0f ~ 10.0f],默认值为 5.0f 注意:渐变发光模式下该属性生效,since 6.5.9暂不支持
◆ lineBloomMode
| - (BMKLineBloomMode) lineBloomMode |
|
readwritenonatomicassign |
发光模式,仅支持颜色实折线;since 6.5.7 默认不发光,kBMKLineBloomModeNone
该类的文档由以下文件生成: