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

Support OL 10 #39

Merged
merged 9 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from 6 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
25 changes: 0 additions & 25 deletions .eslintrc.yml

This file was deleted.

13 changes: 11 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# @geoblocks/geoblocks changes
# @geoblocks/mapfisprint changes

## 0.2.16

- Make it compatible with OpenLayers 100.
- Update @geoblocks/print.
ismailsunni marked this conversation as resolved.
Show resolved Hide resolved

## 0.2.15

Expand All @@ -9,7 +14,6 @@ Breaking changes:

- Pass feature object to allow informed customization.


## 0.2.14

- Fix (invert) text Y axis offset.
Expand All @@ -33,11 +37,13 @@ Breaking changes:
- Fix not printed text on lines and polygons.

## 0.2.4

- Add a cancel function.
- Move createReport to utils.
- Add **raw** encode support for WMS and Tile WMS layers.

## 0.2.3

- Add utility functions.
- In `BaseCustomizer`, the printExtent can be now set and get/set are dedicated methods.
- `pdfA` (allow transparency) is now a spec.map optional param.
Expand All @@ -46,11 +52,14 @@ Breaking changes:
- Add a timeout and manage errors on the `getDownloadUrl` utils function.

## v0.2.2

- Add optional MVTEncoder

## v0.2.0

- General refactor (rename classes / types)

## v0.1.2

- Add inline source maps.
- Publish a transpiled ES6 library + types.
53 changes: 53 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import prettier from "eslint-plugin-prettier";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: ["node_modules/"],
}, ...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
), {
plugins: {
"@typescript-eslint": typescriptEslint,
prettier,
},

languageOptions: {
globals: {
...globals.browser,
},

parser: tsParser,
ecmaVersion: 2020,
sourceType: "module",
},

rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",

"@typescript-eslint/no-unused-vars": ["error", {
vars: "all",
args: "none",
}],

"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-ts-comment": "off",
},
}];
Loading
Loading