@archireport/react-native-svg-draw 2.3.2 → 3.1.0
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/README.md +34 -35
- package/lib/commonjs/components/DrawCore/DrawContext.js +4 -1
- package/lib/commonjs/components/DrawCore/DrawContext.js.map +1 -1
- package/lib/commonjs/components/DrawCore/DrawPad.js +9 -3
- package/lib/commonjs/components/DrawCore/DrawPad.js.map +1 -1
- package/lib/commonjs/components/DrawCore/DrawProvider.js +16 -2
- package/lib/commonjs/components/DrawCore/DrawProvider.js.map +1 -1
- package/lib/commonjs/components/DrawCore/Item.js +12 -35
- package/lib/commonjs/components/DrawCore/Item.js.map +1 -1
- package/lib/commonjs/components/DrawCore/index.js +574 -576
- package/lib/commonjs/components/DrawCore/index.js.map +1 -1
- package/lib/commonjs/components/DrawCore/useDrawHook.js +15 -13
- package/lib/commonjs/components/DrawCore/useDrawHook.js.map +1 -1
- package/lib/commonjs/components/DrawWithOptions/index.js +7 -11
- package/lib/commonjs/components/DrawWithOptions/index.js.map +1 -1
- package/lib/module/components/DrawCore/DrawContext.js +4 -1
- package/lib/module/components/DrawCore/DrawContext.js.map +1 -1
- package/lib/module/components/DrawCore/DrawPad.js +10 -4
- package/lib/module/components/DrawCore/DrawPad.js.map +1 -1
- package/lib/module/components/DrawCore/DrawProvider.js +17 -3
- package/lib/module/components/DrawCore/DrawProvider.js.map +1 -1
- package/lib/module/components/DrawCore/Item.js +14 -37
- package/lib/module/components/DrawCore/Item.js.map +1 -1
- package/lib/module/components/DrawCore/index.js +575 -577
- package/lib/module/components/DrawCore/index.js.map +1 -1
- package/lib/module/components/DrawCore/useDrawHook.js +15 -13
- package/lib/module/components/DrawCore/useDrawHook.js.map +1 -1
- package/lib/module/components/DrawWithOptions/index.js +8 -12
- package/lib/module/components/DrawWithOptions/index.js.map +1 -1
- package/lib/typescript/components/DrawCore/DrawContext.d.ts +3 -0
- package/lib/typescript/components/DrawCore/DrawContext.d.ts.map +1 -1
- package/lib/typescript/components/DrawCore/DrawPad.d.ts +2 -1
- package/lib/typescript/components/DrawCore/DrawPad.d.ts.map +1 -1
- package/lib/typescript/components/DrawCore/DrawProvider.d.ts.map +1 -1
- package/lib/typescript/components/DrawCore/Item.d.ts.map +1 -1
- package/lib/typescript/components/DrawCore/index.d.ts +2 -1
- package/lib/typescript/components/DrawCore/index.d.ts.map +1 -1
- package/lib/typescript/components/DrawCore/useDrawHook.d.ts +4 -1
- package/lib/typescript/components/DrawCore/useDrawHook.d.ts.map +1 -1
- package/lib/typescript/components/DrawWithOptions/index.d.ts +1 -1
- package/lib/typescript/components/DrawWithOptions/index.d.ts.map +1 -1
- package/package.json +5 -1
- package/src/components/DrawCore/DrawContext.tsx +6 -0
- package/src/components/DrawCore/DrawPad.tsx +76 -67
- package/src/components/DrawCore/DrawProvider.tsx +23 -1
- package/src/components/DrawCore/Item.tsx +15 -47
- package/src/components/DrawCore/index.tsx +109 -114
- package/src/components/DrawCore/useDrawHook.tsx +12 -7
- package/src/components/DrawWithOptions/index.tsx +10 -11
- package/src/types.d.ts +5 -3
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ import { DrawWithOptions } from 'react-native-svg-draw';
|
|
|
49
49
|
import LinearGradient from 'react-native-linear-gradient';
|
|
50
50
|
|
|
51
51
|
// ...
|
|
52
|
-
|
|
52
|
+
<DrawWithOptions linearGradient={LinearGradient} />;
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
### Expo
|
|
@@ -59,7 +59,7 @@ import { DrawWithOptions } from 'react-native-svg-draw';
|
|
|
59
59
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
60
60
|
|
|
61
61
|
// ...
|
|
62
|
-
|
|
62
|
+
<DrawWithOptions linearGradient={LinearGradient} />;
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
---
|
|
@@ -74,14 +74,14 @@ Fast and easy way to use the lib.
|
|
|
74
74
|
Example :
|
|
75
75
|
|
|
76
76
|
```jsx
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
<DrawWithOptions
|
|
78
|
+
linearGradient={LinearGradient}
|
|
79
|
+
image={require('./pexels-sebastian-palomino-2847766.jpg')}
|
|
80
|
+
close={() => true}
|
|
81
|
+
actionWithSnapShotUri={async (uri) => {
|
|
82
|
+
console.log('snapShot uri:', uri);
|
|
83
|
+
}}
|
|
84
|
+
/>
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
### Use your own "DrawWithOptions" component
|
|
@@ -90,14 +90,12 @@ You can create your own "DrawWithOptions" component and customize the ui.
|
|
|
90
90
|
|
|
91
91
|
You will need to use `DrawCore` component wrapped in `DrawProvider` context.
|
|
92
92
|
|
|
93
|
-
|
|
94
93
|
```jsx
|
|
95
94
|
<DrawProvider>
|
|
96
|
-
<DrawCore image={require('./pexels-sebastian-palomino-2847766.jpg')}/>
|
|
95
|
+
<DrawCore image={require('./pexels-sebastian-palomino-2847766.jpg')} />
|
|
97
96
|
</DrawProvider>
|
|
98
97
|
```
|
|
99
98
|
|
|
100
|
-
|
|
101
99
|
Then you can use the hook "useDrawHook" inside your components to interact with the context. This hook expose a lot of functions and objects that can be used to interact with the `DrawCore`.
|
|
102
100
|
|
|
103
101
|
```js
|
|
@@ -113,17 +111,17 @@ Then you can use the hook "useDrawHook" inside your components to interact with
|
|
|
113
111
|
|
|
114
112
|
#### useDrawHook
|
|
115
113
|
|
|
116
|
-
| Name | Type | Description
|
|
117
|
-
| --------------------- | ---------------------- |
|
|
118
|
-
| `strokeWidth` | shared value(number) | Object from react-native-reanimated, get and set value => strokeWidth.value
|
|
119
|
-
| `color` | shared value(hslColor) | Object from react-native-reanimated, get and set value => color.value
|
|
120
|
-
| `onColorStrokeChange` | function | Function use when changing color or strokeWidth is done to memorize action for undo
|
|
121
|
-
| `drawState` | object | Get the selected `drawingMode` : 'singleHead','doubleHead','rectangle','ellipse','text','pen', `cancelEnabled`
|
|
122
|
-
| `dispatchDrawStates` | function | Can be used to update `drawingMode`
|
|
123
|
-
| `itemIsSelected` | shared value(boolean) | Object from react-native-reanimated Indicate if an item is selected, to get value => itemIsSelected.value
|
|
124
|
-
| `cancelLastAction` | function | Call this function when user press your undo button
|
|
125
|
-
| `takeSnapshot` | function | This
|
|
126
|
-
| `deleteSelectedItem` | function | Call this function when you want to delete the selected item
|
|
114
|
+
| Name | Type | Description |
|
|
115
|
+
| --------------------- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
116
|
+
| `strokeWidth` | shared value(number) | Object from react-native-reanimated, get and set value => strokeWidth.value |
|
|
117
|
+
| `color` | shared value(hslColor) | Object from react-native-reanimated, get and set value => color.value |
|
|
118
|
+
| `onColorStrokeChange` | function | Function use when changing color or strokeWidth is done to memorize action for undo |
|
|
119
|
+
| `drawState` | object | Get the selected `drawingMode` : 'singleHead','doubleHead','rectangle','ellipse','text','pen', `cancelEnabled` is true when last action can be canceled, `doneItems` contains all previous draw items and `screenStates` helps to go back in time (cancel pops last state) |
|
|
120
|
+
| `dispatchDrawStates` | function | Can be used to update `drawingMode` |
|
|
121
|
+
| `itemIsSelected` | shared value(boolean) | Object from react-native-reanimated Indicate if an item is selected, to get value => itemIsSelected.value |
|
|
122
|
+
| `cancelLastAction` | function | Call this function when user press your undo button |
|
|
123
|
+
| `takeSnapshot` | function | This function will trigger the snapshot |
|
|
124
|
+
| `deleteSelectedItem` | function | Call this function when you want to delete the selected item |
|
|
127
125
|
|
|
128
126
|
### Recommendation
|
|
129
127
|
|
|
@@ -137,13 +135,13 @@ Component with header and footer, based on DrawCore
|
|
|
137
135
|
|
|
138
136
|
#### Properties
|
|
139
137
|
|
|
140
|
-
| Name
|
|
141
|
-
|
|
|
142
|
-
| `close`
|
|
143
|
-
| `takeSnapshot`
|
|
144
|
-
| `linearGradient`
|
|
145
|
-
| `image`
|
|
146
|
-
| `backgroundColor` | string
|
|
138
|
+
| Name | Type | Description |
|
|
139
|
+
| ----------------- | --------------- | ---------------------------------------------------------------------------------------- |
|
|
140
|
+
| `close` | function | (optional) called when cross is pressed |
|
|
141
|
+
| `takeSnapshot` | function | (optional) called when send button (at the top right) is pressed |
|
|
142
|
+
| `linearGradient` | React Component | implementation used for linear gradient (differs between expo and bare react native app) |
|
|
143
|
+
| `image` | image | (optional) background picture |
|
|
144
|
+
| `backgroundColor` | string | (optional) background color of the draw zone |
|
|
147
145
|
|
|
148
146
|
### DrawCore
|
|
149
147
|
|
|
@@ -151,10 +149,11 @@ Component where the user can draw
|
|
|
151
149
|
|
|
152
150
|
#### Properties
|
|
153
151
|
|
|
154
|
-
| Name
|
|
155
|
-
|
|
|
156
|
-
| `image`
|
|
157
|
-
| `backgroundColor`
|
|
152
|
+
| Name | Type | Description |
|
|
153
|
+
| ----------------------- | -------- | ---------------------------------------------------------------------------------------- |
|
|
154
|
+
| `image` | image | (optional) background picture |
|
|
155
|
+
| `backgroundColor` | string | (optional) background color of the draw zone |
|
|
156
|
+
| `actionWithSnapShotUri` | function | (optional) a function receving uri of generated image and doing something of your choise |
|
|
158
157
|
|
|
159
158
|
## Contributing
|
|
160
159
|
|
|
@@ -12,7 +12,10 @@ const DrawContext = /*#__PURE__*/(0, _react.createContext)({
|
|
|
12
12
|
drawingMode: 'ellipse',
|
|
13
13
|
cancelEnabled: false
|
|
14
14
|
},
|
|
15
|
-
dispatchDrawStates: () => true
|
|
15
|
+
dispatchDrawStates: () => true,
|
|
16
|
+
doSnapshot: () => {},
|
|
17
|
+
snapShotRequested: false,
|
|
18
|
+
setSnapShotRequested: () => {}
|
|
16
19
|
});
|
|
17
20
|
exports.DrawContext = DrawContext;
|
|
18
21
|
//# sourceMappingURL=DrawContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DrawContext","createContext","drawState","doneItems","screenStates","drawingMode","cancelEnabled","dispatchDrawStates"],"sourceRoot":"../../../../src","sources":["components/DrawCore/DrawContext.tsx"],"mappings":";;;;;;AACA;AAKO,MAAMA,WAAW,gBAAG,IAAAC,oBAAa,
|
|
1
|
+
{"version":3,"names":["DrawContext","createContext","drawState","doneItems","screenStates","drawingMode","cancelEnabled","dispatchDrawStates","doSnapshot","snapShotRequested","setSnapShotRequested"],"sourceRoot":"../../../../src","sources":["components/DrawCore/DrawContext.tsx"],"mappings":";;;;;;AACA;AAKO,MAAMA,WAAW,gBAAG,IAAAC,oBAAa,EAYrC;EACDC,SAAS,EAAE;IACTC,SAAS,EAAE,EAAE;IACbC,YAAY,EAAE,CAAC,EAAE,CAAC;IAClBC,WAAW,EAAE,SAAS;IACtBC,aAAa,EAAE;EACjB,CAAC;EACDC,kBAAkB,EAAE,MAAM,IAAI;EAC9BC,UAAU,EAAE,MAAM,CAAC,CAAC;EACpBC,iBAAiB,EAAE,KAAK;EACxBC,oBAAoB,EAAE,MAAM,CAAC;AAC/B,CAAC,CAAC;AAAC"}
|
|
@@ -18,12 +18,18 @@ const DrawPad = _ref => {
|
|
|
18
18
|
doneItems,
|
|
19
19
|
onPressItem,
|
|
20
20
|
onTextHeightChange,
|
|
21
|
-
addBackground = false
|
|
21
|
+
addBackground = false,
|
|
22
|
+
ratioImage = 1
|
|
22
23
|
} = _ref;
|
|
23
24
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNativeSvg.default, {
|
|
24
25
|
style: addBackground ? {
|
|
25
26
|
backgroundColor: 'white'
|
|
26
|
-
} : null
|
|
27
|
+
} : null,
|
|
28
|
+
preserveAspectRatio: "xMinYMin slice",
|
|
29
|
+
height: "100%",
|
|
30
|
+
width: "100%"
|
|
31
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativeSvg.G, {
|
|
32
|
+
scale: ratioImage
|
|
27
33
|
}, /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Defs, null, /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Circle, {
|
|
28
34
|
id: "selectionIndicator",
|
|
29
35
|
fill: "#3a6cff",
|
|
@@ -77,7 +83,7 @@ const DrawPad = _ref => {
|
|
|
77
83
|
key: index,
|
|
78
84
|
item: item,
|
|
79
85
|
onPress: onPressItem(item, index)
|
|
80
|
-
})), /*#__PURE__*/_react.default.createElement(_CurrentAnimatedItem.default, null)), /*#__PURE__*/_react.default.createElement(_CurrentAnimatedText.default, {
|
|
86
|
+
})), /*#__PURE__*/_react.default.createElement(_CurrentAnimatedItem.default, null))), /*#__PURE__*/_react.default.createElement(_CurrentAnimatedText.default, {
|
|
81
87
|
currentItem: currentItem,
|
|
82
88
|
onHeightChange: onTextHeightChange
|
|
83
89
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DrawPad","currentItem","doneItems","onPressItem","onTextHeightChange","addBackground","backgroundColor","map","item","index"],"sourceRoot":"../../../../src","sources":["components/DrawCore/DrawPad.tsx"],"mappings":";;;;;;AAAA;AAEA;AACA;AACA;AACA;AAA0B;AAAA;AAAA;AAI1B,MAAMA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"names":["DrawPad","currentItem","doneItems","onPressItem","onTextHeightChange","addBackground","ratioImage","backgroundColor","map","item","index"],"sourceRoot":"../../../../src","sources":["components/DrawCore/DrawPad.tsx"],"mappings":";;;;;;AAAA;AAEA;AACA;AACA;AACA;AAA0B;AAAA;AAAA;AAI1B,MAAMA,OAAO,GAAG,QAcV;EAAA,IAdW;IACfC,WAAW;IACXC,SAAS;IACTC,WAAW;IACXC,kBAAkB;IAClBC,aAAa,GAAG,KAAK;IACrBC,UAAU,GAAG;EAQf,CAAC;EACC,oBACE,yEACE,6BAAC,uBAAG;IACF,KAAK,EAAED,aAAa,GAAG;MAAEE,eAAe,EAAE;IAAQ,CAAC,GAAG,IAAK;IAC3D,mBAAmB,EAAC,gBAAgB;IACpC,MAAM,EAAC,MAAM;IACb,KAAK,EAAC;EAAM,gBAEZ,6BAAC,iBAA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AqB,EAAG,CAC3B,CACJ,EAENJ,SAAS,CAACM,GAAG,CAAC,CAACC,IAAI,EAAEC,KAAK,kBACzB,6BAAC,aAAI;IAAC,GAAG,EAAEA,KAAM;IAAC,IAAI,EAAED,IAAK;IAAC,OAAO,EAAEN,WAAW,CAACM,IAAI,EAAEC,KAAK;EAAE,EACjE,CAAC,eAEF,6BAAC,4BAAmB,OAAG,CACrB,CACA,eACN,6BAAC,4BAAmB;IAClB,WAAW,EAAET,WAAY;IACzB,cAAc,EAAEG;EAAmB,EACnC,CACD;AAEP,CAAC;AAAC,eAEaJ,OAAO;AAAA"}
|
|
@@ -87,7 +87,18 @@ const DrawProvider = _ref => {
|
|
|
87
87
|
const currentItem = (0, _reactNativeReanimated.useSharedValue)(null);
|
|
88
88
|
const viewShot = (0, _react.useRef)(null);
|
|
89
89
|
const doubleArrowTextInput = (0, _react.useRef)(null);
|
|
90
|
+
const [snapShotRequested, setSnapShotRequested] = (0, _react.useState)(false);
|
|
90
91
|
const [drawState, dispatchDrawStates] = (0, _react.useReducer)(reducerDrawStates, initialState);
|
|
92
|
+
const doSnapshot = (0, _react.useCallback)(() => {
|
|
93
|
+
if (currentItem !== null && currentItem !== void 0 && currentItem.value) {
|
|
94
|
+
dispatchDrawStates({
|
|
95
|
+
type: 'ADD_DONE_ITEM',
|
|
96
|
+
item: currentItem.value
|
|
97
|
+
});
|
|
98
|
+
currentItem.value = null;
|
|
99
|
+
}
|
|
100
|
+
setSnapShotRequested(true);
|
|
101
|
+
}, [currentItem, dispatchDrawStates]);
|
|
91
102
|
const contextValue = (0, _react.useMemo)(() => ({
|
|
92
103
|
drawState,
|
|
93
104
|
dispatchDrawStates,
|
|
@@ -96,8 +107,11 @@ const DrawProvider = _ref => {
|
|
|
96
107
|
currentItem,
|
|
97
108
|
itemIsSelected,
|
|
98
109
|
viewShot,
|
|
99
|
-
doubleArrowTextInput
|
|
100
|
-
|
|
110
|
+
doubleArrowTextInput,
|
|
111
|
+
doSnapshot,
|
|
112
|
+
snapShotRequested,
|
|
113
|
+
setSnapShotRequested
|
|
114
|
+
}), [drawState, dispatchDrawStates, strokeWidth, color, currentItem, itemIsSelected, viewShot, doubleArrowTextInput, doSnapshot, snapShotRequested, setSnapShotRequested]);
|
|
101
115
|
return /*#__PURE__*/_react.default.createElement(_DrawContext.DrawContext.Provider, {
|
|
102
116
|
value: contextValue
|
|
103
117
|
}, children);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["initialState","doneItems","screenStates","cancelEnabled","drawingMode","reducerDrawStates","drawState","action","type","Keyboard","dismiss","concat","item","newDoneItems","splice","indice","currentItem","data","width","height","len","length","newScreenStates","pop","DrawProvider","children","itemIsSelected","useSharedValue","strokeWidth","color","viewShot","useRef","doubleArrowTextInput","dispatchDrawStates","useReducer","contextValue","useMemo"],"sourceRoot":"../../../../src","sources":["components/DrawCore/DrawProvider.tsx"],"mappings":";;;;;;AAAA;AACA;
|
|
1
|
+
{"version":3,"names":["initialState","doneItems","screenStates","cancelEnabled","drawingMode","reducerDrawStates","drawState","action","type","Keyboard","dismiss","concat","item","newDoneItems","splice","indice","currentItem","data","width","height","len","length","newScreenStates","pop","DrawProvider","children","itemIsSelected","useSharedValue","strokeWidth","color","viewShot","useRef","doubleArrowTextInput","snapShotRequested","setSnapShotRequested","useState","dispatchDrawStates","useReducer","doSnapshot","useCallback","value","contextValue","useMemo"],"sourceRoot":"../../../../src","sources":["components/DrawCore/DrawProvider.tsx"],"mappings":";;;;;;AAAA;AACA;AASA;AAEA;AAAwC;AAAA;AAGxC,MAAMA,YAAuB,GAAG;EAC9BC,SAAS,EAAE,EAAE;EACbC,YAAY,EAAE,CAAC,EAAE,CAAC;EAClBC,aAAa,EAAE,KAAK;EACpBC,WAAW,EAAE;AACf,CAAC;AAED,MAAMC,iBAAiB,GAAG,CAACC,SAAoB,EAAEC,MAAc,KAAgB;EAC7E,SAAS;;EACT,QAAQA,MAAM,CAACC,IAAI;IACjB,KAAK,oBAAoB;M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IAAI,EAAE,eAAe;QAAEI,IAAI,EAAEI,WAAW,CAACwB;MAAM,CAAC,CAAC;MACtExB,WAAW,CAACwB,KAAK,GAAG,IAAI;IAC1B;IACAN,oBAAoB,CAAC,IAAI,CAAC;EAC5B,CAAC,EAAE,CAAClB,WAAW,EAAEoB,kBAAkB,CAAC,CAAC;EAErC,MAAMK,YAAY,GAAG,IAAAC,cAAO,EAC1B,OAAO;IACLpC,SAAS;IACT8B,kBAAkB;IAClBR,WAAW;IACXC,KAAK;IACLb,WAAW;IACXU,cAAc;IACdI,QAAQ;IACRE,oBAAoB;IACpBM,UAAU;IACVL,iBAAiB;IACjBC;EACF,CAAC,CAAC,EACF,CACE5B,SAAS,EACT8B,kBAAkB,EAClBR,WAAW,EACXC,KAAK,EACLb,WAAW,EACXU,cAAc,EACdI,QAAQ,EACRE,oBAAoB,EACpBM,UAAU,EACVL,iBAAiB,EACjBC,oBAAoB,CACrB,CACF;EAED,oBACE,6BAAC,wBAAW,CAAC,QAAQ;IAAC,KAAK,EAAEO;EAAa,GAAEhB,QAAQ,CAAwB;AAEhF,CAAC;AAAC,eAEaD,YAAY;AAAA"}
|
|
@@ -6,25 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = Item;
|
|
7
7
|
exports.getTextValues = exports.getGetcoordinateValue = exports.getCoordinatesWithRatio = exports.doubleArrowsProps = exports.distance = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _reactNative = require("react-native");
|
|
10
9
|
var _reactNativeSvg = require("react-native-svg");
|
|
11
10
|
var _CurrentAnimatedItem = require("./CurrentAnimatedItem");
|
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
12
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
|
-
const styles = _reactNative.StyleSheet.create({
|
|
15
|
-
textZone: {
|
|
16
|
-
paddingHorizontal: 10
|
|
17
|
-
},
|
|
18
|
-
textContainer: {
|
|
19
|
-
//backgroundColor: 'rgba(0, 0, 0, 0.6)',
|
|
20
|
-
//borderRadius: 10,
|
|
21
|
-
paddingVertical: 13,
|
|
22
|
-
paddingHorizontal: 18
|
|
23
|
-
},
|
|
24
|
-
text: {
|
|
25
|
-
color: 'white'
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
13
|
const distance = (x1, y1, x2, y2) => {
|
|
29
14
|
return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
|
|
30
15
|
};
|
|
@@ -218,28 +203,20 @@ function Item(_ref4) {
|
|
|
218
203
|
onPress: onPress
|
|
219
204
|
});
|
|
220
205
|
case 'text':
|
|
206
|
+
//console.log('Rendering text item:', JSON.stringify(item, null, 2));
|
|
221
207
|
return /*#__PURE__*/_react.default.createElement(_reactNativeSvg.G, {
|
|
222
|
-
onPress: onPress
|
|
223
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Rect, _extends({}, item.data, {
|
|
224
208
|
onPress: onPress,
|
|
225
|
-
fill: '
|
|
226
|
-
}
|
|
227
|
-
x: item.data.x,
|
|
228
|
-
y: item.data.y
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
},
|
|
236
|
-
style: styles.textContainer
|
|
237
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
238
|
-
style: [styles.text, {
|
|
239
|
-
fontSize: 10 + item.strokeWidth * 2,
|
|
240
|
-
color: item.color ? (0, _CurrentAnimatedItem.hslToRgb)(item.color) : 'white'
|
|
241
|
-
}]
|
|
242
|
-
}, item.text)))));
|
|
209
|
+
fill: 'red'
|
|
210
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativeSvg.G, {
|
|
211
|
+
x: String(item.data.x),
|
|
212
|
+
y: String(Number(item.data.y ?? 0) + 2 * item.strokeWidth + 13)
|
|
213
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Text, {
|
|
214
|
+
stroke: item.color,
|
|
215
|
+
fill: item.color,
|
|
216
|
+
textAnchor: "start",
|
|
217
|
+
fontSize: 2 * item.strokeWidth + 10,
|
|
218
|
+
onPress: onPress
|
|
219
|
+
}, item.text)));
|
|
243
220
|
default:
|
|
244
221
|
return null;
|
|
245
222
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["distance","x1","y1","x2","y2","Math","sqrt","getGetcoordinateValue","first","text","dist","textLength","length","newDist","ratio","newX1","newY1","newX2","newY2","getCoordinatesWithRatio","c1","c2","newC1","newC2","doubleArrowsProps","item","coordinates","type","data","Number","String","getTextValues","newX","newY","angle","acos","PI","Item","onPress","color","strokeWidth","textX","textY","pointsToPath","x","y"],"sourceRoot":"../../../../src","sources":["components/DrawCore/Item.tsx"],"mappings":";;;;;;;AAAA;AACA;AASA;AAAqD;AAAA;AAE9C,MAAMA,QAAQ,GAAG,CAACC,EAAU,EAAEC,EAAU,EAAEC,EAAU,EAAEC,EAAU,KAAK;EAC1E,OAAOC,IAAI,CAACC,IAAI,CAAC,CAACH,EAAE,GAAGF,EAAE,KAAKE,EAAE,GAAGF,EAAE,CAAC,GAAG,CAACG,EAAE,GAAGF,EAAE,KAAKE,EAAE,GAAGF,EAAE,CAAC,CAAC;AACjE,CAAC;AAAC;AAEK,MAAMK,qBAAqB,GAAG,QAc/B;EAAA,IAdgC;IACpCN,EAAE;IACFC,EAAE;IACFC,EAAE;IACFC,EAAE;IACFI,KAAK,GAAG,IAAI;IACZC,IAAI,GAAG;EAQT,CAAC;EACC,MAAMC,IAAI,GAAGV,QAAQ,CAACC,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE,CAAC;EACrC,M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