Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat petercat #2660

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .changeset/orange-points-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'@antv/l7-component': patch
'@antv/l7-core': patch
'@antv/l7': patch
'@antv/l7-layers': patch
'@antv/l7-map': patch
'@antv/l7-maps': patch
'@antv/l7-renderer': patch
'@antv/l7-scene': patch
'@antv/l7-source': patch
'@antv/l7-test-utils': patch
'@antv/l7-three': patch
'@antv/l7-utils': patch
---

raster tile extent
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@types/jest": "^29.5.1",
"@types/lodash": "^4.17.14",
"@types/offscreencanvas": "^2019.7.0",
"@types/pixelmatch": "^5.2.5",
"@types/pngjs": "^6.0.3",
Expand All @@ -87,7 +88,7 @@
"babel-plugin-transform-import-css-l7": "^0.0.6",
"case-police": "^0.6.1",
"cross-env": "^7.0.2",
"eslint": "^8.54.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
Expand Down Expand Up @@ -117,6 +118,7 @@
"stylelint": "^16.3.0",
"stylelint-config-standard": "^36.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.8.0",
"swr": "^2.2.5",
"terminate": "latest",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
Expand Down
4 changes: 4 additions & 0 deletions packages/core/src/services/asset/FontService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,11 @@ export default class FontService extends EventEmitter implements IFontService {

// 3. layout characters
if (sdf) {
// @ts-ignore

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using @ts-ignore should be avoided unless absolutely necessary, as it suppresses TypeScript's type checking. Consider addressing the underlying type issues instead.

const tinySDF = new TinySDF(fontSize, buffer, radius, cutoff, fontFamily, fontWeight);
// used to store distance values from tinySDF
// tinySDF.size equals `fontSize + buffer * 2`
// @ts-ignore
const imageData = ctx.getImageData(0, 0, tinySDF.size, tinySDF.size);
for (const char of characterSet) {
if (iconfont) {
Expand All @@ -254,8 +256,10 @@ export default class FontService extends EventEmitter implements IFontService {

const icon = String.fromCharCode(parseInt(char.replace('&#x', '').replace(';', ''), 16));
const iconData = tinySDF.draw(icon);
// @ts-ignore
populateAlphaChannel(iconData, imageData);
} else {
// @ts-ignore
populateAlphaChannel(tinySDF.draw(char), imageData);
}
// populateAlphaChannel(tinySDF.draw(char), imageData);
Expand Down
1 change: 1 addition & 0 deletions packages/utils/src/color.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import * as d3 from 'd3-color';
import type { Context } from 'vm';
export interface IColorRamp {
Expand Down
2 changes: 1 addition & 1 deletion site/.dumi/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import SEO from '@antv/dumi-theme-antv/dist/common/SEO';
import React from 'react';
import { NotFound as NotFoundPage } from '../slots/404';
import { Footer } from '../slots/Footer';
import { Header } from '../slots/Header';
import { SEO } from '../slots/SEO';

/**
* 404 页面
Expand Down
2 changes: 1 addition & 1 deletion site/.dumi/pages/Examples/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { VerticalAlignTopOutlined } from '@ant-design/icons';
import SEO from '@antv/dumi-theme-antv/dist/common/SEO';
import { ThemeAntVContext } from '@antv/dumi-theme-antv/dist/context';
import { Article } from '@antv/dumi-theme-antv/dist/pages/Examples/components/Article';
import { ExampleTopicMenu } from '@antv/dumi-theme-antv/dist/pages/Examples/components/ExampleTopicMenu';
import { Footer } from '@antv/dumi-theme-antv/dist/slots/Footer';
import { Header } from '@antv/dumi-theme-antv/dist/slots/Header';
import NavigatorBanner from '@antv/dumi-theme-antv/dist/slots/Header/Products/NavigatorBanner';
import { SEO } from '@antv/dumi-theme-antv/dist/slots/SEO';
import { usePrevAndNext } from '@antv/dumi-theme-antv/dist/slots/hooks';
import type { ExampleTopic } from '@antv/dumi-theme-antv/dist/types';
import { Layout as AntLayout, BackTop } from 'antd';
Expand Down
106 changes: 0 additions & 106 deletions site/.dumi/theme/plugin.ts

This file was deleted.

2 changes: 1 addition & 1 deletion site/.dumi/theme/slots/ManualContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { useMedia } from 'react-use';
import readingTime from 'reading-time';
import URI from 'uri-parse';

import SEO from '@antv/dumi-theme-antv/dist/common/SEO';
import { ContentTable } from '@antv/dumi-theme-antv/dist/slots/ContentTable';
import { SEO } from '@antv/dumi-theme-antv/dist/slots/SEO';
import GithubButtonBar from '../GithubButtonBar';

import { NavigatorBanner } from '@antv/dumi-theme-antv/dist/slots/ManualContent/NavigatorBanner';
Expand Down
3 changes: 2 additions & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"dependencies": {
"@ant-design/icons": "^5.3.6",
"@antv/dumi-theme-antv": "^0.x",
"@antv/dumi-theme-antv": "^0.5.6",
"@antv/g2": "^4.2.8",
"@antv/l7-composite-layers": "^0.15.0",
"@antv/l7-draw": "^3.0.9",
Expand All @@ -55,6 +55,7 @@
"geojson2svg": "^1.3.3",
"geotiff": "^2.0.7",
"lerc": "^3.0.0",
"swr": "^2.3.0",
"lodash-es": "^4.17.21",
"pbf": "^3.2.1",
"pmtiles": "^2.7.2",
Expand Down
2 changes: 1 addition & 1 deletion site/site/pages/index.zh.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import SEO from '@antv/dumi-theme-antv/dist/common/SEO';
import Banner from '@antv/gatsby-theme-antv/site/components/Banner';
import Cases from '@antv/gatsby-theme-antv/site/components/Cases';
import Companies from '@antv/gatsby-theme-antv/site/components/Companies';
import Features from '@antv/gatsby-theme-antv/site/components/Features';
import SEO from '@antv/gatsby-theme-antv/site/components/Seo';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { L7Draw } from '../components/L7Draw';
Expand Down
Loading