mirror of
https://github.com/klinecharts/KLineChart.git
synced 2024-11-25 16:22:43 +08:00
ci: ci
This commit is contained in:
parent
50787284a4
commit
0ffb9a8e4d
@ -7,3 +7,4 @@ indent_size = 2
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
|
1
LICENSE
1
LICENSE
@ -199,4 +199,3 @@
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
|
2
NOTICE
2
NOTICE
@ -2,4 +2,4 @@ KLineChart
|
||||
Copyright (c) 2019 lihu
|
||||
|
||||
TradingView Lightweight Charts
|
||||
Copyright (с) 2019 TradingView, Inc. https://www.tradingview.com/
|
||||
Copyright (с) 2019 TradingView, Inc. https://www.tradingview.com
|
||||
|
@ -199,3 +199,4 @@
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
|
24
types/index.d.ts
vendored
24
types/index.d.ts
vendored
@ -488,18 +488,6 @@ export interface MouseTouchEvent extends Coordinate {
|
||||
isTouch?: boolean;
|
||||
preventDefault?: () => void;
|
||||
}
|
||||
export interface Figure<A = any, S = any> {
|
||||
name: string;
|
||||
attrs: A;
|
||||
styles: S;
|
||||
draw: (ctx: CanvasRenderingContext2D, attrs: A, styles: S) => void;
|
||||
checkEventOn: (coordinate: Coordinate, attrs: A, styles: S) => boolean;
|
||||
}
|
||||
export declare type FigureTemplate<A = any, S = any> = Pick<Figure<A, S>, "name" | "draw" | "checkEventOn">;
|
||||
export declare type FigureCreate<A = any, S = any> = Pick<Figure<A, S>, "name" | "attrs" | "styles">;
|
||||
export declare type FigureConstructor<A = any, S = any> = new (figure: FigureCreate<A, S>) => ({
|
||||
draw: (ctx: CanvasRenderingContext2D) => void;
|
||||
});
|
||||
export interface YAxis extends Axis {
|
||||
isFromZero: () => boolean;
|
||||
}
|
||||
@ -872,6 +860,18 @@ export interface Chart {
|
||||
resize: () => void;
|
||||
destroy: () => void;
|
||||
}
|
||||
export interface Figure<A = any, S = any> {
|
||||
name: string;
|
||||
attrs: A;
|
||||
styles: S;
|
||||
draw: (ctx: CanvasRenderingContext2D, attrs: A, styles: S) => void;
|
||||
checkEventOn: (coordinate: Coordinate, attrs: A, styles: S) => boolean;
|
||||
}
|
||||
export declare type FigureTemplate<A = any, S = any> = Pick<Figure<A, S>, "name" | "draw" | "checkEventOn">;
|
||||
export declare type FigureCreate<A = any, S = any> = Pick<Figure<A, S>, "name" | "attrs" | "styles">;
|
||||
export declare type FigureConstructor<A = any, S = any> = new (figure: FigureCreate<A, S>) => ({
|
||||
draw: (ctx: CanvasRenderingContext2D) => void;
|
||||
});
|
||||
declare function checkCoordinateOnArc(coordinate: Coordinate, arc: ArcAttrs): boolean;
|
||||
declare function drawArc(ctx: CanvasRenderingContext2D, attrs: ArcAttrs, styles: Partial<LineStyle>): void;
|
||||
export interface ArcAttrs {
|
||||
|
Loading…
Reference in New Issue
Block a user