Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 2ab2ab2

Browse files
committed
[ios, macos] #5626 - Outlined header templates
1 parent 973cd37 commit 2ab2ab2

15 files changed

+434
-9
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ ifabric: $(IOS_PROJ_PATH)
162162
idocument:
163163
OUTPUT=$(OUTPUT) ./platform/ios/scripts/document.sh
164164

165+
style-code-ios:
166+
node platform/ios/scripts/generate-style-code.js
167+
165168
#### Android targets #####################################################
166169

167170
ANDROID_ENV = platform/android/scripts/toolchain.sh
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// This file is generated. Do not edit.
2+
3+
#import <Mapbox/Mapbox.h>
4+
5+
#import "MGLTypes.h"
6+
7+
@interface MGLBackgroundStyleLayer : MGLStyleLayer
8+
9+
// Paint properties
10+
11+
@property (nonatomic) MGLColor *backgroundColor;
12+
13+
@property (nonatomic) NSString *backgroundPattern;
14+
15+
@property (nonatomic) float backgroundOpacity;
16+
17+
@end
18+
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// This file is generated. Do not edit.
2+
3+
#import <Mapbox/Mapbox.h>
4+
5+
#import "MGLTypes.h"
6+
7+
@interface MGLCircleStyleLayer : MGLStyleLayer
8+
9+
// Paint properties
10+
11+
@property (nonatomic) float circleRadius;
12+
13+
@property (nonatomic) MGLColor *circleColor;
14+
15+
@property (nonatomic) float circleBlur;
16+
17+
@property (nonatomic) float circleOpacity;
18+
19+
@property (nonatomic) NSMutableArray *circleTranslate;
20+
21+
@property (nonatomic) NSString *circleTranslateAnchor;
22+
23+
@property (nonatomic) NSString *circlePitchScale;
24+
25+
@end
26+
+17
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
1+
// This file is generated. Do not edit.
2+
13
#import <Mapbox/Mapbox.h>
24

35
#import "MGLTypes.h"
46

57
@interface MGLFillStyleLayer : MGLStyleLayer
68

9+
// Paint properties
10+
11+
@property (nonatomic) BOOL fillAntialias;
12+
13+
@property (nonatomic) float fillOpacity;
14+
715
@property (nonatomic) MGLColor *fillColor;
816

17+
@property (nonatomic) MGLColor *fillOutlineColor;
18+
19+
@property (nonatomic) NSMutableArray *fillTranslate;
20+
21+
@property (nonatomic) NSString *fillTranslateAnchor;
22+
23+
@property (nonatomic) NSString *fillPattern;
24+
925
@end
26+
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// This file is generated. Do not edit.
2+
3+
#import <Mapbox/Mapbox.h>
4+
5+
#import "MGLTypes.h"
6+
7+
@interface MGLLineStyleLayer : MGLStyleLayer
8+
9+
// Layout properties
10+
11+
@property (nonatomic) NSString *lineCap;
12+
13+
@property (nonatomic) NSString *lineJoin;
14+
15+
@property (nonatomic) float lineMiterLimit;
16+
17+
@property (nonatomic) float lineRoundLimit;
18+
19+
// Paint properties
20+
21+
@property (nonatomic) float lineOpacity;
22+
23+
@property (nonatomic) MGLColor *lineColor;
24+
25+
@property (nonatomic) NSMutableArray *lineTranslate;
26+
27+
@property (nonatomic) NSString *lineTranslateAnchor;
28+
29+
@property (nonatomic) float lineWidth;
30+
31+
@property (nonatomic) float lineGapWidth;
32+
33+
@property (nonatomic) float lineOffset;
34+
35+
@property (nonatomic) float lineBlur;
36+
37+
@property (nonatomic) CGVector *lineDasharray;
38+
39+
@property (nonatomic) NSString *linePattern;
40+
41+
@end
42+
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// This file is generated. Do not edit.
2+
3+
#import <Mapbox/Mapbox.h>
4+
5+
#import "MGLTypes.h"
6+
7+
@interface MGLRasterStyleLayer : MGLStyleLayer
8+
9+
// Paint properties
10+
11+
@property (nonatomic) float rasterOpacity;
12+
13+
@property (nonatomic) float rasterHueRotate;
14+
15+
@property (nonatomic) float rasterBrightnessMin;
16+
17+
@property (nonatomic) float rasterBrightnessMax;
18+
19+
@property (nonatomic) float rasterSaturation;
20+
21+
@property (nonatomic) float rasterContrast;
22+
23+
@property (nonatomic) float rasterFadeDuration;
24+
25+
@end
26+
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<%
2+
const type = locals.type;
3+
const layoutProperties = locals.layoutProperties;
4+
const paintProperties = locals.paintProperties;
5+
-%>
6+
// This file is generated. Do not edit.
7+
8+
#import <Mapbox/Mapbox.h>
9+
10+
#import "MGLTypes.h"
11+
12+
@interface MGL<%- camelize(type) %>StyleLayer : MGLStyleLayer
13+
14+
<% if (layoutProperties.length) { -%>
15+
// Layout properties
16+
17+
<% for (const property of layoutProperties) { -%>
18+
@property (nonatomic) <%- propertyType(property) %> <% if (isObject(property)) { -%>*<% } -%><%- camelizeWithLeadingLowercase(property.name) %>;
19+
20+
<% } -%>
21+
<% } -%>
22+
// Paint properties
23+
24+
<% for (const property of paintProperties) { -%>
25+
@property (nonatomic) <%- propertyType(property) %> <% if (isObject(property)) { -%>*<% } -%><%- camelizeWithLeadingLowercase(property.name) %>;
26+
27+
<% } -%>
28+
@end
29+
+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
// This file is generated. Do not edit.
2+
3+
#import <Mapbox/Mapbox.h>
4+
5+
#import "MGLTypes.h"
6+
7+
@interface MGLSymbolStyleLayer : MGLStyleLayer
8+
9+
// Layout properties
10+
11+
@property (nonatomic) NSString *symbolPlacement;
12+
13+
@property (nonatomic) float symbolSpacing;
14+
15+
@property (nonatomic) BOOL symbolAvoidEdges;
16+
17+
@property (nonatomic) BOOL iconAllowOverlap;
18+
19+
@property (nonatomic) BOOL iconIgnorePlacement;
20+
21+
@property (nonatomic) BOOL iconOptional;
22+
23+
@property (nonatomic) NSString *iconRotationAlignment;
24+
25+
@property (nonatomic) float iconSize;
26+
27+
@property (nonatomic) NSString *iconTextFit;
28+
29+
@property (nonatomic) NSMutableArray *iconTextFitPadding;
30+
31+
@property (nonatomic) NSString *iconImage;
32+
33+
@property (nonatomic) float iconRotate;
34+
35+
@property (nonatomic) float iconPadding;
36+
37+
@property (nonatomic) BOOL iconKeepUpright;
38+
39+
@property (nonatomic) NSMutableArray *iconOffset;
40+
41+
@property (nonatomic) NSString *textPitchAlignment;
42+
43+
@property (nonatomic) NSString *textRotationAlignment;
44+
45+
@property (nonatomic) NSString *textField;
46+
47+
@property (nonatomic) CGVector *textFont;
48+
49+
@property (nonatomic) float textSize;
50+
51+
@property (nonatomic) float textMaxWidth;
52+
53+
@property (nonatomic) float textLineHeight;
54+
55+
@property (nonatomic) float textLetterSpacing;
56+
57+
@property (nonatomic) NSString *textJustify;
58+
59+
@property (nonatomic) NSString *textAnchor;
60+
61+
@property (nonatomic) float textMaxAngle;
62+
63+
@property (nonatomic) float textRotate;
64+
65+
@property (nonatomic) float textPadding;
66+
67+
@property (nonatomic) BOOL textKeepUpright;
68+
69+
@property (nonatomic) NSString *textTransform;
70+
71+
@property (nonatomic) NSMutableArray *textOffset;
72+
73+
@property (nonatomic) BOOL textAllowOverlap;
74+
75+
@property (nonatomic) BOOL textIgnorePlacement;
76+
77+
@property (nonatomic) BOOL textOptional;
78+
79+
// Paint properties
80+
81+
@property (nonatomic) float iconOpacity;
82+
83+
@property (nonatomic) MGLColor *iconColor;
84+
85+
@property (nonatomic) MGLColor *iconHaloColor;
86+
87+
@property (nonatomic) float iconHaloWidth;
88+
89+
@property (nonatomic) float iconHaloBlur;
90+
91+
@property (nonatomic) NSMutableArray *iconTranslate;
92+
93+
@property (nonatomic) NSString *iconTranslateAnchor;
94+
95+
@property (nonatomic) float textOpacity;
96+
97+
@property (nonatomic) MGLColor *textColor;
98+
99+
@property (nonatomic) MGLColor *textHaloColor;
100+
101+
@property (nonatomic) float textHaloWidth;
102+
103+
@property (nonatomic) float textHaloBlur;
104+
105+
@property (nonatomic) NSMutableArray *textTranslate;
106+
107+
@property (nonatomic) NSString *textTranslateAnchor;
108+
109+
@end
110+

0 commit comments

Comments
 (0)