Comments (10)
L7 研发环境调试正常
打包发布后,业务线上使用都会显示 (0,0)
可能是打包编译时,代码出现的问题?
from l7.
2.21.1 版本编译后的结果
2.21.1 版本编译的结果
from l7.
编译前的代码,四年前写的没有动过
L7/packages/map/src/handler/events/event.ts
Lines 4 to 10 in 41ea5dd
L7/packages/map/src/handler/events/map_mouse_event.ts
Lines 11 to 65 in 41ea5dd
from l7.
看似无毒无害,简化复现一下
class A {
public arg1: number
constructor(arg1: number, arg2: number) {
this.arg1 = arg1;
this.arg2 = arg2;
}
}
class B extends A {
public arg2: number
public arg3: number
constructor(arg1: number, arg2: number, arg3: number) {
super(arg1, arg2);
this.arg3 = arg3;
}
}
const b = new B(1, 2, 3)
console.log(b)
再简化一下转化为 JS 的
class A {
arg1
constructor(arg1, arg2) {
this.arg1 = arg1;
this.arg2 = arg2;
}
}
class B extends A {
arg2
arg3
constructor(arg1, arg2, arg3) {
super(arg1, arg2);
this.arg3 = arg3;
}
}
const b = new B(1, 2, 3)
console.log(b)
执行结果是什么?
from l7.
打包时,使用了 Babel 进行了编译,默认配置编译后的结果
from l7.
给 babel 如果加了 @babel/plugin-transform-typescript 插件,编译后的结果
from l7.
如果使用 typescript 编译
忽略编译错误,执行结果
from l7.
@lvisei 所以老哥最后如何改这个问题。加上pnpm add --save-dev @babel/plugin-transform-typescript ???
from l7.
最后如何改这个问题。加上pnpm add --s
等今天修复了发个版本
from l7.
等今天修复了发个版本
from l7.
Related Issues (20)
- TypeError: Cannot read properties of undefined (reading 'POLYGON_CLIPPING_MAX_QUEUE_SIZE'出现这个问题 HOT 4
- 线样式 HOT 2
- 使用 MapLibre底图,新增marker 拖动报错 HOT 3
- 聚合数字显示错误 HOT 1
- vue3初始创建地图报错 HOT 6
- 无地图模式移动Marker出错 HOT 4
- 格网热力、蜂巢热力、3D热力图、3D格网热力、3D蜂巢热力,不透明度设置为0不生效 HOT 2
- G-Device 渲染引擎下,多图层拾取变慢 HOT 1
- ImageLayer的source访问跨域图片 HOT 6
- WMS服务加载GeoServer的图片类型会出现地图平铺的问题 HOT 1
- 地图初始化不显示 HOT 4
- 如何实现点击某个控件时禁用其他控件,或者可以直接切换到其他控件 HOT 2
- 使用Map时会导致点击控件同时也点击了底下的layer,同时触发控件和layer的click事件 HOT 7
- 希望增加Marker的显示隐藏操作方法 HOT 5
- 格网热力图等,设置angle,coverage等参数不及时更新 HOT 2
- 文本stroke参数颜色设置透明度为0,文本字体颜色变成黑色 HOT 3
- 「Tracker」部分图层在 WebGPU 渲染下的问题
- d3-color 所使用的版本存在安全问题 HOT 2
- MVT文本图层将textAllowOverlap设置为false在缩放地图时会失效 HOT 2
- 地球模型atomLayer和bloomLayer不生效 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from l7.