@pie-qti/default-components 0.1.9 → 0.1.11
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/chunks/__vite-browser-external-BjvdLQIS.js +9 -0
- package/dist/chunks/__vite-browser-external-BjvdLQIS.js.map +1 -0
- package/dist/chunks/chunk-Bayd9M4T.js +20 -0
- package/dist/chunks/{mathlive.min-Bvtiaxg4.js → mathlive.min-CAPebTxM.js} +245 -29
- package/dist/chunks/{mathlive.min-Bvtiaxg4.js.map → mathlive.min-CAPebTxM.js.map} +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -0
- package/dist/plugins/associate/index.d.ts +0 -1
- package/dist/plugins/associate/index.js +1 -0
- package/dist/plugins/associate/index.js.map +1 -0
- package/dist/plugins/choice/index.d.ts +0 -1
- package/dist/plugins/choice/index.js +1 -0
- package/dist/plugins/choice/index.js.map +1 -0
- package/dist/plugins/custom/index.d.ts +0 -1
- package/dist/plugins/custom/index.js +1 -0
- package/dist/plugins/custom/index.js.map +1 -0
- package/dist/plugins/end-attempt/index.d.ts +0 -1
- package/dist/plugins/end-attempt/index.js +1 -0
- package/dist/plugins/end-attempt/index.js.map +1 -0
- package/dist/plugins/extended-text/index.d.ts +0 -1
- package/dist/plugins/extended-text/index.js +1 -0
- package/dist/plugins/extended-text/index.js.map +1 -0
- package/dist/plugins/gap-match/index.d.ts +0 -1
- package/dist/plugins/gap-match/index.js +1 -0
- package/dist/plugins/gap-match/index.js.map +1 -0
- package/dist/plugins/graphic-associate/index.d.ts +0 -1
- package/dist/plugins/graphic-associate/index.js +1 -0
- package/dist/plugins/graphic-associate/index.js.map +1 -0
- package/dist/plugins/graphic-gap-match/index.d.ts +0 -1
- package/dist/plugins/graphic-gap-match/index.js +1 -0
- package/dist/plugins/graphic-gap-match/index.js.map +1 -0
- package/dist/plugins/graphic-order/index.d.ts +0 -1
- package/dist/plugins/graphic-order/index.js +1 -0
- package/dist/plugins/graphic-order/index.js.map +1 -0
- package/dist/plugins/hotspot/index.d.ts +0 -1
- package/dist/plugins/hotspot/index.js +1 -0
- package/dist/plugins/hotspot/index.js.map +1 -0
- package/dist/plugins/hottext/index.d.ts +0 -1
- package/dist/plugins/hottext/index.js +1 -0
- package/dist/plugins/hottext/index.js.map +1 -0
- package/dist/plugins/match/index.d.ts +0 -1
- package/dist/plugins/match/index.js +1 -0
- package/dist/plugins/match/index.js.map +1 -0
- package/dist/plugins/media/index.d.ts +0 -1
- package/dist/plugins/media/index.js +1 -0
- package/dist/plugins/media/index.js.map +1 -0
- package/dist/plugins/order/index.d.ts +0 -1
- package/dist/plugins/order/index.js +1 -0
- package/dist/plugins/order/index.js.map +1 -0
- package/dist/plugins/position-object/index.d.ts +0 -1
- package/dist/plugins/position-object/index.js +1 -0
- package/dist/plugins/position-object/index.js.map +1 -0
- package/dist/plugins/public-types.d.ts +5 -0
- package/dist/plugins/public-types.js +2 -0
- package/dist/plugins/public-types.js.map +1 -0
- package/dist/plugins/select-point/index.d.ts +0 -1
- package/dist/plugins/select-point/index.js +1 -0
- package/dist/plugins/select-point/index.js.map +1 -0
- package/dist/plugins/slider/index.d.ts +0 -1
- package/dist/plugins/slider/index.js +1 -0
- package/dist/plugins/slider/index.js.map +1 -0
- package/dist/plugins.js +25958 -7690
- package/dist/plugins.js.map +1 -1
- package/dist/shared/actions/typesetAction.d.ts +0 -1
- package/dist/shared/actions/typesetAction.js +1 -0
- package/dist/shared/actions/typesetAction.js.map +1 -0
- package/dist/shared/extensions/MathLiveEditor.d.ts +0 -1
- package/dist/shared/extensions/MathLiveEditor.js +1 -0
- package/dist/shared/extensions/MathLiveEditor.js.map +1 -0
- package/dist/shared/index.d.ts +0 -2
- package/dist/shared/index.js +1 -2
- package/dist/shared/index.js.map +1 -0
- package/dist/shared/utils/eventHelpers.d.ts +6 -1
- package/dist/shared/utils/eventHelpers.js +7 -0
- package/dist/shared/utils/eventHelpers.js.map +1 -0
- package/dist/shared/utils/matchGroupUtils.d.ts +0 -1
- package/dist/shared/utils/matchGroupUtils.js +1 -0
- package/dist/shared/utils/matchGroupUtils.js.map +1 -0
- package/dist/shared/utils/pairHelpers.d.ts +0 -1
- package/dist/shared/utils/pairHelpers.js +1 -0
- package/dist/shared/utils/pairHelpers.js.map +1 -0
- package/dist/shared/utils/webComponentHelpers.d.ts +16 -1
- package/dist/shared/utils/webComponentHelpers.js +13 -0
- package/dist/shared/utils/webComponentHelpers.js.map +1 -0
- package/package.json +11 -33
- package/dist/index.d.ts.map +0 -1
- package/dist/plugins/associate/index.d.ts.map +0 -1
- package/dist/plugins/choice/index.d.ts.map +0 -1
- package/dist/plugins/custom/index.d.ts.map +0 -1
- package/dist/plugins/end-attempt/index.d.ts.map +0 -1
- package/dist/plugins/extended-text/index.d.ts.map +0 -1
- package/dist/plugins/gap-match/index.d.ts.map +0 -1
- package/dist/plugins/graphic-associate/index.d.ts.map +0 -1
- package/dist/plugins/graphic-gap-match/index.d.ts.map +0 -1
- package/dist/plugins/graphic-order/index.d.ts.map +0 -1
- package/dist/plugins/hotspot/index.d.ts.map +0 -1
- package/dist/plugins/hottext/index.d.ts.map +0 -1
- package/dist/plugins/index.d.ts +0 -31
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/index.js +0 -31
- package/dist/plugins/match/index.d.ts.map +0 -1
- package/dist/plugins/media/index.d.ts.map +0 -1
- package/dist/plugins/order/index.d.ts.map +0 -1
- package/dist/plugins/position-object/index.d.ts.map +0 -1
- package/dist/plugins/select-point/index.d.ts.map +0 -1
- package/dist/plugins/slider/index.d.ts.map +0 -1
- package/dist/shared/actions/typesetAction.d.ts.map +0 -1
- package/dist/shared/extensions/MathLiveEditor.d.ts.map +0 -1
- package/dist/shared/index.d.ts.map +0 -1
- package/dist/shared/utils/eventHelpers.d.ts.map +0 -1
- package/dist/shared/utils/matchGroupUtils.d.ts.map +0 -1
- package/dist/shared/utils/pairHelpers.d.ts.map +0 -1
- package/dist/shared/utils/touchDragHelper.d.ts +0 -2
- package/dist/shared/utils/touchDragHelper.d.ts.map +0 -1
- package/dist/shared/utils/touchDragHelper.js +0 -1
- package/dist/shared/utils/webComponentHelpers.d.ts.map +0 -1
- package/src/catalog/CatalogPopup.svelte +0 -163
- package/src/index.ts +0 -141
- package/src/plugins/associate/AssociateInteraction.svelte +0 -310
- package/src/plugins/associate/index.ts +0 -9
- package/src/plugins/choice/ChoiceInteraction.svelte +0 -358
- package/src/plugins/choice/index.ts +0 -9
- package/src/plugins/custom/CustomInteraction.svelte +0 -61
- package/src/plugins/custom/index.ts +0 -9
- package/src/plugins/drawing/DrawingInteraction.svelte +0 -99
- package/src/plugins/end-attempt/EndAttemptInteraction.svelte +0 -142
- package/src/plugins/end-attempt/index.ts +0 -9
- package/src/plugins/extended-text/ExtendedTextInteraction.svelte +0 -150
- package/src/plugins/extended-text/index.ts +0 -9
- package/src/plugins/gap-match/GapMatchInteraction.svelte +0 -556
- package/src/plugins/gap-match/index.ts +0 -9
- package/src/plugins/graphic-associate/GraphicAssociateInteraction.svelte +0 -503
- package/src/plugins/graphic-associate/index.ts +0 -9
- package/src/plugins/graphic-gap-match/GraphicGapMatchInteraction.svelte +0 -593
- package/src/plugins/graphic-gap-match/index.ts +0 -9
- package/src/plugins/graphic-order/GraphicOrderInteraction.svelte +0 -241
- package/src/plugins/graphic-order/index.ts +0 -9
- package/src/plugins/hotspot/HotspotInteraction.svelte +0 -287
- package/src/plugins/hotspot/index.ts +0 -9
- package/src/plugins/hottext/HottextInteraction.svelte +0 -325
- package/src/plugins/hottext/index.ts +0 -9
- package/src/plugins/index.ts +0 -32
- package/src/plugins/match/MatchInteraction.svelte +0 -82
- package/src/plugins/match/index.ts +0 -9
- package/src/plugins/media/MediaInteraction.svelte +0 -216
- package/src/plugins/media/index.ts +0 -9
- package/src/plugins/order/OrderInteraction.svelte +0 -280
- package/src/plugins/order/index.ts +0 -9
- package/src/plugins/position-object/PositionObjectInteraction.svelte +0 -903
- package/src/plugins/position-object/README.md +0 -130
- package/src/plugins/position-object/index.ts +0 -9
- package/src/plugins/select-point/SelectPointInteraction.svelte +0 -571
- package/src/plugins/select-point/index.ts +0 -9
- package/src/plugins/slider/SliderInteraction.svelte +0 -141
- package/src/plugins/slider/index.ts +0 -9
- package/src/plugins/upload/UploadInteraction.svelte +0 -59
- package/src/shared/actions/typesetAction.ts +0 -87
- package/src/shared/components/CustomInteractionFallback.svelte +0 -153
- package/src/shared/components/DragHandle.svelte +0 -44
- package/src/shared/components/DrawingCanvas.svelte +0 -259
- package/src/shared/components/FileUpload.svelte +0 -158
- package/src/shared/components/GraphicGapMatch.svelte +0 -318
- package/src/shared/components/GraphicGapMatchAdapter.svelte +0 -45
- package/src/shared/components/InlineInteractionRenderer.svelte +0 -141
- package/src/shared/components/MatchDragDrop.svelte +0 -481
- package/src/shared/components/MathContent.svelte +0 -18
- package/src/shared/components/ModalFeedbackDisplay.svelte +0 -91
- package/src/shared/components/RichTextEditor.svelte +0 -316
- package/src/shared/components/ShadowBaseStyles.svelte +0 -390
- package/src/shared/components/SortableList.svelte +0 -297
- package/src/shared/extensions/MathLiveEditor.ts +0 -299
- package/src/shared/index.ts +0 -17
- package/src/shared/styles/shared.css +0 -16
- package/src/shared/utils/eventHelpers.ts +0 -52
- package/src/shared/utils/matchGroupUtils.ts +0 -14
- package/src/shared/utils/pairHelpers.ts +0 -109
- package/src/shared/utils/touchDragHelper.ts +0 -1
- package/src/shared/utils/webComponentHelpers.ts +0 -27
- package/src/svelte-shims.d.ts +0 -9
- /package/{src → dist}/shared/styles/qti-shared-vocabulary.css +0 -0
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
# Position Object Interaction
|
|
2
|
-
|
|
3
|
-
## ⚠️ Important Limitations
|
|
4
|
-
|
|
5
|
-
This QTI 2.2 interaction type has **severe limitations** that make it impractical for most educational scenarios. This implementation exists for QTI 2.2 specification compliance, but the interaction itself has limited practical utility.
|
|
6
|
-
|
|
7
|
-
## The Core Problem
|
|
8
|
-
|
|
9
|
-
The `positionObjectInteraction` response format uses `baseType="point"`, which only stores coordinates:
|
|
10
|
-
|
|
11
|
-
```xml
|
|
12
|
-
<responseDeclaration identifier="RESPONSE" cardinality="multiple" baseType="point">
|
|
13
|
-
<correctResponse>
|
|
14
|
-
<value>158 168</value>
|
|
15
|
-
<value>210 195</value>
|
|
16
|
-
</correctResponse>
|
|
17
|
-
</responseDeclaration>
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
**There is NO way to track which specific object was placed where.**
|
|
21
|
-
|
|
22
|
-
## What It Was Designed For
|
|
23
|
-
|
|
24
|
-
Based on the official QTI 2.2 specification example (airport placement):
|
|
25
|
-
|
|
26
|
-
- Place **multiple copies of the SAME object** (e.g., airport icons)
|
|
27
|
-
- One `positionObjectStage` container with background image
|
|
28
|
-
- One `positionObjectInteraction` with ONE draggable object
|
|
29
|
-
- `maxChoices` determines how many times the object can be placed
|
|
30
|
-
- Scoring uses `areaMapping` to check if ANY placement hits target zones
|
|
31
|
-
|
|
32
|
-
### Example Use Case (Spec-Compliant)
|
|
33
|
-
|
|
34
|
-
"Place 3 airport markers on the UK map where you think the major airports are located."
|
|
35
|
-
|
|
36
|
-
- All 3 placements use identical airport icons
|
|
37
|
-
- Response: `["118 184", "150 235", "96 114"]` (just coordinates)
|
|
38
|
-
- Scoring: Check if any coordinate falls within acceptable zones around correct airports
|
|
39
|
-
|
|
40
|
-
## What It CANNOT Do
|
|
41
|
-
|
|
42
|
-
### ❌ Labeled Object Placement
|
|
43
|
-
|
|
44
|
-
"Place these labeled city names on their correct locations on the map."
|
|
45
|
-
|
|
46
|
-
- Cannot track which city label goes where
|
|
47
|
-
- Response format doesn't support object identifiers
|
|
48
|
-
- On reload, labels would be mapped to positions incorrectly
|
|
49
|
-
|
|
50
|
-
### ❌ Multiple Different Objects
|
|
51
|
-
|
|
52
|
-
"Place the heart, lungs, and liver on the correct locations in the body diagram."
|
|
53
|
-
|
|
54
|
-
- Cannot distinguish between different organs in the response
|
|
55
|
-
- Impossible to score "heart must be here, liver must be there"
|
|
56
|
-
|
|
57
|
-
## Research Findings
|
|
58
|
-
|
|
59
|
-
After extensive research, we found:
|
|
60
|
-
|
|
61
|
-
1. **No real-world implementations** beyond the official QTI 2.2 spec example
|
|
62
|
-
2. **Not included** in QTI 3.0 shared vocabulary/styling guide (likely being phased out)
|
|
63
|
-
3. **Major QTI platforms** (TAO, Citolab) show no prominent support for this interaction
|
|
64
|
-
4. **Zero community discussions** or Stack Overflow questions about implementation
|
|
65
|
-
|
|
66
|
-
This strongly suggests the interaction type has been **effectively abandoned** by the QTI community.
|
|
67
|
-
|
|
68
|
-
## Alternative Solutions
|
|
69
|
-
|
|
70
|
-
### For Labeled Object Placement: Use `graphicGapMatchInteraction`
|
|
71
|
-
|
|
72
|
-
This interaction uses `baseType="directedPair"` which properly tracks object-location pairs:
|
|
73
|
-
|
|
74
|
-
```xml
|
|
75
|
-
<responseDeclaration identifier="RESPONSE" cardinality="multiple" baseType="directedPair">
|
|
76
|
-
<correctResponse>
|
|
77
|
-
<value>HEART A</value>
|
|
78
|
-
<value>LUNGS B</value>
|
|
79
|
-
<value>LIVER C</value>
|
|
80
|
-
</correctResponse>
|
|
81
|
-
</responseDeclaration>
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
This format **explicitly stores which object (HEART) was placed at which location (A)**.
|
|
85
|
-
|
|
86
|
-
### For Abstract Point Placement: Use `selectPointInteraction`
|
|
87
|
-
|
|
88
|
-
For scenarios where you just need to capture coordinate clicks without draggable objects:
|
|
89
|
-
|
|
90
|
-
- "Click on 3 locations where you think the treasure is buried"
|
|
91
|
-
- "Mark points on the graph where the function crosses zero"
|
|
92
|
-
|
|
93
|
-
## Current Implementation
|
|
94
|
-
|
|
95
|
-
This component includes a **non-standard extension** that:
|
|
96
|
-
|
|
97
|
-
- Supports multiple `positionObjectStage` elements with identifiers
|
|
98
|
-
- Tracks which stage (object) is at which position internally
|
|
99
|
-
- Uses best-effort array-order mapping to reconstruct positions on reload
|
|
100
|
-
|
|
101
|
-
**However**, this cannot be stored in the QTI response format, making it unreliable for:
|
|
102
|
-
- Saving and restoring state
|
|
103
|
-
- Scoring based on specific object placements
|
|
104
|
-
- Multi-session assessments
|
|
105
|
-
|
|
106
|
-
## Recommendation
|
|
107
|
-
|
|
108
|
-
**Do not use `positionObjectInteraction` for new assessment items.**
|
|
109
|
-
|
|
110
|
-
Use:
|
|
111
|
-
- `graphicGapMatchInteraction` for labeled object placement
|
|
112
|
-
- `selectPointInteraction` for coordinate-based responses
|
|
113
|
-
- `hotspotInteraction` for clicking predefined regions
|
|
114
|
-
|
|
115
|
-
This interaction exists in our library solely for QTI 2.2 specification compliance.
|
|
116
|
-
|
|
117
|
-
## Official QTI 2.2 Example
|
|
118
|
-
|
|
119
|
-
The only real example from IMS Global:
|
|
120
|
-
|
|
121
|
-
```xml
|
|
122
|
-
<positionObjectStage>
|
|
123
|
-
<object type="image/png" data="images/uk.png" width="206" height="280"/>
|
|
124
|
-
<positionObjectInteraction responseIdentifier="RESPONSE" maxChoices="3">
|
|
125
|
-
<object type="image/png" data="images/airport.png" width="16" height="16"/>
|
|
126
|
-
</positionObjectInteraction>
|
|
127
|
-
</positionObjectStage>
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
Note: ONE stage, ONE draggable object, multiple placements allowed.
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Svelte component exported via web component
|
|
2
|
-
|
|
3
|
-
export const metadata = {
|
|
4
|
-
interactionType: 'positionObjectInteraction',
|
|
5
|
-
tagName: 'pie-qti-position-object',
|
|
6
|
-
name: 'default-position-object',
|
|
7
|
-
description: 'Default Svelte-based position object interaction',
|
|
8
|
-
priority: 0,
|
|
9
|
-
};
|