Skip to content

Commit

Permalink
feat: allow maintaining shape when dragging coordinates in select mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLMilner committed Feb 7, 2024
1 parent a9cc85f commit e6e84ea
Show file tree
Hide file tree
Showing 18 changed files with 1,585 additions and 51 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Change to E2E test folder
run: cd ./e2e

- name: Install parent directory
run: npm install
- name: Get installed Playwright version
id: playwright-version
working-directory: ./e2e
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV
- name: Cache playwright binaries
uses: actions/cache@v3
Expand All @@ -75,10 +75,14 @@ jobs:
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- name: Install e2e test
working-directory: ./e2e
run: npm install
- run: npx playwright install --with-deps
working-directory: ./e2e
if: steps.playwright-cache.outputs.cache-hit != 'true'
- run: npx playwright install-deps
working-directory: ./e2e
if: steps.playwright-cache.outputs.cache-hit != 'true'
- name: Run Playwright tests
working-directory: ./e2e
run: npm run test
2 changes: 1 addition & 1 deletion development/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import GeoJSON from "ol/format/GeoJSON";
import Map from "ol/Map";
import { TerraDrawOpenLayersAdapter } from "../../src/adapters/openlayers.adapter";
import View from "ol/View";
import { Circle as CircleStyle, Fill, Stroke, Style } from "ol/style";
import { Circle as CircleStyle, Stroke, Style } from "ol/style";
import { OSM, Vector as VectorSource } from "ol/source";
import { Tile as TileLayer, Vector as VectorLayer } from "ol/layer";
import { fromLonLat, toLonLat } from "ol/proj";
Expand Down
Loading

0 comments on commit e6e84ea

Please sign in to comment.