#
luxiaotao1123
2024-12-09 3392c554a5e76a75a1daf4a9261be0d794043b5d
zy-acs-flow/src/map/player.js
@@ -1,7 +1,8 @@
import * as PIXI from 'pixi.js';
import * as TWEEDLE from 'tweedle.js';
import * as Tool from './tool';
import star from '/img/map/star.png'
import star from '/img/map/star.png';
import { DEVICE_TYPE } from './constants';
export default class Player {
@@ -152,7 +153,15 @@
            this.mapContainer.scale.set(this.scale);
            this.mapContainer.children.forEach(child => {
                // child.scale.set(1 / this.scale); // 防止图标变小
                // child.scale.set(1 / (this.scale * 1)); // 防止图标变小
                // switch (child.data?.type) {
                //     case DEVICE_TYPE.POINT:
                //         child.scale.set(1 / (this.scale * 20));
                //         break
                //     default:
                //         break
                // }
            });
        });
    }