Skip to content

Commit 97cc1f1

Browse files
Copilotlzxue
andcommitted
style: fix Prettier formatting issues in 8 files
Co-authored-by: lzxue <4366658+lzxue@users.noreply.github.com>
1 parent a848ff9 commit 97cc1f1

8 files changed

Lines changed: 24 additions & 20 deletions

File tree

packages/core/src/services/layer/IStyleAttributeService.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ export interface IEncodeFeature {
9595
[key: string]: any;
9696
}
9797

98-
export interface IVertexAttributeDescriptor
99-
extends Omit<IAttributeInitializationOptions, 'buffer'> {
98+
export interface IVertexAttributeDescriptor extends Omit<
99+
IAttributeInitializationOptions,
100+
'buffer'
101+
> {
100102
/**
101103
* attribute name in vertex shader
102104
*/

packages/core/src/services/renderer/passes/BaseNormalPass.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import type { IRendererService } from '../IRendererService';
1010
/**
1111
* 常规 Pass 基类
1212
*/
13-
export default class BaseNormalPass<InitializationOptions = {}>
14-
implements IPass<InitializationOptions>
15-
{
13+
export default class BaseNormalPass<
14+
InitializationOptions = {},
15+
> implements IPass<InitializationOptions> {
1616
protected shaderModuleService: IShaderModuleService;
1717

1818
protected rendererService: IRendererService;
@@ -41,7 +41,6 @@ export default class BaseNormalPass<InitializationOptions = {}>
4141
this.shaderModuleService = layer.getContainer().shaderModuleService;
4242
}
4343

44-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4544
public render(layer: ILayer) {
4645
//
4746
}

packages/core/src/services/renderer/passes/BasePostProcessingPass.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ const { camelCase, isNil, upperFirst } = lodashUtil;
1717
*
1818
* 约定使用 u_Texture 传递渲染纹理。
1919
*/
20-
export default class BasePostProcessingPass<InitializationOptions = {}>
21-
implements IPostProcessingPass<InitializationOptions>
22-
{
20+
export default class BasePostProcessingPass<
21+
InitializationOptions = {},
22+
> implements IPostProcessingPass<InitializationOptions> {
2323
protected shaderModuleService: IShaderModuleService;
2424
protected rendererService: IRendererService;
2525

packages/map/src/map/handler/drag_handler.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ export type DragMoveHandlerOptions<T, E extends Event> = {
6363
/**
6464
* A generic class to create handlers for drag events, from both mouse and touch events.
6565
*/
66-
export class DragHandler<T extends DragMovementResult, E extends Event>
67-
implements DragMoveHandler<T, E>
68-
{
66+
export class DragHandler<T extends DragMovementResult, E extends Event> implements DragMoveHandler<
67+
T,
68+
E
69+
> {
6970
// Event handlers that may be assigned by the implementations of this class
7071
contextmenu?: Handler['contextmenu'];
7172
mousedown?: Handler['mousedown'];

packages/map/src/map/handler/one_finger_touch_drag.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import type { DragMoveHandler, DragPitchResult, DragRotateResult } from './drag_
44
import { DragHandler } from './drag_handler';
55
import { OneFingerTouchMoveStateManager } from './drag_move_state_manager';
66

7-
export interface OneFingerTouchRotateHandler
8-
extends DragMoveHandler<DragRotateResult, TouchEvent> {}
7+
export interface OneFingerTouchRotateHandler extends DragMoveHandler<
8+
DragRotateResult,
9+
TouchEvent
10+
> {}
911
export interface OneFingerTouchPitchHandler extends DragMoveHandler<DragPitchResult, TouchEvent> {}
1012

1113
const assignEvents = (handler: DragHandler<DragRotateResult, TouchEvent>) => {

packages/maps/src/gmap/logo.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
img[src*='//mapapi.qq.com/web/jsapi/logo/logo_def.png'],.logo-text
2-
{
1+
img[src*='//mapapi.qq.com/web/jsapi/logo/logo_def.png'],
2+
.logo-text {
33
display: none !important;
44
}

packages/maps/src/tdtmap/logo.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
img[src*='//mapapi.qq.com/web/jsapi/logo/logo_def.png'],.logo-text
2-
{
1+
img[src*='//mapapi.qq.com/web/jsapi/logo/logo_def.png'],
2+
.logo-text {
33
display: none !important;
44
}

packages/maps/src/tmap/logo.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
img[src*='//mapapi.qq.com/web/jsapi/logo/logo_def.png'],.logo-text
2-
{
1+
img[src*='//mapapi.qq.com/web/jsapi/logo/logo_def.png'],
2+
.logo-text {
33
display: none !important;
44
}
55

0 commit comments

Comments
 (0)