Skip to content

Commit

Permalink
Rename AAEvents to be AASeriesEvents ❗❗❗
Browse files Browse the repository at this point in the history
  • Loading branch information
AAChartModel committed Jan 26, 2024
1 parent 78ddfbb commit 907b3a6
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion AAChartKitDemo/ChartsDemo/DrawChartWithAAOptionsVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ - (AAOptions *)configureTheAAOptionsOfAreaChart {


//禁用图例点击事件
aaOptions.plotOptions.series.events = AAEvents.new
aaOptions.plotOptions.series.events = AASeriesEvents.new
.legendItemClickSet(@AAJSFunc(function() {
return false;
}));
Expand Down
4 changes: 2 additions & 2 deletions AAChartKitDemo/ChartsDemo/JSFunctionForAALegendVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ - (AAOptions *)disableLegendClickEventForNormalChart {
;

//禁用图例点击事件
aaOptions.plotOptions.series.events = AAEvents.new
aaOptions.plotOptions.series.events = AASeriesEvents.new
.legendItemClickSet(@AAJSFunc(function() {
return false;
}));
Expand Down Expand Up @@ -198,7 +198,7 @@ - (AAOptions *)customLegendItemClickEvent {
;

//自定义图例点击事件
aaOptions.plotOptions.series.events = AAEvents.new
aaOptions.plotOptions.series.events = AASeriesEvents.new
.legendItemClickSet(@AAJSFunc(function(event) {
function getVisibleMode(series, serieName) {
var allVisible = true;
Expand Down
8 changes: 4 additions & 4 deletions AAChartKitDemo/ChartsDemo/JSFunctionForAATooltipVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ - (AAOptions *)customAreaChartTooltipStyleWithDifferentUnitSuffix {
;

//禁用图例点击事件
aaOptions.plotOptions.series.events = AAEvents.new
aaOptions.plotOptions.series.events = AASeriesEvents.new
.legendItemClickSet(@AAJSFunc(function() {
return false;
}));
Expand Down Expand Up @@ -247,7 +247,7 @@ - (AAOptions *)customAreaChartTooltipStyleWithColorfulHtmlLabels {
;

//禁用图例点击事件
aaOptions.plotOptions.series.events = AAEvents.new
aaOptions.plotOptions.series.events = AASeriesEvents.new
.legendItemClickSet(@AAJSFunc(function() {
return false;
}));
Expand Down Expand Up @@ -302,7 +302,7 @@ - (AAOptions *)customLineChartTooltipStyleWhenValueBeZeroDoNotShow {
;

//禁用图例点击事件
aaOptions.plotOptions.series.events = AAEvents.new
aaOptions.plotOptions.series.events = AASeriesEvents.new
.legendItemClickSet(@AAJSFunc(function() {
return false;
}));
Expand Down Expand Up @@ -750,7 +750,7 @@ - (AAOptions *)customAreasplineChartTooltipStyleByDivWithCSS {
}));

//禁用图例点击事件
aaOptions.plotOptions.series.events = AAEvents.new
aaOptions.plotOptions.series.events = AASeriesEvents.new
.legendItemClickSet(@AAJSFunc(function() {
return false;
}));
Expand Down
2 changes: 1 addition & 1 deletion AAChartKitDemo/ChartsDemo/TooltipOptionsVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ - (AAOptions *)customAreasplineChartTooltipContentWithHeaderFormat {
;

//禁用图例点击事件
aaOptions.plotOptions.series.events = AAEvents.new
aaOptions.plotOptions.series.events = AASeriesEvents.new
.legendItemClickSet(@AAJSFunc(function() {
return false;
}));
Expand Down
8 changes: 4 additions & 4 deletions AAChartKitLib/AAOptionsModel/AASeries.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#import <Foundation/Foundation.h>

@class AAMarker, AAAnimation, AAShadow, AADataLabels, AAEvents, AAStates, AAPoint;
@class AAMarker, AAAnimation, AAShadow, AADataLabels, AASeriesEvents, AAStates, AAPoint;

@interface AASeries : NSObject

Expand All @@ -54,7 +54,7 @@ AAPropStatementAndPropSetFuncStatement(strong, AASeries, NSArray *, keys)
//plotOptions.series.connectNulls
//https://www.zhihu.com/question/24173311
AAPropStatementAndPropSetFuncStatement(assign, AASeries, BOOL , connectNulls) //设置折线是否断点重连
AAPropStatementAndPropSetFuncStatement(strong, AASeries, AAEvents *, events)
AAPropStatementAndPropSetFuncStatement(strong, AASeries, AASeriesEvents *, events)
AAPropStatementAndPropSetFuncStatement(strong, AASeries, AAShadow *, shadow)
AAPropStatementAndPropSetFuncStatement(strong, AASeries, AADataLabels *, dataLabels)
AAPropStatementAndPropSetFuncStatement(strong, AASeries, AAStates *, states)
Expand All @@ -66,9 +66,9 @@ AAPropStatementAndPropSetFuncStatement(strong, AASeries, NSNumber *, minPointLen
@end


@interface AAEvents : NSObject
@interface AASeriesEvents : NSObject

AAPropStatementAndPropSetFuncStatement(copy, AAEvents, NSString *, legendItemClick)
AAPropStatementAndPropSetFuncStatement(copy, AASeriesEvents, NSString *, legendItemClick)

@end

Expand Down
6 changes: 3 additions & 3 deletions AAChartKitLib/AAOptionsModel/AASeries.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ @implementation AASeries
AAPropSetFuncImplementation(AASeries, NSArray *, keys)
//AAPropSetFuncImplementation(AASeries, BOOL , colorByPoint) //设置为 true 则是给每个点分配颜色。
AAPropSetFuncImplementation(AASeries, BOOL , connectNulls)
AAPropSetFuncImplementation(AASeries, AAEvents *, events)
AAPropSetFuncImplementation(AASeries, AASeriesEvents *, events)
AAPropSetFuncImplementation(AASeries, AAShadow *, shadow)
AAPropSetFuncImplementation(AASeries, AADataLabels *, dataLabels)
AAPropSetFuncImplementation(AASeries, AAStates *, states)
Expand All @@ -61,11 +61,11 @@ @implementation AASeries
@end


@implementation AAEvents
@implementation AASeriesEvents

//AAPropSetFuncImplementation(AAEvents, NSString *, legendItemClick)

AAJSFuncTypePropSetFuncImplementation(AAEvents, NSString *, legendItemClick)
AAJSFuncTypePropSetFuncImplementation(AASeriesEvents, NSString *, legendItemClick)

- (void)setLegendItemClick:(NSString *)legendItemClick {
_legendItemClick = [legendItemClick aa_toPureJSString];
Expand Down

0 comments on commit 907b3a6

Please sign in to comment.