@pie-players/pie-tool-protractor 0.3.20 → 0.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{dist-BIgX-aC4.js → dist-Bud4G4lv.js} +75 -57
- package/dist/tool-protractor.js +2273 -2265
- package/package.json +4 -4
- package/tool-protractor.svelte +6 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-tool-protractor",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Draggable and rotatable protractor tool for PIE assessment player",
|
|
6
6
|
"repository": {
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"unpkg": "./dist/tool-protractor.js",
|
|
40
40
|
"jsdelivr": "./dist/tool-protractor.js",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@pie-players/pie-assessment-toolkit": "0.3.
|
|
43
|
-
"@pie-players/pie-context": "0.3.
|
|
44
|
-
"@pie-players/pie-players-shared": "0.3.
|
|
42
|
+
"@pie-players/pie-assessment-toolkit": "0.3.21",
|
|
43
|
+
"@pie-players/pie-context": "0.3.21",
|
|
44
|
+
"@pie-players/pie-players-shared": "0.3.21",
|
|
45
45
|
"moveable": "^0.53.0"
|
|
46
46
|
},
|
|
47
47
|
"types": "./dist/index.d.ts",
|
package/tool-protractor.svelte
CHANGED
|
@@ -93,6 +93,10 @@
|
|
|
93
93
|
// Associate the moveable instance with the tool ID
|
|
94
94
|
const controlBox = moveable.getControlBoxElement();
|
|
95
95
|
controlBox?.setAttribute('data-moveablejs-tool-control-box', toolId);
|
|
96
|
+
const surface = containerEl.getAttribute('data-pie-tool-surface');
|
|
97
|
+
if (surface) {
|
|
98
|
+
controlBox?.setAttribute('data-pie-tool-surface', surface);
|
|
99
|
+
}
|
|
96
100
|
|
|
97
101
|
moveable.on('drag', ({ target, transform }) => {
|
|
98
102
|
if (target) {
|
|
@@ -305,11 +309,6 @@
|
|
|
305
309
|
touch-action: none;
|
|
306
310
|
}
|
|
307
311
|
|
|
308
|
-
.pie-tool-protractor:focus {
|
|
309
|
-
outline: 3px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2));
|
|
310
|
-
outline-offset: 2px;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
312
|
.pie-tool-protractor:focus-visible {
|
|
314
313
|
outline: 3px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2));
|
|
315
314
|
outline-offset: 2px;
|
|
@@ -347,8 +346,8 @@
|
|
|
347
346
|
}
|
|
348
347
|
|
|
349
348
|
/* Moveable.js control styling (matching production implementation) */
|
|
350
|
-
:global(body .moveable-control-box[data-
|
|
351
|
-
--moveable-color:
|
|
349
|
+
:global(body .moveable-control-box[data-pie-tool-surface="frameless"]) {
|
|
350
|
+
--moveable-color: transparent;
|
|
352
351
|
z-index: 2003; /* ZIndexLayer.CONTROL */
|
|
353
352
|
}
|
|
354
353
|
|