From 0ffb9a8e4d4535d93dbcb9a27c272207d8b7c8a1 Mon Sep 17 00:00:00 2001 From: lihu Date: Tue, 7 Feb 2023 00:39:27 +0800 Subject: [PATCH] ci: ci --- .editorconfig | 1 + LICENSE | 1 - NOTICE | 2 +- licenses/LICENSE-lightweight-charts | 1 + types/index.d.ts | 24 ++++++++++++------------ 5 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.editorconfig b/.editorconfig index 9d08a1a8..5e3dca41 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,3 +7,4 @@ indent_size = 2 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true + diff --git a/LICENSE b/LICENSE index abc871b4..ac33124e 100644 --- a/LICENSE +++ b/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. - diff --git a/NOTICE b/NOTICE index baf1f24d..f7811d3f 100644 --- a/NOTICE +++ b/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 diff --git a/licenses/LICENSE-lightweight-charts b/licenses/LICENSE-lightweight-charts index 4c9ad980..05c88cc6 100644 --- a/licenses/LICENSE-lightweight-charts +++ b/licenses/LICENSE-lightweight-charts @@ -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. + diff --git a/types/index.d.ts b/types/index.d.ts index a1c409e1..ff9333c5 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -488,18 +488,6 @@ export interface MouseTouchEvent extends Coordinate { isTouch?: boolean; preventDefault?: () => void; } -export interface Figure { - 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 = Pick, "name" | "draw" | "checkEventOn">; -export declare type FigureCreate = Pick, "name" | "attrs" | "styles">; -export declare type FigureConstructor = new (figure: FigureCreate) => ({ - 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 { + 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 = Pick, "name" | "draw" | "checkEventOn">; +export declare type FigureCreate = Pick, "name" | "attrs" | "styles">; +export declare type FigureConstructor = new (figure: FigureCreate) => ({ + draw: (ctx: CanvasRenderingContext2D) => void; +}); declare function checkCoordinateOnArc(coordinate: Coordinate, arc: ArcAttrs): boolean; declare function drawArc(ctx: CanvasRenderingContext2D, attrs: ArcAttrs, styles: Partial): void; export interface ArcAttrs {