ranuts 0.1.0-alpha.14 → 0.1.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cache/expires.d.ts +1 -0
- package/dist/src/node/body.d.ts +1 -0
- package/dist/src/node/command.d.ts +1 -0
- package/dist/src/node/ctx2req.d.ts +1 -0
- package/dist/src/node/fs.d.ts +2 -0
- package/dist/src/node/paresUrl.d.ts +1 -0
- package/dist/src/node/readFile.d.ts +1 -0
- package/dist/src/node/server.d.ts +1 -0
- package/dist/src/node/stream.d.ts +1 -0
- package/dist/src/node/traverse.d.ts +1 -0
- package/dist/src/node/websocket.d.ts +4 -0
- package/dist/src/node/ws.d.ts +1 -0
- package/dist/src/utils/visual/graphics/graphics.d.ts +3 -0
- package/dist/src/utils/visual/graphics/graphicsGeometry.d.ts +6 -0
- package/dist/umd/index.umd.cjs +1 -1
- package/dist/umd/utils/utils.umd.cjs +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/src/node/body.d.ts
CHANGED
package/dist/src/node/fs.d.ts
CHANGED
package/dist/src/node/ws.d.ts
CHANGED
|
@@ -2,11 +2,13 @@ import { Container } from '@/utils/visual/vertex/container';
|
|
|
2
2
|
import { Polygon } from '@/utils/visual/shape/polygon';
|
|
3
3
|
import type { Shape } from '@/utils/visual/shape/shape';
|
|
4
4
|
import type { CanvasRenderer } from '@/utils/visual/render/canvasRenderer';
|
|
5
|
+
import type { Point } from '@/utils/visual/vertex/point';
|
|
5
6
|
export declare class Graphics extends Container {
|
|
6
7
|
private _lineStyle;
|
|
7
8
|
private _fillStyle;
|
|
8
9
|
private _geometry;
|
|
9
10
|
currentPath: Polygon | null;
|
|
11
|
+
type: string;
|
|
10
12
|
constructor();
|
|
11
13
|
protected drawShape(shape: Shape): Graphics;
|
|
12
14
|
/**
|
|
@@ -16,4 +18,5 @@ export declare class Graphics extends Container {
|
|
|
16
18
|
beginFill(color?: string, alpha?: number): Graphics;
|
|
17
19
|
drawRect(x: number, y: number, width: number, height: number): Graphics;
|
|
18
20
|
protected renderCanvas(render: CanvasRenderer): void;
|
|
21
|
+
containsPoint(p: Point): boolean;
|
|
19
22
|
}
|
|
@@ -2,9 +2,15 @@ import type { Shape } from '@/utils/visual/shape/shape';
|
|
|
2
2
|
import type { Fill } from '@/utils/visual/style/fill';
|
|
3
3
|
import type { Line } from '@/utils/visual/style/line';
|
|
4
4
|
import { GraphicsData } from '@/utils/visual/graphics/graphicsData';
|
|
5
|
+
import type { Point } from '@/utils/visual/vertex/point';
|
|
5
6
|
export declare class GraphicsGeometry {
|
|
6
7
|
graphicsData: GraphicsData[];
|
|
7
8
|
constructor();
|
|
8
9
|
drawShape(shape: Shape, fillStyle: Fill, lineStyle: Line): void;
|
|
9
10
|
clear(): void;
|
|
11
|
+
/**
|
|
12
|
+
* @param p 待检测点
|
|
13
|
+
* @returns {boolean} 待检测点是否落在某一个子图形内
|
|
14
|
+
*/
|
|
15
|
+
containsPoint(p: Point): boolean;
|
|
10
16
|
}
|