-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathMathWebView.h
More file actions
34 lines (30 loc) · 823 Bytes
/
MathWebView.h
File metadata and controls
34 lines (30 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// MathWebView.h
// test
//
// Created by zkhz on 2016/11/29.
// Copyright © 2016年 zkhz. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
typedef NS_ENUM(NSInteger,MathRenderEngineType) {
MathRenderEngineTypeLatexCode = 0,//latex渲染
MathRenderEngineTypeMathMLCode//MathML渲染
};
@interface MathWebView :WKWebView
/**
scale
*/
@property (nonatomic,assign)CGFloat ratio;
@property (nonatomic,assign)MathRenderEngineType type;
/**
init
@param code HTMLString
@param type RenderEngineType,include two type.
tpye MathRenderEngineTypeLatexCode is Latex code
type MathRenderEngineTypeMathMLCode is MathML code
@return WKWebview instancetype
*/
- (instancetype)initWithHTML:(NSString *)code
MathRenderEngineType:(MathRenderEngineType)type;
@end